[spambayes-dev] Bug?: assert hamcount <= nham
Titus von der Malsburg
malsburg at cl.uni-heidelberg.de
Tue Jul 20 15:08:24 CEST 2004
Hi,
I observed, that the following error happens sometimes when a message is
being classified while sb_mboxtrain.py is running:
procmail: Assigning "MAILDIR=/home/mitarb/malsburg/Maildir"
procmail: Assigning "DEFAULT=/home/mitarb/malsburg/Maildir/"
procmail: Assigning "ARCHIVDIR=/home/mitarb/malsburg/.procmail/archiv"
procmail: Assigning "BAYESCUSTOMIZE=/home/mitarb/malsburg/.spambayesrc"
procmail: Locking "hamlock"
procmail: Executing "/home/mitarb/malsburg/usr/bin/sb_filter.py"
Traceback (most recent call last):
File "/home/mitarb/malsburg/usr/bin/sb_filter.py", line 257, in ?
main()
File "/home/mitarb/malsburg/usr/bin/sb_filter.py", line 248, in main
action(msg)
File "/home/mitarb/malsburg/usr/bin/sb_filter.py", line 180, in filter
return self.h.filter(msg)
File
"/home/mitarb/malsburg/usr/lib/python2.3/site-packages/spambayes/hammie.py",
line 109, in filter
prob, clues = self._scoremsg(msg, True)
File
"/home/mitarb/malsburg/usr/lib/python2.3/site-packages/spambayes/hammie.py",
line 38, in _scoremsg
return self.bayes.spamprob(tokenize(msg), evidence)
File
"/home/mitarb/malsburg/usr/lib/python2.3/site-packages/spambayes/classifier.py",
line 190, in chi2_spamprob
clues = self._getclues(wordstream)
File
"/home/mitarb/malsburg/usr/lib/python2.3/site-packages/spambayes/classifier.py",
line 493, in _getclues
tup = self._worddistanceget(word)
File
"/home/mitarb/malsburg/usr/lib/python2.3/site-packages/spambayes/classifier.py",
line 508, in _worddistanceget
prob = self.probability(record)
File
"/home/mitarb/malsburg/usr/lib/python2.3/site-packages/spambayes/classifier.py",
line 308, in probability
assert hamcount <= nham
AssertionError
procmail: [19899] Tue Jul 20 14:43:10 2004
procmail: Program failure (1) of
"/home/mitarb/malsburg/usr/bin/sb_filter.py"
procmail: Rescue of unfiltered data succeeded
procmail: [19899] Tue Jul 20 14:43:10 2004
procmail: Unlocking "hamlock"
procmail: No match on "^X-SpamBayes-Classification: spam"
procmail: No match on "^Subject: Floss2004"
procmail: No match on "^Subject:.*HzG"
procmail: No match on "From: newsalerts-noreply at google.com"
procmail: No match on "^X-Mailman-Version:.*"
procmail: Assigning
"LASTFOLDER=/home/mitarb/malsburg/Maildir/new/1090327388.19899_1.janus"
procmail: Notified comsat:
"malsburg at 0:/home/mitarb/malsburg/Maildir/new/1090327388.19899_1.janus"
>From malsburg at cl.uni-heidelberg.de Tue Jul 20 14:43:08 2004
Subject: Test5
Folder: /home/mitarb/malsburg/Maildir/new/1090327388.19899_1.janus
639
I configured spambayes and procmail just like it is described in
README.txt. The error occured in spambayes-1.0a7 and spambayes-1.0rc2.
Titus
More information about the spambayes-dev
mailing list