[Python-apps-team] Bug#478269: Incompatible db version is not a spambayes bug
Jeff Epler
jepler at unpythonic.net
Tue Jul 21 13:27:22 UTC 2015
The basic error seems to be
Invalid argument -- /var/spambayes/spambayes.messageinfo.db: unsupported
hash version: 9
This is a duplicate of the (closed) bug #469770. That bug suggested:
The Debian version of Python 2.5 was originally built using Berkely DB
4.6. Due to problems with DB 4.6, this was reverted to DB 4.5 in Debian
package 2.5.1-7. However, databases created (or modified?) by DB 4.6 are
not usuable by DB 4.5; a common indicator is this exception:
bsddb.db.DBInvalidArgError: (22, 'Invalid argument --
/some/file/name: unsupported hash version: 9')
Note that you may not have explicitly used the bsddb extension, as other
modules (such as anydbm and shelve) may use bsddb.
To restore Python 2.5 access to your existing DB 4.6 file, you need
to install two packages: db4.5-util and db4.6-util. Then, to recover
the file "example.db", use the following sequence of commands, noting
carefully the distinction between 4.5 and 4.6:
$ mv example.db example.db.db46
$ db4.6-dump example.db.db46 | db4.5-load example.db
(I don't know if this advice is still applicable; it will be difficult to
follow, as neither named package is available in Debian Jessie)
In any case, I recommend closing this bug as a duplicate of #469770
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469770
Jeff
More information about the Python-apps-team
mailing list