[Spambayes] Problems with Lotus Notes script
Jeff Neuenschwander
jeff at pathosfire.net
Sun May 2 23:32:09 EDT 2004
Ok, I changed the offending line of code in the script, and below is what
happend. I am not sure what to do abotu this one!
Any ideas?
Thanks,
Jeff
C:\SPAMBA~1\scripts>sb_notesfilter -t -c -p spambayes -l "C:\Documents and
Setti
ngs\A518374\Local Settings\Application
Data\Lotus\Notes\Data\mail1\a518374.nsf"
-f Spambayes
C:\Documents and Settings\A518374\Local Settings\Application
Data\Lotus\Notes\Da
ta\mail1\a518374.nsf.sbindex file not found, this is a first time run
No classification will be performed
Traceback (most recent call last):
File "C:\SPAMBA~1\scripts\sb_notesfilter.py", line 379, in ?
sbfname, doTrain, doClassify)
File "C:\SPAMBA~1\scripts\sb_notesfilter.py", line 304, in run
sess = win32com.client.Dispatch("Lotus.NotesSession")
File "C:\Python23\Lib\site-packages\win32com\client\__init__.py", line
95, in
Dispatch
dispatch, userName =
dynamic._GetGoodDispatchAndUserName(dispatch,userName,c
lsctx)
File "C:\Python23\Lib\site-packages\win32com\client\dynamic.py", line
91, in _
GetGoodDispatchAndUserName
return (_GetGoodDispatch(IDispatch, clsctx), userName)
File "C:\Python23\Lib\site-packages\win32com\client\dynamic.py", line
79, in _
GetGoodDispatch
IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx,
pythoncom.II
D_IDispatch)
pywintypes.com_error: (-2147221005, 'Invalid class string', None, None)
C:\SPAMBA~1\scripts>
On Saturday 01 May 2004 23:23, you wrote:
> > He loved it for ten whole days until the company switched
> > over to Lotus Notes.
> >
> :)
> :
> > When I try to use the spambayes Notes script to train the
> > filter by running:
>
> [...]
>
> > AttributeError: 'module' object has no attribute 'open_database'
> >
> > I am a marginal python coder on a good day, but I did dig
> > around a little bit, and I noticed that storage.py does
> > indeed, have no function called "open_database".
>
> This is a bug. Change the code to read "open_storage" instead. I'll check
> this fix in.
>
> > Am I missing something really obvious here?
>
> Only that sb_notesfilter is the least used SpamBayes script, and so it
> doesn't have a lot of things that the others do (like a lot of testing).
> There just don't seem to be many Notes users that need it, and our one
> developer that uses Notes doesn't have a lot of time for working on it (hi
> TimS!).
>
> That said, you should be able to get it to work, and the actual
> classification will be identical to the Outlook plug-in - just not the UI
> part...
>
> =Tony Meyer
More information about the Spambayes
mailing list