[pybsddb] ImportError: DLL load failed: The specified module could not be found.

Michael Rupp vbmrupp at gmail.com
Mon Jun 27 12:50:48 CEST 2011


When trying to work with the windows binary files that were provided in your
download, I am receiving this error.

Traceback (most recent call last):
  File "BerkleyDB.py", line 6, in <module>
    from bsddb3 import dbtables
  File "C:\Python27\lib\bsddb3\__init__.py", line 61, in <module>
    import _pybsddb
ImportError: DLL load failed: The specified module could not be found.

The _pybsddb.pyd dll is located in the folder structure, under bsddb3. I
just copied over and placed under the Python27\Lib\.

Here is the simple python module I'm trying to run.

Please advise.

from bsddb3 import dbtables
import os,sys

Home = os.path.dirname(sys.argv[0])
fruitDB = dbtables.bsdTableDB('fruit',Home,1)
db_py3kfruit = db_py3k(fruitDB)
db_py3kfruit.put("apple","red")
db_py3kfruit.put("orange","orange")
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jcea.es/pipermail/pybsddb/attachments/20110627/7ab4bba7/attachment.htm>


More information about the pybsddb mailing list