madmaxx General User


Joined: 09 Oct 2003 Posts: 25 Location: Zurich, CH
|
Posted: Mon Dec 27, 2004 6:15 am Post subject: Stuck with Python error, installing Bibus on OOo1.1.3 |
|
|
Hello everybody
... installing Bibus is indeed a tricky thing Right now I am really stuck with this:
| Code: | > ./bibus.sh
Traceback (most recent call last):
File "./bibus.py", line 40, in ?
import BibFrame,BIB,BibConfig
File "/home/mad/9-sw/2-apps/Bibus/Bibus-0.9.0/BibFrame.py", line 25, in ?
import OpenOffice.bibOOo
File "/home/mad/9-sw/2-apps/Bibus/Bibus-0.9.0/OpenOffice/bibOOo.py", line 20, in ?
import uno
File "/usr/lib/ooo-1.1/program/uno.py", line 62, in ?
import pyuno
SystemError: dynamic module not initialized properly
|
How can I initialize dyn. modules in Python?
The installed SuSE rpm's around Python & MySQL:
| Code: | > rpm -qa | grep python
python-tk-2.3.4-3
python-pygame-1.6.2-2
python-xml-2.3.4-3
python-bibtex-1.1.93.1-100
python-numeric-23.3-2
python-gtk-2.2.0-3
python-wxGTK-2.5.2.8-3
python-gnome-2.0.3-2
python-2.3.4-3
python-korean-2.0.5-353
python-devel-2.3.4-3
python-japanese-1.4.10-68
python-orbit-2.0.0-177
python-mysql-1.1.1-2
> rpm -qa | grep mysql
mysql-shared-4.0.21-4
mysqlcc-0.9.4-88
mysql-4.0.21-4.2
perl-DBD-mysql-2.9004-2
qt3-mysql-3.3.3-24
mysql-client-4.0.21-4
python-mysql-1.1.1-2
|
Finally, bibus.sh looks like this:
| Code: | #!/bin/sh
OO="/usr/lib/ooo-1.1/program"
LD_LIBRARY_PATH=$OO:$LD_LIBRARY_PATH
PYTHONPATH=$OO:$PYTHONPATH
export LD_LIBRARY_PATH
export PYTHONPATH
DirName=`dirname $0`
/usr/bin/env python $DirName/bibus.py
exit 1
|
Besides, my system runs SuSE pro 9.2 and OO.org 1.1.3.
The mySQL database "Biblio" is configured and seems to be correct.
Thanks a lot for some hints of how to proceed!
madmaxx  |
|