openoffice-pyuno and external python programs

Zoltan Kota z.kota at gmx.net
Tue Oct 16 11:06:18 UTC 2007


Hi, 

I sent the email below to fedora-devel some time ago; there was no 
response. Let's try again with some additional info. :-) 

I'm the fedora maintainer of pybliographer. The development version of 
pyblio (which I would like to push to the devel repo soon) has the 
capability to interact with openoffice through the pyuno component. 
(Bibus can do the same.) It can add citations and generate reference list 
in the document for example. 
The openoffice.org-pyuno package installs uno.py and other files 
under /usr/lib/openoffice.org/program/, so with the default installations 
and settings importing uno.py from external python programs gives an 
import error. Program specific patches could be used probably to add this 
'strange' path to pythonpath, but wouldn't be better to make available 
these moduls for python at the openoffice level? See below what debian 
does. 
Any thoughts, ideas?

Zoltan

---------- Forwarded message ----------
Date: Wed, 12 Sep 2007 23:18:19 +0200 (CEST)
From: Zoltan Kota <z.kota at gmx.net>
Reply-To: Development discussions related to Fedora
    <fedora-devel-list at redhat.com>
To: Fedora devel <fedora-devel-list at redhat.com>
Subject: openoffice-pyuno and external python programs

Hi,

Files from openoffice.org-pyuno are installed under
/usr/lib/openoffice.org2.0. So, 'import uno' from python gives an import 
error. How should we support external programs to use this module? Should 
we patch the program to import uno.py from this directory 
somehow? Or would be better to change the installation path in the 
openoffice.org-pyuno package? 
Debian for instance installs 
/usr/share/pycentral/python-uno/site-packages/uno.py
/usr/share/pycentral/python-uno/site-packages/unohelper.py
/usr/lib/python2.4/site-packages/pyuno.so


Zoltan




More information about the fedora-devel-list mailing list