[Spambayes] spambayes-1.0.3 fails

Dmitry Karasik dmitry at karasik.eu.org
Tue Apr 12 01:38:33 CEST 2005


My fresh installation of sb_filter.py fails with the error. the file
'sample_mail' is a simple message, but the error is the same on every message
i've tested spambayes on. What can be wrong here?

$ sb_filter.py < sample_mail
Traceback (most recent call last):
File "/usr/local/bin/sb_filter.py", line 257, in ?
main()
File "/usr/local/bin/sb_filter.py", line 248, in main
action(msg)
File "/usr/local/bin/sb_filter.py", line 180, in filter
return self.h.filter(msg)
File
"/usr/local/lib/python2.4/site-packages/spambayes/hammie.py",
line 109, in filter
prob, clues = self._scoremsg(msg, True)
File
"/usr/local/lib/python2.4/site-packages/spambayes/hammie.py",
line 38, in _scoremsg
return self.bayes.spamprob(tokenize(msg), evidence)
AttributeError: 'NoneType' object has no attribute
'spamprob'
zsh: 87791 exit 1 sb_filter.py < aa


-- 
Sincerely,
	Dmitry Karasik



More information about the Spambayes mailing list