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

SourceForge.net noreply at sourceforge.net
Thu Apr 21 09:17:25 CEST 2005


Support Requests item #1178600, was opened at 2005-04-08 02:49
Message generated for change (Comment added) made by anadelonbrin
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: Pending
Priority: 5
Submitted By: Mike Hacker (mphacker)
Assigned to: Tony Meyer (anadelonbrin)
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: Tony Meyer (anadelonbrin)
Date: 2005-04-21 19:17

Message:
Logged In: YES 
user_id=552329

I've checked in a fix so that moving the database will work
(as long as it isn't renamed).

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

Comment By: Tony Meyer (anadelonbrin)
Date: 2005-04-12 14:26

Message:
Logged In: YES 
user_id=552329

Using the training tab works for me.  Did you definitely
remove all the files from the conversion attempt?  Did you
have the "rebuild entire database" box ticked or unticked? 
Do you still have the log file from when you did that?  (If
so, please attach it to the tracker).

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

Comment By: Tony Meyer (anadelonbrin)
Date: 2005-04-12 14:17

Message:
Logged In: YES 
user_id=552329

You need to specify the full path to the database or it will
not work correctly.  Moving the files will also not work
correctly (it probably should; I'll work on fixing this). 
I've updated the instructions accordingly.

I'll look into the training now.

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

Comment By: Mike Hacker (mphacker)
Date: 2005-04-09 01:51

Message:
Logged In: YES 
user_id=197513

It looks like the batch traininng and the conversion did not
work.   I just had a few messages come in and they were all
scored at 50% and put into the possible spam folder.    When
I selected to "recover from spam" it moved the message back
to my inbox and scored it at 0%.   I checked the spambayes
manager and it now shows I have 1 good and 0 bad messages
trained.

So it looks like the batch training and the conversion isn't
working in this instance.

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

Comment By: Mike Hacker (mphacker)
Date: 2005-04-09 01: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-08 11: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