[Spambayes] 1.0a4 broken; which_database.py lost

Meyer, Tony T.A.Meyer at massey.ac.nz
Sat Aug 16 20:47:06 EDT 2003


> > > My bet (and fear) is that I'm using dumbdb:
> > >             .hammiedb.bak: ASCII text
> > >             .hammiedb.dat: data
> > >             .hammiedb.dir: ASCII text
> >
> > Looks like it.
> 
> How do I check?

The existence of those files really gives it away.  Otherwise the
which_database script should tell you, although if that's not working...

> And if I am using DumbDB, how do I go about 
> moving to  Py-bsddb3 once I install it?  Do I have to start 
> training all over again,  or can I convert my DumbDB file(s) 
> to Py-bsddb3?

You can use the dbExpImp.py script to convert your database to a flat
text file (or pickle), install bsddb and then convert the text file to
bsddb.  However, this might not be a good idea - if the database is
corrupted, then you're just going to end up with a corrupted bsddb
database.  Training from scratch is the better option (lucky spambayes
learns so fast...)

>  Also, if I install Py-bsddb3, do I have to 
> re-compile/re-install  SpamBayes?

No.  The change will just happen.

>     thermonuclear: 2 : ~/spambayes-1.0a4/utilities --> 
> which_database.py
>     Traceback (most recent call last):
>     File "which_database.py", line 31, in ?
>         import dbhash
>     File "/usr/local/lib/python2.3/dbhash.py", line 5, in ?
>         import bsddb
>     File "/usr/local/lib/python2.3/bsddb/__init__.py", line 40, in ?
>         import _bsddb
>     ImportError: No module named _bsddb

That makes sense :)  You don't have bsddb, so why would you be able to
import it.  I'll correct this.

=Tony Meyer



More information about the Spambayes mailing list