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

Cannot find a suitable pyuno library and python binary - a newbie #405

Closed
nattyseydi opened this issue Jul 24, 2017 · 4 comments

Comments

@nattyseydi
Copy link

commented Jul 24, 2017

Hi, I am a newbie. I have a directory with 140 pdf, I was looking a command who will help to convert all these files in one shot. I find "unoconv". After clonig it Ihave this error message "Cannot find a suitable pyuno library and python binary combination in /usr/lib/libreoffice".

There is lot of issues talking bout it, I tried what other people suggest but it's still not working. I am on ubuntu 16.04
Any help will be grateful. I am a newbie...

@pikhovkin

This comment has been minimized.

Copy link

commented Dec 18, 2017

Try to copy from /usr/bin/unoconv to /usr/local/bin/unoconv.
And try to replace #!/usr/bin/env python3 on #!/usr/bin/python3 in unoconv file.

@efinal

This comment has been minimized.

Copy link

commented Apr 1, 2018

thanks, it works though I don't know why...

@younismahsud

This comment has been minimized.

Copy link

commented Nov 29, 2018

Try to copy from /usr/bin/unoconv to /usr/local/bin/unoconv.
And try to replace #!/usr/bin/env python3 on #!/usr/bin/python3 in unoconv file.

This also worked for me. Thank you.

@regebro

This comment has been minimized.

Copy link
Collaborator

commented Feb 15, 2019

I've noticed that when these issues arise, the solution is to run unoconv with the python executable that comes with the Libreoffice installation you want to use. Like so:

UNOPATH=/path/to/Libreoffice /path/to/Libreoffice/program/python /usr/bin/unoconv ....

Yes, that's fairly annoying, but only happens with multiple LibreOffice and/or Python installations.

Further discussion on #49

@regebro regebro closed this Feb 15, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.