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

Rich Cook wealthychef at yahoo.com
Sat Apr 17 18:51:11 CEST 2010


Hi, I tried updating spambayes to 1.1.a6 and boy was that a mistake, I get the following error.  Can you help me?  Thanks

+ python /usr/local/bin/sb_mboxtrain.py -d /Users/rcook/.hammiedb -s /Users/rcook/Library/Mail/Dovecot-IMAP/Spam-and-Ham-Training/Junk-definite -f
Attempted to set [Storage] persistent_use_database with invalid value True (<type 'str'>)
Traceback (most recent call last):
  File "/usr/local/bin/sb_mboxtrain.py", line 5, in <module>
    pkg_resources.run_script('spambayes==1.1a6', 'sb_mboxtrain.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
...
... (lots skipped) 
  File "/Library/Python/2.6/site-packages/spambayes-1.1a6-py2.6.egg/EGG-INFO/scripts/sb_mboxtrain.py", line 328, in main
    h = hammie.open(pck, usedb, "c")
  File "/Library/Python/2.6/site-packages/spambayes-1.1a6-py2.6.egg/spambayes/hammie.py", line 272, in open
    return Hammie(storage.open_storage(filename, useDB, mode), mode)
  File "/Library/Python/2.6/site-packages/spambayes-1.1a6-py2.6.egg/spambayes/storage.py", line 998, in open_storage
    return klass(data_source_name, mode)
  File "/Library/Python/2.6/site-packages/spambayes-1.1a6-py2.6.egg/spambayes/storage.py", line 154, in __init__
    self.load()
  File "/Library/Python/2.6/site-packages/spambayes-1.1a6-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.1a6-py2.6.egg/spambayes/dbmstorage.py", line 70, in open
    return f(db_name, mode)
  File "/Library/Python/2.6/site-packages/spambayes-1.1a6-py2.6.egg/spambayes/dbmstorage.py", line 40, in open_best
    return f(*args)
  File "/Library/Python/2.6/site-packages/spambayes-1.1a6-py2.6.egg/spambayes/dbmstorage.py", line 20, in open_dbhash
    return bsddb.hashopen(*args)
AttributeError: 'NoneType' object has no attribute 'hashopen'

---------------------------------------------
Be impeccable with your word, don't take anything personally, don't make assumptions, and always do your best. 
	-- The Four Agreements
----------------------------------------------
Rich Cook
wealthychef at yahoo.com




More information about the SpamBayes mailing list