[Spambayes] SpamBayes - MacOS - AttributeError: 'NoneType' object has no attribute 'hashopen'

Philippe BAQUÉ philippe.baque at univ-tlse3.fr
Wed Apr 6 18:31:30 CEST 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Am trying to install "Spambayes" on my Macos 10.6 (puthon 2.6)… And I had this messaghe in return…

Is somebody have the same prob than me and can heklp me to fix this prob?

Than You

Regards

- ------

$ sb_imapfilter.py -b
SpamBayes IMAP Filter Version 1.1b1 (February, 25, 2011).

Traceback (most recent call last):
  File "/usr/local/bin/sb_imapfilter.py", line 5, in <module>
    pkg_resources.run_script('spambayes==1.1b1', 'sb_imapfilter.py')
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 442, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.py", line 1160, in run_script
    execfile(script_filename, namespace, namespace)
  File "/Library/Python/2.6/site-packages/spambayes-1.1b1-py2.6.egg/EGG-INFO/scripts/sb_imapfilter.py", line 1324, in <module>
    run()
  File "/Library/Python/2.6/site-packages/spambayes-1.1b1-py2.6.egg/EGG-INFO/scripts/sb_imapfilter.py", line 1190, in run
    classifier = storage.open_storage(bdbname, useDBM)
  File "/Library/Python/2.6/site-packages/spambayes-1.1b1-py2.6.egg/spambayes/storage.py", line 1000, in open_storage
    return klass(data_source_name)
  File "/Library/Python/2.6/site-packages/spambayes-1.1b1-py2.6.egg/spambayes/storage.py", line 154, in __init__
    self.load()
  File "/Library/Python/2.6/site-packages/spambayes-1.1b1-py2.6.egg/spambayes/storage.py", line 180, in load
    self.dbm = dbmstorage.open(self.db_name, self.mode)
  File "/Library/Python/2.6/site-packages/spambayes-1.1b1-py2.6.egg/spambayes/dbmstorage.py", line 70, in open
    return f(db_name, mode)
  File "/Library/Python/2.6/site-packages/spambayes-1.1b1-py2.6.egg/spambayes/dbmstorage.py", line 40, in open_best
    return f(*args)
  File "/Library/Python/2.6/site-packages/spambayes-1.1b1-py2.6.egg/spambayes/dbmstorage.py", line 20, in open_dbhash
    return bsddb.hashopen(*args)
AttributeError: 'NoneType' object has no attribute 'hashopen'

- --
<--
Philippe BAQUÉ
Département TICE
Université Paul Sabatier
Bât IR1
118, route de Nabonne
31061 Toulouse cédex 9
- --
05 61 36 60 17
philippe.baque at univ-tlse3.fr
- -->



-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAk2clWIACgkQiOuogphYZjLsDgCgmLI8EQg2E0sPDC2kvjL13P1X
K1AAn3RyEQJWQ82dz5Z+p6b/3rb1fjud
=bYLt
-----END PGP SIGNATURE-----


More information about the SpamBayes mailing list