[spambayes-bugs] [ spambayes-Bugs-738501 ] AttributeError second time around with pop3proxy

SourceForge.net noreply at sourceforge.net
Sun Jul 27 20:29:25 EDT 2003


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

Category: pop3proxy
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Peter Bengtsson (peterbe)
Assigned to: Nobody/Anonymous (nobody)
Summary: AttributeError second time around with pop3proxy

Initial Comment:
Yesterday (14/05) I downloaded the latest CVS version
and starting it; worked fine. Then I turned that off
when I went to bed and tried to start it again today.
This time I get the following error::


C:\Python22\spambayes>C:\python22\python.exe pop3proxy.py
Loading database...
Traceback (most recent call last):
  File "pop3proxy.py", line 738, in ?
    run()
  File "pop3proxy.py", line 713, in run
    state.createWorkers()
  File "pop3proxy.py", line 559, in createWorkers
    self.bayes = storage.DBDictClassifier(filename)
  File "spambayes\storage.py", line 139, in __init__
    self.load()
  File "spambayes\storage.py", line 151, in load
    t = self.db[self.statekey]
  File "C:\Python22\lib\shelve.py", line 71, in __getitem__
    return Unpickler(f).load()
EOFError
Exception exceptions.AttributeError: "'NoneType' object
has no attribute 'error'
" in <bound method _Database.__del__ of
<dumbdbm._Database instance at 0x00A208A
0>> ignored



Any ideas what this might be? Is it a bug?
Solutions?


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

>Comment By: Tony Meyer (anadelonbrin)
Date: 2003-07-28 14:29

Message:
Logged In: YES 
user_id=552329

There are known issues with using dumbdbm.  Please try using 
a pickle or installing pybsddb (bsddb3) and using that 
instead.  Note that you will need to do a full retrain.

Please re-open if this does reoccur.

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

Comment By: Remi Ricard (papadoc)
Date: 2003-05-28 00:42

Message:
Logged In: YES 
user_id=145206

Hi,

I'm getting the same error message.

This is what happened.
I was training pop3proxy with the web interface. Classifying
a unsure to be spam.

I got this error message in the web interface
raceback (most recent call last):

  File
"C:\Devtools\SPAMBA~1\SPAMBA~1.21\spambayes\Dibbler.py",
line 398, in found_terminator
    getattr(plugin, name)(**params)

  File
"C:\Devtools\SPAMBA~1\SPAMBA~1.21\spambayes\ProxyUI.py",
line 359, in onReview
    message =
spambayes.mboxutils.get_message(cachedMessage.getSubstance())

  File
"C:\Devtools\SPAMBA~1\SPAMBA~1.21\spambayes\Corpus.py", line
349, in getSubstance
    return self.hdrtxt + self.payload

  File
"C:\Devtools\SPAMBA~1\SPAMBA~1.21\spambayes\Corpus.py", line
296, in __getattr__
    raise AttributeError, attributeName

AttributeError: hdrtxt


Then I stop pop3proxy.py because I wanted to enable the logging
with
[globals]
verbose = True

Then I restarted the pop3proxy and I got the same error
message as in bug 738501

Remi
(papaDoc at videotron.ca)

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

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



More information about the Spambayes-bugs mailing list