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 combination in /usr/lib/libreoffice #356

Closed
Waffleboy opened this issue Sep 24, 2016 · 2 comments

Comments

@Waffleboy
Copy link

Waffleboy commented Sep 24, 2016

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

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

Running debug_office(),

PATH=/home/waffleboy/.nvm/versions/node/v6.2.1/bin:/usr/local/cuda/bin:/storage/programfiles/anaconda3/bin:/home/waffleboy/Qt5.7.0/5.7/gcc_64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/bin:/storage/programfiles/:/home/waffleboy/bin:/storage/programfiles/spark-1.6.2/bin
PYTHONPATH=/storage/programfiles/anaconda3/bin/
LD_LIBRARY_PATH=:/usr/local/cuda/lib64:/usr/local/cudnn/lib64

I'm on ubuntu 16.04, i have libreoffice installed. /usr/bin/libreoffice does not exist though, so i apt-get installed libreoffice-base. It still doesn't work though. Kinda stumped, any ideas?

@lukaszle
Copy link

lukaszle commented Oct 21, 2016

Hi.
I solved this by installing fresh LibreOffice from here:
After unpacking archive run sudo dpkg -i *.deb in DEBS subdirectory to install LibreOffice 5.2.
Default install location is /opt/libreoffice5.2/

Then force using this version by setting UNO_PATH - to run unoconv:
UNO_PATH=/opt/libreoffice5.2 unoconv

lukasz@ubudev:~/CSV$ UNO_PATH=/opt/libreoffice5.2 unoconv


unoconv: you have to provide a filename or url as argument
Try `unoconv -h' for more information.

I noticed package libobasis5.2-pyuno_5.2.2.2-2_amd64.deb in DEBS.
I'm pretty sure that if you will download installer for your LibreOffice version and install this package it will do the job.

@regebro
Copy link
Member

regebro commented Feb 18, 2019

Glad you found a solution.

I recently encountered this as well. ERROR: No module named 'base' is usually caused by installing another module also called "uno".

pip uninstall uno usually solves that.

@regebro regebro closed this as completed Feb 18, 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