Bugs item #1181131, was opened at 2005-04-12 11:36
Message generated for change (Comment added) made by anadelonbrin
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=1181131&group_id=61702
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: hammie
Group: 1.0.4
>Status: Closed
>Resolution: Duplicate
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: Tony Meyer (anadelonbrin)
Date: 2005-12-05 22:07
Message:
Logged In: YES
user_id=552329
As leobru notes (thanks!), this is a dupe of 1106457, which
has been fixed.
----------------------------------------------------------------------
Comment By: Leonid (leobru)
Date: 2005-08-05 17:07
Message:
Logged In: YES
user_id=790676
See 1106457 for the solution.
----------------------------------------------------------------------
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
_______________________________________________
Spambayes-bugs mailing list
[email protected]
http://mail.python.org/mailman/listinfo/spambayes-bugs