[Spambayes] Failure to train mbox ham
Stephen Boulet
stephen at theboulets.net
Thu Oct 30 21:14:31 EST 2003
I tried training some mbox ham, but I get this error. Any ideas what could be
causing it?
Using spambayes 1.0a6 on linux with python 2.2.3.
-- Stephen
500 Server error
Traceback (most recent call last):
File "/usr/lib/python2.2/site-packages/spambayes/Dibbler.py", line 453, in
found_terminator
getattr(plugin, name)(**params)
File "/usr/lib/python2.2/site-packages/spambayes/UserInterface.py", line
388, in onTrain
classifier.learn(tokens, isSpam)
File "/usr/lib/python2.2/site-packages/spambayes/classifier.py", line 211,
in learn
self._add_msg(wordstream, is_spam)
File "/usr/lib/python2.2/site-packages/spambayes/classifier.py", line 337,
in _add_msg
record = self._wordinfoget(word)
File "/usr/lib/python2.2/site-packages/spambayes/storage.py", line 250, in
_wordinfoget
r = self.db.get(word)
File "/usr/lib/python2.2/shelve.py", line 65, in get
if self.dict.has_key(key):
AttributeError: 'int' object has no attribute 'has_key'
More information about the Spambayes
mailing list