Not sure if this issue is still pertinent, but I have been looking at probable causes and two are known:
One probably cause is that the default port 2002 is in use by another process on the system. The easiest way to find out is using another (random) port that is free, eg. using option -p 12321
Another probable cause is that unoconv is not using the correct environment for the UNO python bindings to work correctly.
If you have a related issue, please chime in in the relevant thread at:
opened 05:57AM - 23 May 12 UTC
support
FreeBSD
Hi,
I installed editors/openoffice-3 from the FreeBSD ports (Apache OpenOffice … 3.4), under a recent FreeBSD-9 (Stable).
The path for pyuno.so:
/usr/local/openoffice-3.4.0/openoffice.org/basis3.4/program/pyuno.so
unoconv does not work yet.
I tried the tarball for unoconv-0.4. First I had to add in the extrapath glob.glob('/usr/local/openoffice*/openoffice.org/basis*/program')
After that it comes up with
~/unoconv-0.4/unoconv -f pdf -o ~/test.pdf ~/test.odt
Traceback (most recent call last):
File "/root/unoconv-0.4/unoconv", line 68, in <module>
os.environ['LD_LIBRARY_PATH'] = oolibpath + os.pathsep + os.environ['LD_LIBRARY_PATH']
File "/usr/local/lib/python2.7/UserDict.py", line 23, in **getitem**
raise KeyError(key)
KeyError: 'LD_LIBRARY_PATH'
LD_LIBRARY_PATH isn't set.
Anyway, I tried to use the latest version checked out via Subversion.
~/svn/unoconv/trunk]//unoconv -f pdf -o ~/test.pdf ~/test.odt
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
I wasn't successful with the extrapath addition as I did on unoconv-04. The error stays the same (Cannot find a suitable office..)
As a side node, I replaced "#!/usr/bin/python" with "#!/usr/bin/env python" (FreeBSD installs it under /usr/local/bin).
OpenOffice 3.4 and python 2.7 are compiled at the same time (same ports snapshot from last Friday, same gcc etc.) so python and pyuno.so should fit together.
Any ideas?
Regards
Peter