Ask Your Question

Use WinPython with LibreOffice 5 [closed]

asked 2016-01-13 16:56:04 +0100

Dan Lee gravatar image

updated 2020-10-23 22:59:28 +0100

Alex Kemp gravatar image

Does anyone have experience to use WinPython with LibreOffice 5

I tried to set the environment variable

In [10]: print(os.environ['URE_BOOTSTRAP'])\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-\python-3.4.3.amd64\lib\site-packages\numpy\core;C:\WinPython-64bit-\python-3.4.3.amd64\Lib\site-packages\PyQt5;C:\WinPython-64bit-\python-3.4.3.amd64\Lib\site-packages\PyQt4;C:\WinPython-64bit-\python-3.4.3.amd64\;C:\WinPython-64bit-\python-3.4.3.amd64\DLLs;C:\WinPython-64bit-\python-3.4.3.amd64\Scripts;C:\WinPython-64bit-\python-3.4.3.amd64..\tools;C:\WinPython-64bit-\python-3.4.3.amd64..\tools\mingw32\bin;C:\WinPython-64bit-\python-3.4.3.amd64..\tools\R\bin\x64;C:\WinPython-64bit-\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?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2021-02-09 16:09:50.471461


For those of us not familiar with WinPython, the homepage is at

Jim K gravatar imageJim K ( 2017-12-14 19:38:49 +0100 )edit

3 Answers

Sort by » oldest newest most voted

answered 2017-12-14 18:22:46 +0100


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

edit flag offensive delete link more

answered 2017-12-14 19:25:44 +0100

Jim K gravatar image

updated 2017-12-14 19:44:04 +0100

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

edit flag offensive delete link more

answered 2017-12-15 20:04:24 +0100

kelsa gravatar image

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

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-01-13 16:56:04 +0100

Seen: 710 times

Last updated: Dec 15 '17