[Spambayes] Outlook 2000 Install not working - "No module named
spambayes"
Jeff Childers
jchilders at smartbusinessware.com
Thu Jan 23 09:18:40 EST 2003
Hi all,
I've installed the SpamBayes files and run addin.py. Seems to register OK
(at least the trace comments suggest it is so). Then, when loading Outlook,
SB fails to load and the trace collector shows the following error:
>>> Outlook Spam Addin module loading
>>> SpamAddin - Connecting to Outlook
>>> Created new configuration file
'C:\Python22\Lib\site-packages\SpamBayes\default_configuration.pck'
>>> Traceback (most recent call last):
>>> File "C:\Python22\\lib\site-packages\win32com\universal.py", line 150,
in dispatch
>>> retVal = ob._InvokeEx_(meth.dispid, 0, pythoncom.DISPATCH_METHOD,
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
562, in _invokeex_
>>> return DesignatedWrapPolicy._invokeex_( self, dispid, lcid, wFlags,
args, kwArgs, serviceProvider)
>>> File "C:\Python22\\lib\site-packages\win32com\server\policy.py", line
510, in _invokeex_
>>> return apply(func, args)
>>> File "D:\Data\Apps\Python\SpamBayes\addin.py", line 594, in
OnConnection
>>> self.manager = manager.GetManager(application)
>>> File "D:\Data\Apps\Python\SpamBayes\manager.py", line 335, in
GetManager
>>> _mgr = BayesManager(outlook=outlook, verbose=verbose)
>>> File "D:\Data\Apps\Python\SpamBayes\manager.py", line 79, in __init__
>>> import_core_spambayes_stuff(self.ini_filename)
>>> File "D:\Data\Apps\Python\SpamBayes\manager.py", line 52, in
import_core_spambayes_stuff
>>> from spambayes import classifier
>>> exceptions.ImportError: No module named spambayes
I originally installed the SpamBayes folder on
[D:\Data\Apps\Python\SpamBayes]. After the load failed the first time, I
copied the SB folder to [C:\Python22\Lib\Site-Packages\SpamBayes]. I then
re-ran addin.py from the new folder on C, same result when starting Outlook.
Curiously, the error output above still refers to the old location on D. I
can find no configuration file that contains this information. Why is it
still looking at D, or more importantly, how can I reset the configuration?
Finally, what have I done wrong and how do I correct it to get SB working
under Outlook?
OS: WinXP
Outlook 2000
Win32Comall-150
Thanks for any help.
JC
More information about the Spambayes
mailing list