I have a client running SUSE Enterprise Server 11 that I want to use a django project with OpenOffice-Python-Bridge called PyUNO . It starts apache2 with mod_wsgi and does not have virtualenv or anything else.
I added the appropriate path to PYTHONPATH, but when I started the python manage.py shell and tried import uno , I get this error:
dynamic module not initialized properly
This is OpenOffice 3.4, python 2.6.x (both from SUSE-DVD).
Google led me to the LD_LIBRARY_PATH system variable, but as soon as I set it, I can no longer run the shell because python cannot find django (PYTHONPATH seems to be somehow broken). If I run ldconfig -v /path/to/openoffice/program/ , which is another general suggestion, the result will be the same.
After doing one of the above, I can run system-wide python and import uno. But I can not start django-shell anymore because django was not found.
If I reset LD_LIBRARY_PATH (via unset LD_LIBRARY_PATH or ldconfig ), I get into the "old" situation.
OpenOffice comes bundled with the python binary. This can import uno without error.
Result: I was thinking of using another uno.py or somehow told apache2 to use the python version that came with openoffice. How can I do something like this or add the appropriate pyuno dependencies to the python version used by apache? Or what version of openoffice / pyuno can solve my problem? I would like not to touch mod_wsgi and python from SUSE sources.
Some tips on LD_LIBRARY_PATH may also be useful.
source share