This discussion is archived
1 Reply Latest reply: Nov 28, 2011 8:56 PM by 901833 RSS

Error trying to import python dbxml package

901833 Newbie
Currently Being Moderated

I can see a similar thread fro windows (see: Python API setup problem on Windows but I'm having this problem with fedora15 (64bit) / Python2.7 / BDB XML 2.5.16:

I can build and install BDB XML without any problems following the standard documentation. I'm then trying to get the Python API to work.

I followed the instructions and the bsddb3.db library works fine:

#$ python
#>>> from bsddb3.db import *
#>>> print version()
(4, 8, 26)
#>>> exit()

the problem is trying to import dbxml:

#$ python
#>>> from bsddb3.db import *
#>>> from dbxml import *
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/site-packages/", line 25, in <module>
dbxml = swigimport_helper()
File "/usr/lib64/python2.7/site-packages/", line 24, in swig_import_helper
return _mod
UnboundLocalError: local variable '_mod' referenced before assignment

And if I then try to reimport:
(following directly on from the above snippet)
#>>> from dbxml import *
Segmentation fault

... and python closes.

Any thoughts?

Edited by: 898830 on 23-Nov-2011 11:11

Edited by: 898830 on 23-Nov-2011 11:13


  • Correct Answers - 10 points
  • Helpful Answers - 5 points