On Wed, Mar 08, 2017 at 07:51:03PM -0500, Fred Smith wrote:
> Hi
> 
> All of a sudden this past week I'm getting this whenever a message is
> sent to sb_filter to be retrained:
> 
> File "/usr/bin/sb_filter.py", line 5, in <module>
>     pkg_resources.run_script('spambayes==1.1a6', 'sb_filter.py')
>   File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 540, in 
> run_script
>     self.require(requires)[0].run_script(script_name, ns)
>   File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1455, in 
> run_script
>     execfile(script_filename, namespace, namespace)
>   File 
> "/usr/lib/python2.7/site-packages/spambayes-1.1a6-py2.7.egg/EGG-INFO/scripts/sb_filter.py",
>  line 277, in <module>
>     main()
>   File 
> "/usr/lib/python2.7/site-packages/spambayes-1.1a6-py2.7.egg/EGG-INFO/scripts/sb_filter.py",
>  line 268, in main
>     action(msg)
>   File 
> "/usr/lib/python2.7/site-packages/spambayes-1.1a6-py2.7.egg/EGG-INFO/scripts/sb_filter.py",
>  line 186, in filter
>     return self.h.filter(msg)
>   File 
> "/usr/lib/python2.7/site-packages/spambayes-1.1a6-py2.7.egg/spambayes/hammie.py",
>  line 149, in filter
>     debug, train)
>   File 
> "/usr/lib/python2.7/site-packages/spambayes-1.1a6-py2.7.egg/spambayes/hammie.py",
>  line 104, in score_and_filter
>     prob, clues = self._scoremsg(msg, True)
>   File 
> "/usr/lib/python2.7/site-packages/spambayes-1.1a6-py2.7.egg/spambayes/hammie.py",
>  line 33, in _scoremsg
>     return self.bayes.spamprob(tokenize(msg), evidence)
>   File 
> "/usr/lib/python2.7/site-packages/spambayes-1.1a6-py2.7.egg/spambayes/classifier.py",
>  line 169, in chi2_spamprob
>     clues = self._getclues(wordstream)
>   File 
> "/usr/lib/python2.7/site-packages/spambayes-1.1a6-py2.7.egg/spambayes/classifier.py",
>  line 472, in _getclues
>     tup = self._worddistanceget(word)
>   File 
> "/usr/lib/python2.7/site-packages/spambayes-1.1a6-py2.7.egg/spambayes/classifier.py",
>  line 487, in _worddistanceget
>     prob = self.probability(record)
>   File 
> "/usr/lib/python2.7/site-packages/spambayes-1.1a6-py2.7.egg/spambayes/classifier.py",
>  line 287, in probability
>     assert hamcount <= nham, "Token seen in more ham than ham trained."
> AssertionError: Token seen in more ham than ham trained.
> 
One small addition: the nightly training pass doesn't produce any
such errors.

> 
> It is possible I got a python update, but I wasn't paying attention, so
> I'm not at all sure.
> 
> I'm NOT a python guru, so I'd appreciate any guidance any of you can
> provide.
> 
> thanks in advance!
> 
> Fred
> -- 
> ---- Fred Smith -- fre...@fcshome.stoneham.ma.us -----------------------------
>                     The Lord detests the way of the wicked 
>                   but he loves those who pursue righteousness.
> ----------------------------- Proverbs 15:9 (niv) 
> -----------------------------

-- 
-------------------------------------------------------------------------------
    Under no circumstances will I ever purchase anything offered to me as
    the result of an unsolicited e-mail message. Nor will I forward chain
    letters, petitions, mass mailings, or virus warnings to large numbers
    of others. This is my contribution to the survival of the online
    community.
 --Roger Ebert, December, 1996
----------------------------- The Boulder Pledge -----------------------------
_______________________________________________
SpamBayes@python.org
https://mail.python.org/mailman/listinfo/spambayes
Info/Unsubscribe: http://mail.python.org/mailman/listinfo/spambayes
Check the FAQ before asking: http://spambayes.sf.net/faq.html

Reply via email to