View previous topic :: View next topic |
Author |
Message |
_savage Guru
Joined: 06 Jun 2004 Posts: 308 Location: Redmond, WA
|
Posted: Wed Oct 01, 2014 9:24 pm Post subject: Libre/OpenOffice python and pyuno bridge |
|
|
I've installed LibreOffice and it works just fine. It also seems as if the Python UNO bridge is somewhat there:
Code: | > find /usr/lib64/libreoffice -name '*uno*' | grep py
./program/pyuno.so
./program/services/pyuno.rdb
./program/pythonloader.unorc
./program/uno.py
./program/unohelper.py
./program/libpyuno.so
./share/registry/pyuno.xcd |
However, I can't find the python interpreter. From other installations, where a fully-functioning python 3.3 interpreter ships with LibreOffice, I would have expected something similar here.
My question is: how do I get UNO running with python here? Am I missing a pyuno package? (Can't find one.) _________________ Jens Troeger
http://savage.light-speed.de/ |
|
Back to top |
|
|
charles17 Advocate
Joined: 02 Mar 2008 Posts: 3684
|
|
Back to top |
|
|
_savage Guru
Joined: 06 Jun 2004 Posts: 308 Location: Redmond, WA
|
Posted: Thu Oct 02, 2014 1:43 pm Post subject: |
|
|
charles17 wrote: | The link you mentioned is for openoffice but your question is about libreoffice. |
From the UNO API point of view, I consider both (almost) equivalent.
The first question is actually one I asked a long time ago which received barely any attention. I have figured out the use of UNO pretty well since then, thanks to the much more active forums over at OO.
However, the use of UNO is not the topic of this thread. What I asked here is: where is the Python interpreter? Or, given that apparently some of the UNO infrastructure is being built as part of LibreOffice on Gentoo, how do I then invoke it from an existing Python install. Where is the Python bridge, and how do I run it? _________________ Jens Troeger
http://savage.light-speed.de/ |
|
Back to top |
|
|
El_Goretto Moderator
Joined: 29 May 2004 Posts: 3174 Location: Paris
|
Posted: Wed Aug 22, 2018 4:12 pm Post subject: |
|
|
Resurrection of an Ancient (Thread), but it was worthwhile.
Thanks to the link given (https://www.openoffice.org/udk/python/python-bridge.html#replacing):
Code: | $ PYTHONPATH=/usr/lib64/libreoffice/program/ bpython
bpython version 0.17.1 on top of Python 3.6.5 /usr/bin/python3.6
>>> import pyuno
>>> import uno
>>>
|
So I should be able to start working with pyoo from here. _________________ -TrueNAS & jails: µ-serv Gen8 E3-1260L, 16Go ECC + µ-serv N40L, 10Go ECC
-Réseau: APU2C4 (OpenWRT) + GS726Tv3 + 2x GS108Tv2 + Archer C5v1 (OpenWRT) |
|
Back to top |
|
|
|