Python and Lotus Notes

Marco Aschwanden PPNTWIMBXFFC at spammotel.com
Fri Nov 4 06:01:30 EST 2005


The second line of your code is already a show stopper in my case:

 from win32com.client import Dispatch
session = Dispatch('Lotus.NotesSession')
session.Initialize('my_secret_passwort')

When started, ends:

File  
"C:\Python24\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py",  
line 310, in RunScript
     exec codeObject in __main__.__dict__
   File "C:\temp\notes_init.py", line 3, in ?
     session.Initialize('my_secret_passwort')
   File "c:\Python24\lib\site-packages\win32com\client\dynamic.py", line  
489, in __getattr__
     raise AttributeError, "%s.%s" % (self._username_, attr)
AttributeError: Lotus.NotesSession.Initialize

It worked before though with Version 5.x of Notes. In Notes Version 6.X  
they introduced the session.Initialize() - that was the point, when I  
couldn't create an instance anymore. I found no hint on the net... Do you  
have any idea what is going wrong here?

Regards,
Marco




More information about the Python-list mailing list