Bug 1059720 - Pyuno stopped working after update to 5.3.5.2 (ImportError: No module named 'pyuno')
Summary: Pyuno stopped working after update to 5.3.5.2 (ImportError: No module named '...
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: LibreOffice (show other bugs)
Version: Leap 42.2
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Tomáš Chvátal
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-21 10:29 UTC by Till Dörges
Modified: 2019-12-26 17:08 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Till Dörges 2017-09-21 10:29:47 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. ;-)
Comment 1 Till Dörges 2017-11-01 16:40:38 UTC
Opened bug-report upstream https://bugs.documentfoundation.org/show_bug.cgi?id=113574
Comment 2 Till Dörges 2017-11-01 17:10:19 UTC
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.
Comment 3 Tomáš Chvátal 2017-11-02 09:26:02 UTC
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.
Comment 4 Bernhard Wiedemann 2017-11-02 11:00:37 UTC
This is an autogenerated message for OBS integration:
This bug (1059720) was mentioned in
https://build.opensuse.org/request/show/538300 Factory / libreoffice