[spambayes-bugs] [ spambayes-Support Requests-1178600 ] 1.1 alpha storage conversion issue

SourceForge.net noreply at sourceforge.net
Fri Apr 8 15:47:07 CEST 2005


Support Requests item #1178600, was opened at 2005-04-07 10:49
Message generated for change (Settings changed) made by mphacker
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498104&aid=1178600&group_id=61702

Category: Install Problem (example)
Group: None
>Status: Open
Priority: 5
Submitted By: Mike Hacker (mphacker)
Assigned to: Nobody/Anonymous (nobody)
Summary: 1.1 alpha storage conversion issue

Initial Comment:
I am running the Outlook version of Spambayes. I
unregistered version 1.0.x and  I have registered
version 1.1 alpha.  I would like to try the new
database format zodb.

I was able to run the command:

 sb_dbexpimp.py -e -d default_bayes_database.db -f
bayes.csv  to export the data from the existing datbase
file

When I try to run the following command I get an error.

sb_dbexpimp.py -i -f bayes.csv
-o Storage:persistent_use_database:zodb
-o
Storage:persistent_storage_file:default_bayes_database.fs

The error is:

Traceback (most recent call last):
  File
"C:\Development\spambayes-1.1a1\scripts\sb_dbexpimp.py",
line 248, in ?
    runImport(dbFN, useDBM, newDBM, flatFN)
  File
"C:\Development\spambayes-1.1a1\scripts\sb_dbexpimp.py",
line 164, in runImport

    bayes = spambayes.storage.open_storage(dbFN, useDBM)
  File
"C:\Python24\Lib\site-packages\spambayes\storage.py",
line 891, in open_storage

    return klass(data_source_name)
  File
"C:\Python24\Lib\site-packages\spambayes\storage.py",
line 676, in __init__
    self.load()
  File
"C:\Python24\Lib\site-packages\spambayes\storage.py",
line 699, in load
    import ZODB
ImportError: No module named ZODB



----------------------------------------------------------------------

Comment By: Mike Hacker (mphacker)
Date: 2005-04-08 09:46

Message:
Logged In: YES 
user_id=197513

I installed ZODB and was able to run the conversion script.
  Here are a few things I noticed:

1.  The database files are stored in my C:\Documents and
Settings\username\Application Data\SpamBayes\proxy   I do
not believe this is the correct location.   When I ran
Outlook it wanted to create the database files in
C:\Documents and Settings\username\Application Data\SpamBayes

2.  I moved the files to the C:\Documents and
Settings\username\Application Data\SpamBayes directory and
then started outlook.   Outlook ran with no errors, but the
SpamBayes manager says "Database has no training
information".   I shutdown Outlook, moved the files back
into the proxy directory and tried again.   Same message.

3.  I deleted the converted database files and decided to
allow spambayes to retrain and create the database files.  
I selected a directory of ham and a directory of spam.  Once
the training was done I checked the directories and found
the database files located at C:\Documents and
Settings\username\Application Data\SpamBayes.    The
spambayes manager still reported that "database has no
training information"

Am am going to let Outlook run for a while to see if it
still classifies the messages correctly.  It could be that
the UI isn't ready for the ZODB data.

----------------------------------------------------------------------

Comment By: Tony Meyer (anadelonbrin)
Date: 2005-04-07 19:22

Message:
Logged In: YES 
user_id=552329

Sorry - I neglected to say in the instructions that as well
as Python and the spambayes source, you'd need to have ZODB
installed (I'll fix that).  You can get ZODB from here:

http://www.zope.org/Products/ZODB3.4

(This is only needed for the conversion/running from source
- the binary should have all the ZODB files needed built in).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498104&aid=1178600&group_id=61702


More information about the Spambayes-bugs mailing list