<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Tony Meyer wrote:
<blockquote
 cite="mid1ED4ECF91CDED24C8D012BCF2B034F13064C0219@its-xchg4.massey.ac.nz"
 type="cite">
  <blockquote type="cite">
    <pre wrap="">Well, I have also got the error

D:\Python23\Scripts&gt;python sb_imapfilter.py -b
Traceback (most recent call last):
  File "sb_imapfilter.py", line 121, in ?
    from spambayes.UserInterface import UserInterfaceServer
  File "D:\PYTHON23\Lib\site-packages\spambayes\UserInterface.py", line
    </pre>
  </blockquote>
  <pre wrap=""><!---->89, in ?
  </pre>
  <blockquote type="cite">
    <pre wrap="">    from spambayes import Stats
  File "D:\PYTHON23\Lib\site-packages\spambayes\Stats.py", line 34, in ?
    from spambayes.message import msginfoDB
ImportError: cannot import name msginfoDB

As I have said, I am using the latest CVS from the public server.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Opps.  This is my fault, sorry.  When I said that you'd need CVS for a
change I had just checked in, I was referring to a change that I *hadn't*
just checked in.  Now I have:

Checking in spambayes/message.py;
/cvsroot/spambayes/spambayes/spambayes/message.py,v  &lt;--  message.py
new revision: 1.50; previous revision: 1.49
Done

You'll need v1.50 of message.py, which should be available through anonymous
CVS any time now.  It's a simple change, so you could even just copy it from
the patch on the check-ins list and apply it yourself.

=Tony Meyer

  </pre>
</blockquote>
Still getting:<br>
<br>
D:\Python23\Scripts&gt;python sb_imapfilter.py -b<br>
Traceback (most recent call last):<br>
&nbsp; File "sb_imapfilter.py", line 120, in ?<br>
&nbsp;&nbsp;&nbsp; from spambayes import tokenizer, storage, message, Dibbler<br>
&nbsp; File "D:\PYTHON23\Lib\site-packages\spambayes\message.py", line 219,
in ?<br>
&nbsp;&nbsp;&nbsp; msginfoDB = MessageInfoPickle(message_info_db_name)<br>
&nbsp; File "D:\PYTHON23\Lib\site-packages\spambayes\message.py", line 147,
in __init<br>
__<br>
&nbsp;&nbsp;&nbsp; self.load()<br>
&nbsp; File "D:\PYTHON23\Lib\site-packages\spambayes\message.py", line 159,
in load<br>
&nbsp;&nbsp;&nbsp; self.db = pickle.load(fp)<br>
&nbsp; File "D:\PYTHON23\lib\pickle.py", line 1390, in load<br>
&nbsp;&nbsp;&nbsp; return Unpickler(file).load()<br>
&nbsp; File "D:\PYTHON23\lib\pickle.py", line 872, in load<br>
&nbsp;&nbsp;&nbsp; dispatch[key](self)<br>
KeyError: '\x00'<br>
<br>
<br>
I think I might have messed something up somewhere on my end, I'll try
deleating the windows\application data\spambayes folder and
reconfiguring from scratch.<br>
<br>
Thanks<br>
<br>
Alex<br>
<br>
P.S.<br>
<br>
"Comment:<br>
Handle people using a storage type that isn't pickle/dbm (like one of
the sql ones).<br>
<br>
If we trigger the TypeError problem, try to do our best to put the
message together<br>
anyway (this is better than just leaving an X-SpamBayes-Exception
header, which<br>
sb_server/sb_imapfilter currently do.&nbsp; This is what sb_filter currently
does.&nbsp; Ideally,<br>
we should move to the new FeedParser in the email package, but we need
to do<br>
that in some way that provides 2.2 users with an option.&nbsp; Maybe use it
if it is there?<br>
<br>
Bugfix candidate."<br>
<br>
Looks Good! <span class="moz-smiley-s1"><span> :-) </span></span><br>
</body>
</html>