OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Stuck with Python error, installing Bibus on OOo1.1.3

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> Setup and Troubleshooting
View previous topic :: View next topic  
Author Message
madmaxx
General User
General User


Joined: 09 Oct 2003
Posts: 25
Location: Zurich, CH

PostPosted: Mon Dec 27, 2004 6:15 am    Post subject: Stuck with Python error, installing Bibus on OOo1.1.3 Reply with quote

Hello everybody

... installing Bibus is indeed a tricky thing Wink 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 Very Happy
Back to top
View user's profile Send private message
tobias.weih
Newbie
Newbie


Joined: 06 Oct 2004
Posts: 2

PostPosted: Sat Jan 01, 2005 6:15 am    Post subject: use openoffice python Reply with quote

hi,

openoffice ships with an own python. Adjust $OOHOME/program/python.sh and use it instead.

hope this helps,
happy new year
tobi
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> Setup and Troubleshooting All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group