Bug 947096 - unoconv doesn't work with Libreoffice 4.0
Summary: unoconv doesn't work with Libreoffice 4.0
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: unoconv
Version: 19
Hardware: All
OS: All
unspecified
urgent
Target Milestone: ---
Assignee: David Tardon
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-01 15:39 UTC by Cosimo Cecchi
Modified: 2013-04-30 22:56 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-04-20 19:31:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Cosimo Cecchi 2013-04-01 15:39:59 UTC
Since the move to Libreoffice 4.0, unoconv stopped working in Fedora, always failing with this error:

unoconv: Cannot find a suitable pyuno library and python binary combination in /usr/lib64/libreoffice
ERROR: No module named uno

unoconv: Cannot find a suitable office installation on your system.
ERROR: Please locate your office installation and send your feedback to:
       http://github.com/dagwieers/unoconv/issues

The reason seems to be the move to Python3. Upstream activity seems to be a bit stalled recently, but there are patches available to solve this in the bug tracker [1]. I think we should apply those patches in Fedora.
This is quite relevant because without it, gnome-documents won't be able to preview any office documents.

[1] https://github.com/dagwieers/unoconv/pull/111

Comment 1 David Tardon 2013-04-08 07:30:58 UTC
It cannot find uno.py, which is only present in
%{_libdir}/python3.3/site-packages, but not in %{_libdir}/python2.7/site-packages . So we can fix either:
1. unoconv: apply the python3 patch and change unoconv's shebang to "#!/usr/bin/env python3", or,
2. libreoffice: install uno.py and unohelper.py for python2 too (which means build-requiring both versions of python, but we already build-require half of the world anyway).

I will commit the fix for 1/, since I have it prepared already, but it might make more sense to do 2/ eventually.

Comment 2 David Tardon 2013-04-08 07:48:10 UTC
will be built as unoconv-0.6-3.fc19

Comment 3 Fedora Update System 2013-04-11 11:16:41 UTC
unoconv-0.6-3.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/unoconv-0.6-3.fc19

Comment 4 Fedora Update System 2013-04-11 16:36:50 UTC
Package unoconv-0.6-3.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing unoconv-0.6-3.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-5391/unoconv-0.6-3.fc19
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2013-04-20 19:31:06 UTC
unoconv-0.6-3.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.