[spambayes-dev] Dibbler.py error in training

sean darcy seandarcy at hotmail.com
Thu Apr 1 17:47:17 EST 2004


I'm  training using the web interface. When I click train I got the 
following:

500 Server error

Traceback (most recent call last):

  File "/usr/lib/python2.3/site-packages/spambayes/Dibbler.py", line 461, in 
found_terminator
    getattr(plugin, name)(**params)

  File "/usr/lib/python2.3/site-packages/spambayes/ProxyUI.py", line 391, in 
onReview
    fromCache=True)

  File "/usr/lib/python2.3/site-packages/spambayes/Corpus.py", line 200, in 
takeMessage
    types.StringsTypes):

NameError: global name 'types' is not defined


So, I used CVS today. Now I get:

500 Server error

Traceback (most recent call last):

  File "/usr/lib/python2.3/site-packages/spambayes/Dibbler.py", line 461, in 
found_terminator
    getattr(plugin, name)(**params)

  File "/usr/lib/python2.3/site-packages/spambayes/ProxyUI.py", line 391, in 
onReview
    fromCache=True)

  File "/usr/lib/python2.3/site-packages/spambayes/Corpus.py", line 213, in 
takeMessage
    fromcorpus.removeMessage(msg)

  File "/usr/lib/python2.3/site-packages/spambayes/FileCorpus.py", line 151, 
in removeMessage
    Corpus.Corpus.removeMessage(self, message, observer_flags)

  File "/usr/lib/python2.3/site-packages/spambayes/Corpus.py", line 147, in 
removeMessage
    obs.onRemoveMessage(message, observer_flags)

  File "/usr/lib/python2.3/site-packages/spambayes/storage.py", line 606, in 
onRemoveMessage
    if flags.find(NO_TRAINING_FLAG) < 0:

AttributeError: 'NoneType' object has no attribute 'find'



sean

_________________________________________________________________
Tax headache? MSN Money provides relief with tax tips, tools, IRS forms and 
more! http://moneycentral.msn.com/tax/workshop/welcome.asp




More information about the spambayes-dev mailing list