ImportError: No module named _bsddb

Xavier Shay xavier-list at rhnh.net
Sat Oct 20 18:07:38 EST 2007


I'm trying to run venus and am getting the
following error when I run tests or the app:

ImportError: No module named _bsddb

I'm not really sure where to start looking to solve this problem, any
guidance would be appreciated.

Cheers,
Xavier

Details follow:

$ uname -prs
FreeBSD 6.2-STABLE amd64
$ python -V
Python 2.5.1


$ python runtests.py 
Genshi is not available => can't test genshi filters
xsltproc is not available => can't test XSLT templates
Django is not available => can't test django filters
libxslt is not available => can't test xslt filters
sed is not available => can't test stripAd_yahoo
libxml2 is not available => can't test xpath_sifter
Redland RDF is not available => can't test FOAF reading lists
...........................................................................EEE......................................................................................................................
======================================================================
ERROR: test_index_spider (tests.test_idindex.idIndexTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/xavier/venus/tests/test_idindex.py", line 30, in
test_index_spider
    index = idindex.create()
  File "/home/xavier/venus/planet/idindex.py", line 38, in create
    import dbhash
  File "/usr/local/lib/python2.5/dbhash.py", line 5, in <module>
    import bsddb
  File "/usr/local/lib/python2.5/bsddb/__init__.py", line 51, in
<module>
    import _bsddb
ImportError: No module named _bsddb

======================================================================
ERROR: test_index_splice (tests.test_idindex.idIndexTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/xavier/venus/tests/test_idindex.py", line 51, in
test_index_splice
    index = idindex.create()
  File "/home/xavier/venus/planet/idindex.py", line 38, in create
    import dbhash
  File "/usr/local/lib/python2.5/dbhash.py", line 5, in <module>
    import bsddb
  File "/usr/local/lib/python2.5/bsddb/__init__.py", line 51, in
<module>
    import _bsddb
ImportError: No module named _bsddb

======================================================================
ERROR: test_unicode (tests.test_idindex.idIndexTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/xavier/venus/tests/test_idindex.py", line 19, in
test_unicode
    index = idindex.create()
  File "/home/xavier/venus/planet/idindex.py", line 38, in create
    import dbhash
  File "/usr/local/lib/python2.5/dbhash.py", line 5, in <module>
    import bsddb
  File "/usr/local/lib/python2.5/bsddb/__init__.py", line 51, in
<module>
    import _bsddb
ImportError: No module named _bsddb

----------------------------------------------------------------------
Ran 196 tests in 2.864s

FAILED (errors=3)
Exception exceptions.AttributeError: "'NoneType' object has no attribute
'maxint'" in <bound method Popen.__del__ of <subprocess.Popen object at
0xdff9d0>> ignored
$ 


More information about the devel mailing list