[gutsy/OOo] Importing pyuno raises SystemError: dynamic module not initialized properly -> Bibus doesn't start

Bug #139077 reported by lacarpe
This bug report is a duplicate of:  Bug #132583: python-uno can't be imported. Edit Remove
10
Affects Status Importance Assigned to Milestone
openoffice.org2 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: openoffice.org2

Bibus is a program that connects to OOo-Writer via phyton-uno-bridge. This doesn't work with the OOo that comes along with gutsy tribe5 (OOo version 2.3 from Sept 12th 2007).

When I start bibus the start fails and I get this message:

lacarpe@pc:~$ bibus
Traceback (most recent call last):
  File "/usr/bin/bibus", line 142, in <module>
    Bibus = Bibus()
  File "/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 7700, in __init__
    self._BootstrapApp()
  File "/usr/lib/python2.5/site-packages/wx-2.6-gtk2-unicode/wx/_core.py", line 7352, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/usr/bin/bibus", line 127, in OnInit
    dlg.Run()
  File "/usr/share/bibus/FirstStart/FirstStart.py", line 118, in Run
    import uno
  File "/usr/lib/python2.5/site-packages/uno.py", line 37, in <module>
    import pyuno
SystemError: dynamic module not initialized properly

It seems to be be the same problem/solution as here:
https://launchpad.net/ubuntu/+source/openoffice.org2/+bug/16305

Revision history for this message
Kristoffer Lundén (kristoffer-lunden) wrote :

Confirming. The package python-uno seems broken on gutsy, updated as of today, september 22.

To reproduce on commandline:

$ python
Python 2.5.1 (r251:54863, Sep 11 2007, 23:45:37)
[GCC 4.1.3 20070831 (prerelease) (Ubuntu 4.1.2-16ubuntu1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import uno
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.5/site-packages/uno.py", line 37, in <module>
    import pyuno
SystemError: dynamic module not initialized properly
>>>

Changed in openoffice.org2:
status: New → Confirmed
Revision history for this message
kikvors (kikvors) wrote :

Have same issue, same outputs.

Revision history for this message
All Yours (sjy22kr) wrote :

I have same problem here.

Revision history for this message
kikvors (kikvors) wrote :

Temporary fix for those who can not wait for a solution

A. Install checkinstall

B.Download the source files:

http://downloads.sourceforge.net/bibus-biblio/bibus_1.3.0.orig.tar.gz?modtime=1166225908&big_mirror=0

C. Assuming default paths to python and OpenOffice and logged in as su type the following:

checkinstall make -f Setup/Makefile DESTDIR=/usr/local python=/usr/bin/python oopath=/usr/lib/openoffice/program install

Now it should work.

Revision history for this message
All Yours (sjy22kr) wrote :

run the following will solve the problem:

sudo ldconfig -v /usr/lib/openoffice/program

Revision history for this message
Kristoffer Lundén (kristoffer-lunden) wrote :

The ldconfig line from All Yours lets me import the library without any errors.

Revision history for this message
Gabriel de Perthuis (g2p) wrote :

Thanks for the tip.

Probably
ldd -r /usr/lib/openoffice/program/libpyuno.so /usr/lib/openoffice/program/pythonloader.uno.so

would give missing dependencies before running All yours's command.

Revision history for this message
Stefan Lechner (lechner-stefan) wrote :

This bug is still existing in the final version of gutsy (at least in amd64-version). I have to repeat All your's command every few days, is that normal?

Revision history for this message
Orwen Starker (mxs5jaa9fqnom27) wrote :

Same problem (and solution) here with neely upgraded gutsy.

Doing some pretty heavy python/uno dev on a daily basis I have to fix the problem almost _every_ day ... a fix would be nice ;-)

Ownen

Revision history for this message
Steffen F. (kasymir) wrote :

Same thing, each time before I start Bibus I have to run All Yours' workaround...
Thanks for that ;-)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.