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
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Andreas Radke (AndyRTR)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

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.
Comment by Andreas Radke (AndyRTR) - Friday, 04 August 2017, 12:17 GMT
Please also check with LibO-fresh 5.4.x - and try to find out what may be the culprint (missing files, changed dependency in LibO-still from 5.2.x to 5.3.x).
Comment by Ryan Massoth (codeninja82) - Wednesday, 09 August 2017, 11:53 GMT
I am not using unoconv but I am using the python uno api and mine broke too. I traced the problem to this bit of Arch specific code at the top of uno.py located in /usr/lib/libreoffice/program.

# 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.
Comment by Andreas Radke (AndyRTR) - Thursday, 10 August 2017, 20:10 GMT
Thanks for finding this out. The fix has been commited to trunk for LibO-still and -fresh and will be included in the next build.

Loading...