FS#34257 - [unoconv] unoconv no longer works after upgrade to libreoffice 4.0

Attached to Project: Arch Linux
Opened by Matt (madalu) - Monday, 11 March 2013, 15:28 GMT
Last edited by Jan Alexander Steffens (heftig) - Friday, 15 March 2013, 05:01 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

After the upgrade to libreoffice 4.0.1, when I run unoconv, I receive the following error:

"unoconv: Cannot find a suitable pyuno library and python binary combination in /usr/lib/libreoffice

ERROR: dynamic module does not define init function (initpyuno)"

Additional info:
* unoconv 0.6-2
* libreoffice-common 4.0.1-2

Steps to reproduce:

unoconv test.doc

...or simply...

unoconv
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Friday, 15 March 2013, 05:01 GMT
Reason for closing:  Fixed
Additional comments about closing:  unoconv 0.6-3; marginally tested python3 patch, but better than nothing
Comment by Jan Alexander Steffens (heftig) - Wednesday, 13 March 2013, 20:56 GMT
This is because libreoffice now uses python3, but unoconv still uses python2.
Comment by Jan Alexander Steffens (heftig) - Wednesday, 13 March 2013, 21:07 GMT
Here's a patch I hacked together (for unoconv 0.6) that adds python 3 support: http://sprunge.us/iSCJ
Seems to work. However, since I don't know Python well at all, I remain highly suspicious. Testing welcome.

Loading...