How do you know that Python (any Python) knows about PyUno in LibreOffice?
When I do this:
import uno
python says that he does not know the "uno" module. (This question was raised to the question of this question .)
Here is what I did:
inside the LibreOffice directory there is a "program" directory with python.exe, if I use this python (which is in version 2.6.1), I can import uno.
As the answer to your comment says there: this is an optional installable component for OpenOffice. See the Introduction to Python page on OOo in the OpenOffice Wiki for installation details.
I have the same problem with ubuntu 14.04 and python 2.7.6.But if you are using ubuntu 12.04, try using sudo apt-get install python-uno.
I have the same problem with ubuntu 14.04 and python 2.7.6.
But if you are using ubuntu 12.04, try using sudo apt-get install python-uno.
(UPDATE for 2014)
Perhaps the most used UNO application is document conversion ... For this task you currently do not need UNO, you can directly use
libreoffice --convert-to
About UNO itself, see the new homepage, http://api.libreoffice.org/
A good example of using python3-uno (or python-uno ) is the Docvert converter ( Docvert for py2 ).
python3-uno
python-uno
Source: https://habr.com/ru/post/919911/More articles:Entity Framework Create database and tables at run time - c #How to install the previous Android support library (version 8) - androidException with surefire plugin with test phase in maven - javaPerl: Should Math64 :: Int64 work in a "safe" compartment? - perlHow to access ODB files in Python 2.7 - pythonwordpress get excerpt by id - wordpresssqlite ON CONFLICT difference between ABORT and FAIL - sqliteThunderBird event to view message - javascriptReading ActivityManager Logs on a Jelly Bean Device? - androidCheck out the first launch of my application - objective-cAll Articles