Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unoconv: Cannot find a suitable pyuno library and python binary #486

Closed
raja1206 opened this issue Feb 1, 2019 · 4 comments
Closed

unoconv: Cannot find a suitable pyuno library and python binary #486

raja1206 opened this issue Feb 1, 2019 · 4 comments

Comments

@raja1206
Copy link

raja1206 commented Feb 1, 2019

[devmdm101@alsc-dev-mdm ~]$ unoconv -V
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

source files which are used and untar:
libreoffice-fresh-6.1.4-4-x86_64.pkg.tar.xz
python-3.7.2-3-x86_64.pkg.tar.xz
unoconv-0.8.2-1-any.pkg.tar.xz

@serverdevil
Copy link

I had this error when installing office on a non-standard path. The utility looks for office in all standard installation paths under windows (program files/x86) and *nix. Check https://github.com/dagwieers/unoconv/blob/master/unoconv to see how it resolves those paths.

If installing in a non-standard path, set the UNO_PATH env variable to office location.

@raja1206
Copy link
Author

[devmdm101@alsc-dev-mdm bin]$ pwd
/u01/unoconv_dumps/liboffice_dumps/usr/bin
[devmdm101@alsc-dev-mdm bin]$ ls -ltrh
total 40K
-rwxr-xr-x. 1 devmdm101 oinstall 52 Jan 21 01:41 unopkg
-rwxr-xr-x. 1 devmdm101 oinstall 61 Jan 21 01:41 lowriter
-rwxr-xr-x. 1 devmdm101 oinstall 58 Jan 21 01:41 loweb
-rwxr-xr-x. 1 devmdm101 oinstall 59 Jan 21 01:41 lomath
-rwxr-xr-x. 1 devmdm101 oinstall 62 Jan 21 01:41 loimpress
-rwxr-xr-x. 1 devmdm101 oinstall 64 Jan 21 01:41 lofromtemplate
-rwxr-xr-x. 1 devmdm101 oinstall 53 Jan 21 01:41 loffice
-rwxr-xr-x. 1 devmdm101 oinstall 59 Jan 21 01:41 lodraw
-rwxr-xr-x. 1 devmdm101 oinstall 59 Jan 21 01:41 localc
-rwxr-xr-x. 1 devmdm101 oinstall 59 Jan 21 01:41 lobase
lrwxrwxrwx. 1 devmdm101 oinstall 36 Feb 12 05:26 soffice -> /usr/lib/libreoffice/program/soffice
lrwxrwxrwx. 1 devmdm101 oinstall 36 Feb 12 05:26 libreoffice -> /usr/lib/libreoffice/program/soffice
[devmdm101@alsc-dev-mdm bin]$ export UNO_PATH=/u01/unoconv_dumps/liboffice_dumps/usr/bin:/u01/unoconv_dumps/paython_dump/usr/bin:$UNO_PATH
[devmdm101@alsc-dev-mdm bin]$
[devmdm101@alsc-dev-mdm bin]$ echo $UNO_PATH
/u01/unoconv_dumps/liboffice_dumps/usr/bin:/u01/unoconv_dumps/paython_dump/usr/bin:/u01/unoconv_dumps/liboffice_dumps/usr/bin:/u01/unoconv_dumps/paython_dump/usr/bin:/u01/unoconv_dumps/liboffice_dumps/usr/bin:/u01/unoconv_dumps/paython_dump/usr/bin:/u01/unoconv_dumps/liboffice_dumps/libreoffice-4.3.7.2:/u01/unoconv_dumps/paython_dump/usr/bin:/u01/unoconv_dumps/liboffice_dumps/libreoffice-4.3.7.2:/u01/unoconv_dumps/paython_dump/usr/bin:
[devmdm101@alsc-dev-mdm bin]$
[devmdm101@alsc-dev-mdm bin]$ unoconv -V
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
[devmdm101@alsc-dev-mdm bin]$

@serverdevil
Copy link

i'm hoping "paython" is not a mis-spell!!
Regardless, mentioning full paths for the unoconv and libreoffice's python utility has been working just fine.

@raja1206
Copy link
Author

[devmdm101@alsc-dev-mdm bin]$ export UNO_PATH=/u01/unoconv_dumps/usr/bin/unoconv:/u01/unoconv_dumps/liboffice_dumps/usr/bin:/u01/unoconv_dumps/paython_dump/usr/bin/python3:$UNO_PATH
[devmdm101@alsc-dev-mdm bin]$
[devmdm101@alsc-dev-mdm bin]$ unoconv -V
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
[devmdm101@alsc-dev-mdm bin]$

@regebro regebro closed this as completed Feb 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants