[Spambayes] Installing SpamBayes on MAC OS X 10.8.5

Skip Montanaro skip at pobox.com
Fri Oct 18 19:54:54 CEST 2013

>   File "/Library/Python/2.7/site-packages/spambayes-1.1a6-py2.7.egg/spambayes/dbmstorage.py", line 20, in open_dbhash
>     return bsddb.hashopen(*args)
> AttributeError: 'NoneType' object has no attribute 'hashopen'

SpamBayes is unable to import any variant of the bsddb module. It
looks like you are using the Apple-provided version of Python. On my
(much older) version of Mac OS X (Snow Leopard, 10.6.x), neither the
bsddb nor the bsddb3 modules are available. The bsddb185 module is
provided by Apple, but the underlying 1.85 version of Berkeley DB is
broken badly, and so not supported by SpamBayes.

Your best bet is probably to install bsddb3 from PyPI:



More information about the SpamBayes mailing list