[Spambayes] Error Running sb_server.py version 1.1a3
skip at pobox.com
skip at pobox.com
Fri Oct 13 13:28:03 CEST 2006
Amedee> I followed your instructions for my own error (see mailing list
Amedee> archives a couple of weeks ago, still unsolved) and got this:
Amedee> amedee at elbereth { ~ }$ which sb_server.py
Amedee> /usr/bin/sb_server.py
Amedee> amedee at elbereth { ~ }$ python
Amedee> Python 2.3.5 (#2, Sep 4 2005, 22:01:42)
Amedee> [GCC 3.3.5 (Debian 1:3.3.5-13)] on linux2
Amedee> Type "help", "copyright", "credits" or "license" for more information.
>>>> import spambayes
>>>> import spambayes.message
Amedee> Traceback (most recent call last):
Amedee> File "<stdin>", line 1, in ?
Amedee> File "/usr/lib/python2.3/site-packages/spambayes/message.py", line 220,
Amedee> in ?
Amedee> msginfoDB = MessageInfoPickle(message_info_db_name)
Amedee> File "/usr/lib/python2.3/site-packages/spambayes/message.py", line 148,
Amedee> in __init__
Amedee> self.load()
Amedee> File "/usr/lib/python2.3/site-packages/spambayes/message.py", line 160,
Amedee> in load
Amedee> self.db = pickle.load(fp)
Amedee> File "/usr/lib/python2.3/pickle.py", line 1390, in load
Amedee> return Unpickler(file).load()
Amedee> File "/usr/lib/python2.3/pickle.py", line 872, in load
Amedee> dispatch[key](self)
Amedee> KeyError: '\x00'
Amedee> What should I do next?
I'm not sure. What version of SpamBayes are you running? The imports work
for me:
% which sb_server.py
/Users/skip/local/bin/sb_server.py
% python
Python 2.6a0 (trunk:52218, Oct 7 2006, 07:08:10)
[GCC 4.0.0 (Apple Computer, Inc. build 5026)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import spambayes
>>> import spambayes.message
>>>
Since it appears you're trying to load an sb_server message info database, I
wonder if removing it (or renaming it) will get you past this particular
bump in the road.
Alternatively, it may be that you've hit a bug that's been fixed in a more
recent version. If removing the file doesn't work, you could upgrade.
Skip
More information about the SpamBayes
mailing list