[Spambayes] Outlook 2000 and spambayes dying

Chad Mawson CMAWSON at woodsaitken.com
Fri May 2 11:18:53 EDT 2003


First off, Spambayes is an excellent piece of work, and has begun to show people here in the law firm I work for that open source = good, on top of the fact that they can get rid of spam.

I hate for my first message to the list to be a problem...  But...

I'm using Outlook 2000 on Windows XP, and spambayes is a CVS copy I downloaded (approximately 2 weeks ago).  I have installed Python 2.2.  Spambayes has been working fine, but on two occasions appeared to just stop loading all together.  The first time I hadn't done enough research to know where to look, but this time I have the trace.  Both times this occurred was after rebooting my system from an unstable state, i.e. I basically killed my machine and cycled power.

After this happened I basically just deleted the C:\Documents and Settings\cmawson\Application Data\SpamBayes\*.* reran the addin.py and manager.py retrained and things started working again.


C:\Python22\Lib\site-packages\win32\lib>win32traceutil.py
Collecting Python Trace Output...
SpamAddin - Connecting to Outlook
Failed to load bayes database
Traceback (most recent call last):
  File "U:\spambayes\Outlook2000\manager.py", line 310, in LoadBayes
    bayes = self.db_manager.open_bayes()
  File "U:\spambayes\Outlook2000\manager.py", line 103, in open_bayes
    return bayes_storage.PickledClassifier(self.bayes_filename)
  File "C:\Python22\Lib\site-packages\spambayes\storage.py", line 80, in __init_
_
    self.load()
  File "C:\Python22\Lib\site-packages\spambayes\storage.py", line 98, in load
    tempbayes = pickle.load(fp)
EOFError
Loaded message database from 'C:\Documents and Settings\cmawson\Application Data
\SpamBayes\default_message_database.pck'
Either bayes database or message database is missing - creating new
Traceback (most recent call last):
  File "C:\Python22\lib\site-packages\win32com\universal.py", line 170, in dispa
tch
    retVal = ob._InvokeEx_(meth.dispid, 0, meth.invkind, args, None, None)
  File "C:\Python22\lib\site-packages\win32com\server\policy.py", line 322, in _
InvokeEx_
    return self._invokeex_(dispid, lcid, wFlags, args, kwargs, serviceProvider)
  File "C:\Python22\lib\site-packages\win32com\server\policy.py", line 601, in _
invokeex_
    return DesignatedWrapPolicy._invokeex_( self, dispid, lcid, wFlags, args, kw
Args, serviceProvider)
  File "C:\Python22\lib\site-packages\win32com\server\policy.py", line 541, in _
invokeex_
    return apply(func, args)
  File "U:\spambayes\Outlook2000\addin.py", line 662, in OnConnection
    self.manager = manager.GetManager(application)
  File "U:\spambayes\Outlook2000\manager.py", line 475, in GetManager
    _mgr = BayesManager(outlook=outlook, verbose=verbose)
  File "U:\spambayes\Outlook2000\manager.py", line 165, in __init__
    self.LoadBayes()
  File "U:\spambayes\Outlook2000\manager.py", line 329, in LoadBayes
    self.InitNewBayes()
  File "U:\spambayes\Outlook2000\manager.py", line 378, in InitNewBayes
    self.bayes = self.db_manager.new_bayes()
  File "U:\spambayes\Outlook2000\manager.py", line 91, in new_bayes
    os.unlink(self.bayes_filename)
exceptions.OSError: [Errno 13] Permission denied: 'C:\\Documents and Settings\\c
mawson\\Application Data\\SpamBayes\\default_bayes_database.pck'
SpamAddin - Connecting to Outlook
Failed to load bayes database
Traceback (most recent call last):
  File "U:\spambayes\Outlook2000\manager.py", line 310, in LoadBayes
    bayes = self.db_manager.open_bayes()
  File "U:\spambayes\Outlook2000\manager.py", line 103, in open_bayes
    return bayes_storage.PickledClassifier(self.bayes_filename)
  File "C:\Python22\Lib\site-packages\spambayes\storage.py", line 80, in __init_
_
    self.load()
  File "C:\Python22\Lib\site-packages\spambayes\storage.py", line 98, in load
    tempbayes = pickle.load(fp)
EOFError
Loaded message database from 'C:\Documents and Settings\cmawson\Application Data
\SpamBayes\default_message_database.pck'
Either bayes database or message database is missing - creating new
Traceback (most recent call last):
  File "C:\Python22\lib\site-packages\win32com\universal.py", line 170, in dispa
tch
    retVal = ob._InvokeEx_(meth.dispid, 0, meth.invkind, args, None, None)
  File "C:\Python22\lib\site-packages\win32com\server\policy.py", line 322, in _
InvokeEx_
    return self._invokeex_(dispid, lcid, wFlags, args, kwargs, serviceProvider)
  File "C:\Python22\lib\site-packages\win32com\server\policy.py", line 601, in _
invokeex_
    return DesignatedWrapPolicy._invokeex_( self, dispid, lcid, wFlags, args, kw
Args, serviceProvider)
  File "C:\Python22\lib\site-packages\win32com\server\policy.py", line 541, in _
invokeex_
    return apply(func, args)
  File "U:\spambayes\Outlook2000\addin.py", line 662, in OnConnection
    self.manager = manager.GetManager(application)
  File "U:\spambayes\Outlook2000\manager.py", line 475, in GetManager
    _mgr = BayesManager(outlook=outlook, verbose=verbose)
  File "U:\spambayes\Outlook2000\manager.py", line 165, in __init__
    self.LoadBayes()
  File "U:\spambayes\Outlook2000\manager.py", line 329, in LoadBayes
    self.InitNewBayes()
  File "U:\spambayes\Outlook2000\manager.py", line 378, in InitNewBayes
    self.bayes = self.db_manager.new_bayes()
  File "U:\spambayes\Outlook2000\manager.py", line 91, in new_bayes
    os.unlink(self.bayes_filename)
exceptions.OSError: [Errno 13] Permission denied: 'C:\\Documents and Settings\\c
mawson\\Application Data\\SpamBayes\\default_bayes_database.pck'


More information about the Spambayes mailing list