You are not logged in.

#1 2012-07-19 11:27:28

SkyTod
Member
Registered: 2009-09-01
Posts: 226

libreoffice-pyuno

Hello here,

Where can I get the libreoffice-pyuno to import uno module for pythoning?

Thanks in advance!

Offline

#2 2012-07-19 11:51:00

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,555
Website

Re: libreoffice-pyuno

This one?

$ pacman -Ss libreoffice uno
extra/unoconv 0.4-4
    Libreoffice-based document converter

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2012-07-19 11:55:25

SkyTod
Member
Registered: 2009-09-01
Posts: 226

Re: libreoffice-pyuno

Nope. It's converter. I need Libreoffice python module.

Offline

#4 2012-07-19 13:28:45

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,580

Re: libreoffice-pyuno

Libefoffice-common has  usr/lib/libreoffice/program/libpyuno.so .
That suggests the functionality you need is already present in your libreoffice install, check libreoffice documentation.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2012-07-19 13:45:44

SkyTod
Member
Registered: 2009-09-01
Posts: 226

Re: libreoffice-pyuno

.so is library, however I need python module to export it to certain script that requires uno module, like following:

Traceback (most recent call last):
  File "lptest.py", line 2, in <module>
    import uno
ImportError: No module named uno

Last edited by SkyTod (2012-07-19 13:47:45)

Offline

#6 2012-07-19 14:30:59

thisoldman
Member
From: Pittsburgh
Registered: 2009-04-25
Posts: 1,172

Re: libreoffice-pyuno

$ locate uno.py
/usr/lib/libreoffice/program/uno.py

$ pacman -Qo /usr/lib/libreoffice/program/uno.py
/usr/lib/libreoffice/program/uno.py is owned by libreoffice-common 3.5.5-1

Offline

#7 2012-07-19 15:01:54

SkyTod
Member
Registered: 2009-09-01
Posts: 226

Re: libreoffice-pyuno

hm...after...

sudo chmod +x /usr/lib/libreoffice/program/uno.py
export PYTHONPATH=$PYTHONPATH:/usr/lib/libreoffice/program/

It works. Thank you all!

Offline

Board footer

Powered by FluxBB