Error Cannot Find The Pyuno.so Library
Contents |
Sign in Pricing Blog Support Search GitHub This repository unoconv: cannot find a suitable office installation on your system. Watch 134 Star 803 Fork 227 dagwieers/unoconv Code Issues unoconv libreoffice 107 Pull requests 14 Projects 0 Pulse Graphs New issue unoconv: Cannot find a libreoffice pyuno suitable pyuno library and python binary combination #49 Closed Lakshmipathi opened this Issue Apr 23, 2012 · 23 comments Projects None yet unoconv install Labels support Milestone Release 0.6 Assignees dagwieers 8 participants Lakshmipathi commented Apr 23, 2012 I did a git clone and running into following error message. I don't have openoffice but I have libreoffice write/calc/Impress installed on my machine. Any thoughts what's the
Unoconv Python
issue? (I'm using Fedora16 and Python-2.7.2) #./unoconv unoconv: Cannot find a suitable pyuno library and python binary combination in /usr/lib64/libreoffice ERROR: Please locate this library and send your feedback to: http://github.com/dagwieers/unoconv/issues 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 graaff commented Apr 23, 2012 I have the same problem. The paths are determined correctly according to debug_office() sysname=posix platform=linux2 python=/usr/bin/python2 python-version=2.7.2 (default, Oct 29 2011, 08:55:35) [GCC 4.5.3] URE_BOOTSTRAP=vnd.sun.star.pathname:/usr/lib64/libreoffice/program/fundamentalrc UNO_PATH=/usr/lib64/libreoffice/program PATH=/usr/lib64/libreoffice/program:/home/graaff/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3:/opt/android-sdk-update-manager/tools:/opt/android-sdk-update-manager/platform-tools:/usr/games/bin LD_LIBRARY_PATH=/usr/lib64/libreoffice/program:/usr/lib64/libreoffice/ure-link/lib unoconv: Cannot find a suitable pyuno library and python binary combination in /usr/lib64/libreoffice ERROR: Please locate this library and send your feedback to: http://github.com/dagwieers/unoconv/issues No module named uno uno.py is located in /usr/lib64/libreoffice/program I fixed this by adding the following line to office_environ() sys.p
sorted by: [ date ] [ thread ] [ subject ] [ author ] A workable solution I found was to run unoconv as "/opt/openoffice.org2.3/python.sh unoconv
Libreoffice Python
part of the command. I still had to modify the paths that it searches in so it would find my openoffice environment. Thank you, Rob ----- Original Message ---- From: Dag Wieers Traceback (most recent call last): > File "
> > The pyuno.so file exists in that directory along with the uno.py file. > > When I try to run the commands manually from the OOo python, it is able to import uno. But when I change the shebang from #!/usr/bin/python to #!/opt/openoffice.org2.3/program/python, it gives me the following: > > /usr/bin/unoconv: line 17: import: command not found > /usr/bin/unoconv: line 20: syntax error near unexpected token '(' > /usr/bin/unoconv: line 20: \extrapaths = glob.glob('opt/openoffice.org2.3/program') + glob.glob('/usr/lib*/ooo*/program') + [ '/Applications/NeoOffice.app/Contents/program', ]'
> > It is getting past the shebang/interpreter (If I change it so something that should fail, it gives the Bad Interpretor error, as it should.) But it is not able to do anything (besides ignore comment lines). > > So, apparently the 'system' python can't find pyuno.so (even when it is in the sys.path and it can find the uno.py file that requests it), and the OOo python can't do anything at all. And I'm royally