[Spambayes] Database Format

Kenny Pitt kennypitt at hotmail.com
Tue Feb 10 14:09:12 EST 2004


Brent L Johnson wrote:
> OK I tried it with the -d option and I got the following error:
> 
> $ sb_dbexpimp.py -e -d default_bayes_database.db -f bayes.export
> Traceback (most recent call last):
>   File "/usr/bin/sb_dbexpimp.py", line 266, in ?
>     runExport(dbFN, useDBM, flatFN)
>   File "/usr/bin/sb_dbexpimp.py", line 119, in runExport
>     bayes = spambayes.storage.open_storage(dbFN, useDBM)
>   File "/usr/lib/python2.2/site-packages/spambayes/storage.py", line
> 669, in open_storage
>     return klass(data_source_name)
>   File "/usr/lib/python2.2/site-packages/spambayes/storage.py", line
> 164, in __init__
>     self.load()
>   File "/usr/lib/python2.2/site-packages/spambayes/storage.py", line
> 189, in load
>     self.dbm = dbmstorage.open(self.db_name, self.mode)
>   File "/usr/lib/python2.2/site-packages/spambayes/dbmstorage.py",
> line 65, in open
>     return f(db_name, mode)
>   File "/usr/lib/python2.2/site-packages/spambayes/dbmstorage.py",
> line 20, in open_dbhash
>     return bsddb.hashopen(*args)
> bsddb.error: (22, 'Invalid argument')

I see that you're using Python 2.2.  Have you installed the pybsddb (aka
bsddb3) package?  IIRC, this package is required if you are using
BerkeleyDB with Python 2.2.

http://pybsddb.sourceforge.net/

-- 
Kenny Pitt




More information about the Spambayes mailing list