[Python-de] PyUNO with different Python

Katja Süss k.suess at gmx.net
Mit Feb 22 16:39:55 CET 2006


Hi!
maybe somebody can give me an hint to my problem setting up PyUNO on my 
Mac to work with my Python not the Python delivered with OpenOffice.
As said in installation instructions I've set
   OPENOFFICE_PATH="/usr/lib/openoffice/program"
   export PYTHONPATH="$OPENOFFICE_PATH"
   export LD_LIBRARY_PATH="$OPENOFFICE_PATH"
according to my environment.

importing uno gives me this error:

>>> import uno
Traceback (most recent call last):
 File "<stdin>", line 1, in ?
 File "/Applications/OpenOffice.org 
2.0.app/Contents/openoffice.org2.0/program/uno.py", line 37, in ?
   import pyuno
ImportError: No module named pyuno

which means python finds uno but not pyuno (pyuno.dylib).

Any hints?
Regards, Katja