[Spambayes] Upgrading python
Kristian Eide
kreide at online.no
Mon Oct 20 19:20:44 EDT 2003
Hi, I recently upgraded from Mandrake 9.1 to Mandrake 9.2, and it seems the
version of Python also changed (from 2.2 to 2.3 I assume). Now when I try to
start SpamBayes I get the following error message:
File "./sb_server.py", line 100, in ?
import spambayes.message
File "/usr/lib/python2.3/site-packages/spambayes/message.py", line 149, in ?
msginfoDB = MessageInfoDB(message_info_db_name)
File "/usr/lib/python2.3/site-packages/spambayes/message.py", line 114, in
__init__
self.dbm = dbmstorage.open(self.db_name, self.mode)
File "/usr/lib/python2.3/site-packages/spambayes/dbmstorage.py", line 53, in
open
return f(*args)
File "/usr/lib/python2.3/site-packages/spambayes/dbmstorage.py", line 36, in
open_best
return f(*args)
File "/usr/lib/python2.3/site-packages/spambayes/dbmstorage.py", line 18, in
open_dbhash
return bsddb.hashopen(*args)
File "/usr/lib/python2.3/bsddb/__init__.py", line 162, in hashopen
d.open(file, db.DB_HASH, flags, mode)
bsddb._db.DBInvalidArgError: (22, 'Invalid argument --
spambayes.messageinfo.db: unexpected file type or format')
It would seem the database format has changed in an incompatable way. The
question is: do I need to re-train SpamBayes (installing a fresh version
works) or is there some way to convert the old DB?
Thanks!
Kristian
More information about the Spambayes
mailing list