Bugzilla – Bug 1059720
Pyuno stopped working after update to 5.3.5.2 (ImportError: No module named 'pyuno')
Last modified: 2019-12-26 17:08:56 UTC
The following minimal program used to work fine with libreoffice-5.2.5.1: box:~ # cat ./test.py #!/usr/bin/env python3 import uno print("OK") Now, after the update to 5.3.5.2 instead of OK it gives box:~ # ./test.py Traceback (most recent call last): File "./test.py", line 3, in <module> import uno File "/usr/lib/python3.4/site-packages/uno.py", line 22, in <module> import pyuno ImportError: No module named 'pyuno' I've also tried the packages (5.3.6.1) from http://download.opensuse.org/repositories/LibreOffice:/5.3/openSUSE_Leap_42.2/ but I still get the ImportError. It would be nice to have it working again. ;-)
Opened bug-report upstream https://bugs.documentfoundation.org/show_bug.cgi?id=113574
After some more investigation by a colleague of mine it looks like a packaging bug. /usr/lib/python3.4/site-packages/uno.py contains this in line 2 sys.path.append('%{baseinstdir}/program') If you replace "%{baseinstdir}" with "/usr/lib64/libreoffice" it starts working again.
Thanks for checking it. I tweaked the variable to work and submitted it against openSUSE Tumbleweed and prepared to be included in next maintenance update of libreoffice.
This is an autogenerated message for OBS integration: This bug (1059720) was mentioned in https://build.opensuse.org/request/show/538300 Factory / libreoffice