[Spambayes] Database Format

Brent L Johnson brent at bjohnson.net
Tue Feb 10 15:16:36 EST 2004


OK - I downloaded BerkeleyDB 4.2 and installed
it under /usr/local/ (under Linux).  I then
downloaded pybsddb and followed the instructions
for building it.  I didnt get any errors until I
ran the test .. and it hung on:

test02_threaded (bsddb3.tests.test_lock.LockingTestCase) ...

(and hung bad.. I had to do a control-\ to break out)

I ran the "python setup.py install" anyway, and it seems
to install (I suppose.. I dont know much about python).
And I still get the same errors.

Hrm...

- Brent

> -----Original Message-----
> From: Kenny Pitt [mailto:kennypitt at hotmail.com] 
> Sent: Tuesday, February 10, 2004 2:09 PM
> To: 'Brent L Johnson'; spambayes at python.org
> Subject: RE: [Spambayes] Database Format
> 
> 
> 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