[spambayes-bugs] [ spambayes-Bugs-1181131 ] sb_filter fails with AttributeError on FreeBSD

SourceForge.net noreply at sourceforge.net
Fri May 13 06:26:10 CEST 2005


Bugs item #1181131, was opened at 2005-04-12 11:36
Message generated for change (Settings changed) made by anadelonbrin
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=1181131&group_id=61702

Category: hammie
Group: 1.0.4
Status: Open
Resolution: None
Priority: 5
Submitted By: Dmitry Karasik (int32)
>Assigned to: Nobody/Anonymous (nobody)
Summary: sb_filter fails with AttributeError on FreeBSD

Initial Comment:
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:

$ 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

$ uname -a
4.8-RELEASE FreeBSD


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

Comment By: Dmitry Karasik (int32)
Date: 2005-04-14 18:54

Message:
Logged In: YES 
user_id=72076

sb_filter.py does print the help, and the database file does
exist - the condition appeared after the upgrading from the
older spambayes version. cannot confirm whether training or
new database creation works, because I rolled it back, but
if you suspect an impoper setup, the condition can be
reproduced by installing spambayes on freebsd from ports
collection.

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

Comment By: Tony Meyer (anadelonbrin)
Date: 2005-04-12 12:12

Message:
Logged In: YES 
user_id=552329

Odd.  Does sb_filter.py work apart from classifying?  (e.g.
to train, to create a new database, to print the help).  Do
the other scripts work as expected?  Does a database file exist?

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

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


More information about the Spambayes-bugs mailing list