[Spambayes] [ spambayes-Bugs-706170 ] Execute test suite fails in Outlook

SourceForge.net noreply at sourceforge.net
Wed May 14 04:52:12 EDT 2003


Bugs item #706170, was opened at 2003-03-19 21:03
Message generated for change (Comment added) made by mhammond
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=706170&group_id=61702

Category: Outlook
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Fredrik Rodland (fmmr)
Assigned to: Mark Hammond (mhammond)
Summary: Execute test suite fails in Outlook

Initial Comment:
The test suite fails in outlook.

I've retrained messages from a spam and a ham folder.

I think this may be related to moving the database-files 
from the spambayes to the default docs-folders in 
windows a couple of weeks ago.

the following traceback is shown in PythonWin:

Executing automated tests...
Traceback (most recent call last):
  
File "c:\Programfiler\_UTIL\spambayes_cvs\spambayes\
Outlook2000\addin.py", line 308, in Tester
    tester.test(manager)
  
File "c:\Programfiler\_UTIL\spambayes_cvs\spambayes\
Outlook2000\tester.py", line 306, in test
    TestSpamFilter(driver)
  
File "c:\Programfiler\_UTIL\spambayes_cvs\spambayes\
Outlook2000\tester.py", line 173, in TestSpamFilter
    msg, words = driver.CreateTestMessageInFolder
(SPAM, driver.folder_watch)
  
File "c:\Programfiler\_UTIL\spambayes_cvs\spambayes\
Outlook2000\tester.py", line 132, in 
CreateTestMessageInFolder
    msg, words = self.CreateTestMessage(spam_status)
  
File "c:\Programfiler\_UTIL\spambayes_cvs\spambayes\
Outlook2000\tester.py", line 145, in CreateTestMessage
    words.update(FindTopWords(self.manager.bayes, 50, 
True))
  
File "c:\Programfiler\_UTIL\spambayes_cvs\spambayes\
Outlook2000\tester.py", line 64, in FindTopWords
    for word, info in extractor(bayes):
  
File "c:\Programfiler\_UTIL\spambayes_cvs\spambayes\
Outlook2000\tester.py", line 46, in DBExtractor
    key = bayes.dbm.next()[0]
  File "C:\PROGRA~1\_DEV\Python22\Lib\site-
packages\bsddb3\__init__.py", line 122, in next
    rv = self.dbc.next()
DBNotFoundError: (-30991, 'DB_NOTFOUND: No 
matching key/data pair found')
Tests FAILED.  Sorry about that.  If I were you, I would 
do a full re-train ASAP
Please delete any test messages from your Spam, 
Unsure or Inbox folders first.

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

>Comment By: Mark Hammond (mhammond)
Date: 2003-05-14 20:52

Message:
Logged In: YES 
user_id=14198

I'm pretty sure this was fixed in tester.py:
revision 1.7
date: 2003/05/03 13:15:27;  author: mhammond;  state: Exp; 
lines: +9 -1
Allow test suite to work with bsddb3 or bsddb

Please re-open otherwise.

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

Comment By: Mark Hammond (mhammond)
Date: 2003-03-20 11:31

Message:
Logged In: YES 
user_id=14198

This seems a bsddb3 problem.  The code in question:

        try:
            key = bayes.dbm.next()[0]
        except bsddb.error:

already attempts to catch this error.  Further, the docs for
DBNotFoundError state that it derives from bsddb.error,
meaning my except statement should work.

I will try and get to using my Python 2.2 version for the
plugin to fix this.

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

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



More information about the Spambayes mailing list