[spambayes-bugs] [ spambayes-Bugs-1235971 ] db_runrecovery error on initial training

SourceForge.net noreply at sourceforge.net
Tue Jul 12 05:53:43 CEST 2005


Bugs item #1235971, was opened at 2005-07-11 23:05
Message generated for change (Comment added) made by anadelonbrin
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=1235971&group_id=61702

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: imapfilter
Group: 1.1.x
>Status: Closed
>Resolution: Duplicate
Priority: 5
Submitted By: Bip (bippo312)
Assigned to: Tony Meyer (anadelonbrin)
Summary: db_runrecovery error on initial training

Initial Comment:
WinXP sp2, python 2.4.1, spambayes 1.1a1

I got this error while training from scratch. (I erased
my spambayes .ini and .db files and trained on some
emails that had some headers from previous versions of
spambayes)  I was training on roughly 800 spam and 500
ham and it took a few minutes before giving this error.


C:\Program Files\Python\Scripts>sb_imapfilter.py -t -P
SpamBayes IMAP Filter Version 1.1a1 (April 2005).

Enter password for <me>:
Traceback (most recent call last):
  File "C:\Program
Files\Python\Scripts\sb_imapfilter.py", line 1203, in ?
    run()
  File "C:\Program
Files\Python\Scripts\sb_imapfilter.py", line 1181, in run
    imap_filter.Train()
  File "C:\Program
Files\Python\Scripts\sb_imapfilter.py", line 945, in Train
    num_trained = folder.Train(self.classifier, is_spam)
  File "C:\Program
Files\Python\Scripts\sb_imapfilter.py", line 861, in Train
    msg.RememberTrained(isSpam)
  File "c:\program
files\python\Lib\site-packages\spambayes\message.py",
line 40
9, in RememberTrained
    self.modified()
  File "c:\program
files\python\Lib\site-packages\spambayes\message.py",
line 37
7, in modified
    self.message_info_db.store_msg(self)
  File "c:\program
files\python\Lib\site-packages\spambayes\message.py",
line 18
1, in store_msg
    self.db[msg.getDBKey()] = attributes
  File "C:\Program Files\Python\lib\shelve.py", line
130, in __setitem__
    self.dict[key] = f.getvalue()
  File "C:\Program Files\Python\lib\bsddb\__init__.py",
line 218, in __setitem__

    self.db[key] = value
bsddb._db.DBRunRecoveryError: (-30978, 'DB_RUNRECOVERY:
Fatal error, run databas
e recovery -- PANIC: Invalid argument')

C:\Program Files\Python\Scripts>

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

>Comment By: Tony Meyer (anadelonbrin)
Date: 2005-07-12 15:53

Message:
Logged In: YES 
user_id=552329

1.1a1 contains a bug that causes problems with sb_server and
sb_imapfilter and the messageinfo database and should not be
used.

This is fixed in CVS (so you can use the source from there
if you like), and so will be fixed in 1.1a2, when we have
time to release that.  Otherwise, the solution is to use
1.0.4 until 1.1a2 is released.

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

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


More information about the Spambayes-bugs mailing list