Use WinPython with LibreOffice 5

Does anyone have experience to use WinPython with LibreOffice 5

I tried to set the environment variable

In [10]: print(os.environ[‘URE_BOOTSTRAP’])
vnd.sun.star.pathname:C:\Program Files\LibreOffice 5\program\fundamental.ini

In [11]: print(os.environ[‘UNO_PATH’])
C:\Program Files\LibreOffice 5\program\

In [12]: print(os.environ[‘PATH’])
C:\WinPython-64bit-3.4.3.6\python-3.4.3.amd64\lib\site-packages\numpy\core;C:\WinPython-64bit-3.4.3.6\python-3.4.3.amd64\Lib\site-packages\PyQt5;C:\WinPython-64bit-3.4.3.6\python-3.4.3.amd64\Lib\site-packages\PyQt4;C:\WinPython-64bit-3.4.3.6\python-3.4.3.amd64;C:\WinPython-64bit-3.4.3.6\python-3.4.3.amd64\DLLs;C:\WinPython-64bit-3.4.3.6\python-3.4.3.amd64\Scripts;C:\WinPython-64bit-3.4.3.6\python-3.4.3.amd64…\tools;C:\WinPython-64bit-3.4.3.6\python-3.4.3.amd64…\tools\mingw32\bin;C:\WinPython-64bit-3.4.3.6\python-3.4.3.amd64…\tools\R\bin\x64;C:\WinPython-64bit-3.4.3.6\python-3.4.3.amd64…\tools\Julia\bin;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\LibreOffice 5\program;

However python is still not working when “import uno”

Any idea?

For those of us not familiar with WinPython, the homepage is at https://winpython.github.io/.

Hi

I don’t know WinPython. However if it does allow you to specify which Python interpreter to work with, you should then select LibreOffice’s interpreter. You’ll then be able to ‘import uno’

In the contrary I’d recommend you have a look at Geany and possibly read Python Design Guide

It’s difficult but possible to use versions of Python on Windows that are not included with LibreOffice.

On Windows you can try Pyzo IDE with PyUNO Workspace plugin.