Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Libre/OpenOffice python and pyuno bridge
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Wed Oct 01, 2014 9:24 pm    Post subject: Libre/OpenOffice python and pyuno bridge Reply with quote

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
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 3684

PostPosted: Thu Oct 02, 2014 7:07 am    Post subject: Reply with quote

The link you mentioned is for openoffice but your question is about libreoffice. Have you checked the libreoffice docs for that topic?
http://ask.libreoffice.org/en/question/15797/writing-more-complex-text-into-writer-using-pyuno/
http://docs.libreoffice.org/pyuno/html/files.html and there might be some more
Back to top
View user's profile Send private message
_savage
Guru
Guru


Joined: 06 Jun 2004
Posts: 308
Location: Redmond, WA

PostPosted: Thu Oct 02, 2014 1:43 pm    Post subject: Reply with quote

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.

charles17 wrote:
Have you checked the libreoffice docs for that topic?
http://ask.libreoffice.org/en/question/15797/writing-more-complex-text-into-writer-using-pyuno/
http://docs.libreoffice.org/pyuno/html/files.html and there might be some more


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
View user's profile Send private message
El_Goretto
Moderator
Moderator


Joined: 29 May 2004
Posts: 3174
Location: Paris

PostPosted: Wed Aug 22, 2018 4:12 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum