[spambayes-bugs] [ spambayes-Bugs-942262 ] TypeError: string
payload expected: <type 'list'>
SourceForge.net
noreply at sourceforge.net
Mon Apr 26 08:44:13 EDT 2004
Bugs item #942262, was opened at 2004-04-26 12:09
Message generated for change (Comment added) made by joiner
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=942262&group_id=61702
Category: hammie
Group: Binary 1.0b1
Status: Open
Resolution: None
Priority: 5
Submitted By: Steven Knight (stevenknight)
Assigned to: Nobody/Anonymous (nobody)
Summary: TypeError: string payload expected: <type 'list'>
Initial Comment:
Both messages in the attached file cause both 1.0a7 and
1.0b1 to die with the following output:
$ sb_mboxtrain.py -d ~/.hammie.db -s ~/Mail/unsure
Training spam (/home/knight/Mail/unsure):
Reading as Unix mbox
Traceback (most recent call last):
File "/usr/local/bin/sb_mboxtrain.py", line 351, in ?
main()
File "/usr/local/bin/sb_mboxtrain.py", line 342, in main
train(h, s, True, force, trainnew, removetrained)
File "/usr/local/bin/sb_mboxtrain.py", line 266, in train
mbox_train(h, path, is_spam, force)
File "/usr/local/bin/sb_mboxtrain.py", line 193, in
mbox_train
outf.write(msg.as_string(True))
File "/usr/lib/python2.2/email/Message.py", line 107,
in as_string
g.flatten(self, unixfrom=unixfrom)
File "/usr/lib/python2.2/email/Generator.py", line
100, in flatten
self._write(msg)
File "/usr/lib/python2.2/email/Generator.py", line
128, in _write
self._dispatch(msg)
File "/usr/lib/python2.2/email/Generator.py", line
154, in _dispatch
meth(msg)
File "/usr/lib/python2.2/email/Generator.py", line
212, in _handle_text
raise TypeError, 'string payload expected: %s' %
type(payload)
TypeError: string payload expected: <type 'list'>
This is on a pretty vanilla Red Hat 9 system running
Python 2.2. If you need any more info, let me know.
----------------------------------------------------------------------
Comment By: Leo Heska (joiner)
Date: 2004-04-26 12:44
Message:
Logged In: YES
user_id=1029402
I got what appears to be the same error with a different
presentation. The below came from SpamBayes POP3 Proxy
Version 1.0b1 (April 2004), running on Windows 2000
Professional:
X-Nonspam: None
X-Spambayes-Exception: Traceback (most recent call last):
. File "sb_server.pyc", line 474, in onRetr
. File "spambayes\message.pyc", line 262, in asTokens
. File "spambayes\message.pyc", line 277, in as_string
. File "email\Message.pyc", line 130, in as_string
. File "email\Generator.pyc", line 102, in flatten
. File "email\Generator.pyc", line 130, in _write
. File "email\Generator.pyc", line 156, in _dispatch
. File "email\Generator.pyc", line 199, in _handle_text
.TypeError: string payload expected: <type 'list'>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=942262&group_id=61702
More information about the Spambayes-bugs
mailing list