installed .deb libreoffice under ubuntu $ /opt/libreoffice/program/unopkg add myExtension.oxt /opt/libreoffice/program/../basis-link/program/../ure-link/bin/uno.bin: symbol lookup error: /opt/libreoffice/program/../basis-link/program/libpyuno.so: undefined symbol: PyUnicodeUCS2_FromUnicode ERROR: URP_Bridge : disposed (tid=4) Unexpected connection closure unopkg failed. --> remembers me an old OOo story regarding python building options dealing with UTF-8 vs. UTF-16
Laurent, would be possible to attach the problematic extension somewhere? I actually do not know about any extensions written in python.
I see the symbol PyUnicodeUCS2_FromUnicode in /opt/libreoffice/basis3.3/program/libpython2.6.so.1.0. This is the library distributed with LibO. I do not see it in /usr/lib64/libpython2.6.so.1.0. This is the system python on SLED11-SP1-x86_64 I guess that it is the same under Ubuntu. I guess that /opt/libreoffice/program/../basis-link/program/../ure-link/bin/uno.bin tries to use the system libpython2.6.so.1.0 by mistake.
I see the same error message also when I press the button "Test Setting" in LibO Writer in Tools/Options.../LibreOffice Writer/Mail Merge E-mail" So, even the internal python stuff is broken. Rene, I think that you solved problems in this area. Do you have any idea how to go out of this?
The solution seems to be trivial. It helped me to create the symlink /opt/libreoffice/basis3.3/program/libpython2.6.so -> libpython2.6.so.1.0 It is the primary path searched by libpyuno.so, see: --- cut --- $/opt/libreoffice/basis3.3/program> ldd libpyuno.so [...] libpython2.6.so => /opt/libreoffice/basis3.3/program/./libpython2.6.so (0x00007faef3727000) [...] --- cut --- I am going to fix the installer to create it.
The installation fix is http://cgit.freedesktop.org/libreoffice/bootstrap/commit/?h=libreoffice-3-3&id=a434bc4266e148ff25b52df173da22efd27b186a Also I have cherrypicked it into git master.
Tools->Run Macro... will also crash Libreoffice 3.3 beta3. The link solution works also well.
Closing - Sophie