First thing I would do is to see in which folder pyuno.dylib lives in,
because it doesn't seem to be in the same as uno.py. Quick hack would
be to copy/move it then to the program folder and test your import
statement once again.
I hope you know that there are several rules to follow when using
system python instead of the OOo python core, for example that your
system python needs to be of version 2.2 (OOo 1.1.x) or 2.3(.4) for
OOo 2.0(.x).
See http://udk.openoffice.org/python/python-bridge.html#replacing for
more information.
2006/2/22, Katja Süss [EMAIL PROTECTED]:
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 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
--
Best Regards
Christian Junker
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]