FS#55031 - [libreoffice-still] unoconv does not work
Attached to Project:
Arch Linux
Opened by M. Welsch (marwel) - Friday, 04 August 2017, 09:14 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 10 August 2017, 20:11 GMT
Opened by M. Welsch (marwel) - Friday, 04 August 2017, 09:14 GMT
Last edited by Andreas Radke (AndyRTR) - Thursday, 10 August 2017, 20:11 GMT
|
Details
Description:
The libreoffice-still update breaks at least unoconv. It works flawlessly again when downgrading to 5.2.7 from the archive. Said to be Arch specific ( https://github.com/dagwieers/unoconv/issues/399 ). Additional info: * package version(s) libreoffice-still 5.3.5-1 unoconv 0.7-1 * config and/or log files etc. Traceback (most recent call last): File "/usr/bin/unoconv", line 1236, in <module> from com.sun.star.document.UpdateDocMode import QUIET_UPDATE File "/usr/lib/python3.6/site-packages/uno.py", line 431, in _uno_import raise uno_import_exc File "/usr/lib/python3.6/site-packages/uno.py", line 353, in _uno_import return _builtin_import(name, *optargs, **kwargs) ImportError: No module named 'com' (or 'com.sun.star.document.UpdateDocMode.QUIET_UPDATE' is unknown) Steps to reproduce: unoconv -v |
This task depends upon
Closed by Andreas Radke (AndyRTR)
Thursday, 10 August 2017, 20:11 GMT
Reason for closing: Fixed
Additional comments about closing: For workaround see comments, fix is in trunk for future builds.
Thursday, 10 August 2017, 20:11 GMT
Reason for closing: Fixed
Additional comments about closing: For workaround see comments, fix is in trunk for future builds.
# Special modification to make uno load on Arch
import os
import sys
sys.path.append("/usr/lib/libreoffice/program/")
os.putenv("URE_BOOTSTRAP", "vnd.sun.start.pathname:/usr/lib/libreoffice/program/fundamentalrc")
I checked version 5.2.7 and the old code was as follows:
import os
import sys
sys.path.append('/usr/lib/libreoffice/program')
if getattr(os.environ, 'URE_BOOTSTRAP', None) is None:
os.environ['URE_BOOTSTRAP'] = "vnd.sun.star.pathname:/usr/lib/libreoffice/program/fundamentalrc"
If you change the vnd.sun.start to vnd.sun.star it works for me.
Edit:
Forgot to mention the problem still exists in the libreoffice-fresh package as well.