|
From: | Humberto Freitas |
Subject: | [Health] Error printing pdf reports |
Date: | Fri, 11 Oct 2019 12:11:48 +0100 |
Hello guys, Thank you all so much for your fantastic work. You guys are the best… Can you check that you have an updated version of unoconv on python3 ? Hello Luis, I’m sorry for answering so late, I was out of the office and couldn’t test your solution. So, as you recommended I tried to run $unoconv —versionAnd this was the response: unoconv: Cannot find a suitable pyuno library and python binary combination in /usr/lib/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: So I duckduckgo(ed) this error and could find that this issues is caused when a system has different python versions installed, which in my case I’ve got Python 2.7, Python 3.5 and Python 3.7. After reading the issue on the unoconv GITHUB page and following the advice given here: https://github.com/unoconv/unoconv/issues/372#issuecomment-273956102, I tried it and guess what, it worked. These are the steps I did: 1. Find where uno.py and unohelper.py files are located: In my case, the files where in the Python 3.5 dist-packages 2. Copy both files, uno.py and unohelper.py, to the Python 3.7 site-packages 3. And VOILÀ… It’s working, I can now print all the reports as pdf files. Now, when I run $ unoconv —version unoconv 0.8.2 Written by Dag Wieers <address@hidden> Homepage at http://dag.wieers.com/home-made/unoconv/ platform posix/linux python 3.7.3 (default, Jul 23 2019, 16:16:42) [GCC 6.3.0 20170516] LibreOffice 5.2.7.2 After all, I’ve tried to print a pdf report, and it’s working as expected ;) |
[Prev in Thread] | Current Thread | [Next in Thread] |