[spambayes-bugs] [ spambayes-Bugs-757371 ] Traceback when training on a certain message

SourceForge.net noreply at sourceforge.net
Wed Nov 3 02:41:07 CET 2004


Bugs item #757371, was opened at 2003-06-20 04:42
Message generated for change (Comment added) made by anadelonbrin
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=757371&group_id=61702

Category: hammie
Group: None
>Status: Closed
>Resolution: Out of Date
Priority: 5
Submitted By: Daniel Buchmann (avalon)
Assigned to: Nobody/Anonymous (nobody)
Summary: Traceback when training on a certain message

Initial Comment:
Using current CVS, mboxtrain crashes on the attached 
Unix mbox file, with the following traceback:

Training ham (buggy.mbox):
  Reading as Unix mbox
Traceback (most recent call last):
  File "/home/db/spambayes/mboxtrain.py", line 294, in ?
    main()
  File "/home/db/spambayes/mboxtrain.py", line 281, in 
main
    train(h, g, False, force, trainnew)
  File "/home/db/spambayes/mboxtrain.py", line 214, in 
train
    mbox_train(h, path, is_spam, force)
  File "/home/db/spambayes/mboxtrain.py", line 148, in 
mbox_train
    if msg_train(h, msg, is_spam, force):
  File "/home/db/spambayes/mboxtrain.py", line 80, in 
msg_train
    h.train(msg, is_spam)
  File "/home/db/spambayes/hammie.py", line 150, in 
train
    spambayes.hammiebulk.main()
  File "./spambayes/classifier.py", line 276, in learn
  File "./spambayes/classifier.py", line 402, in _add_msg
  File "./spambayes/storage.py", line 215, in 
_wordinfoget
  File "/usr/lib/python2.2/shelve.py", line 65, in get
    if self.dict.has_key(key):
TypeError: key type must be string


What could be wrong?

----------------------------------------------------------------------

>Comment By: Tony Meyer (anadelonbrin)
Date: 2004-11-03 14:41

Message:
Logged In: YES 
user_id=552329

This is either out-of-date (sorry!) or isn't a problem.

My suspicion (based on the traceback) is that the problem
was actually a bad database or a db problem.

Anyway, running sb_mboxtrain.py with the attached mbox works
for me with current CVS, so closing.  Please reopen if this
is incorrect.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=757371&group_id=61702


More information about the Spambayes-bugs mailing list