[Spambayes] Error Running sb_server.py version 1.1a3

Amedee Van Gasse amedee at amedee.be
Fri Oct 13 15:52:28 CEST 2006


On Fri, October 13, 2006 13:28, skip at pobox.com said:
>
>     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?

I'm using the version that came with Debian:

amedee at elbereth { ~ }$ sudo aptitude show spambayes
Password:
Package: spambayes
State: installed
Automatically installed: no
Version: 1.0.3-1
Priority: optional
Section: mail
Maintainer: Alexandre Fayolle <afayolle at debian.org>
Uncompressed Size: 1315k
Depends: python (>= 2.3), python (< 2.4)
Conflicts: python2.3-spambayes
Replaces: python2.3-spambayes
Description: Python-based spam filter using statistical analysis
 SpamBayes uses a different set of algorithm to most statistical spam
filters,
 which enables to dramatically lower the number of legitimate mail classified
 as spam, through the introduction of an 'unsure' category.

 SpamBayes can be used as a POP3 or an IMAP proxy, as well as a simple mail
 filter for use with procmail.

 Homepage: http://spambayes.sourceforge.net

> 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.

How do I do that?
I mean, I know how to rm or rename a file, but which file and where?

> 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.

Unlikely, because it used to work. But I'll try an upgrade, when I find
out which file to delete.

-- 
Amedee



More information about the SpamBayes mailing list