Bug#316030: python-uno: appears to be completely broken
On Tue, Jun 28, 2005 at 09:56:37AM +0200, Rene Engelhard wrote:
> Why don't you tag it experimental then?
I didn't think of it until too late, sorry.
> ARGL. Why do you report two bugs in one? Report *one* bug for *one*
> issue. And you of course got the severity wrong anyway. Cleaning up.
Thanks. Sorry.
> > The second problem:
> >
> > >>> import uno
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in ?
> > File "/usr/lib/python2.3/site-packages/uno.py", line 62, in ?
> > import pyuno
> > SystemError: dynamic module not initialized properly
>
> Yes. This is known. But I have nothing no no clue about python...
It would appear to be because:
1. python can't find the shared library, need to set LD_LIBRARY_PATH to
/usr/lib/openoffice2/program. Ideally the library should go somewhere
where python can see it.
2. the default config in /usr/lib/openoffice2/program/pyunorc is wrong,
it needs to be changed to:
--- cut ---
[Bootstrap]
PYUNO_SHARED_PACKAGES=${$ORIGIN/bootstraprc:BaseInstallation}/share/uno_packages/cache
PYUNO_USER_PACKAGES=${$ORIGIN/bootstraprc:UserInstallation}/user/uno_packages/cache
UNO_TYPES=$ORIGIN/types.rdb ?$PYUNO_SHARED_PACKAGES/types.rdb
?$PYUNO_USER_PACKAGES/types.rdb
UNO_SERVICES=?$PYUNO_USER_PACKAGES/services.rdb
?$PYUNO_SHARED_PACKAGES/services.rdb $ORIGIN/services.rdb
--- cut ---
According to advice I found at:
<URL:http://people.ubuntu.com/~fabbione/irclogs/ubuntu-devel-2005-05-10.html>
It appears to work now.
--
Brian May <bam@debian.org>
Reply to: