[Spambayes] Database Format

Brent L Johnson brent at bjohnson.net
Tue Feb 10 13:38:27 EST 2004


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')

- Brent

> -----Original Message-----
> From: Kenny Pitt [mailto:kennypitt at hotmail.com] 
> Sent: Tuesday, February 10, 2004 1:24 PM
> To: 'Brent L Johnson'; spambayes at python.org
> Subject: RE: [Spambayes] Database Format
> 
> 
> Brent L Johnson wrote:
> > I installed SB on my Linux box from the source distribution 
> (1.0a9).  
> > I then copied my database from my WinXP machine (I'm using 
> the Outlook 
> > plugin) and ran:
> > 
> > sb_dbexpimp.py -e -p default_bayes_database.db  -f bayes.out
> > 
> > Not sure if these are the correct parameters, but I based
> > it off the usage help for sb_dbexpimp.
> > [snip traceback]
> > 
> > Is the db version for the Outlook plugin a picked db or DBM?
> 
> "default_bayes_database.db" is a BerkeleyDB file.  You'll 
> want the -d option instead of the -p option.
> 
> -- 
> Kenny Pitt
> 
> 
> 
> 




More information about the Spambayes mailing list