Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Python and Lotus Notes

Reply
Thread Tools

Python and Lotus Notes

 
 
bisj
Guest
Posts: n/a
 
      11-13-2005
I would like to interact with Lotus Notes. I wrote following:
>>> from win32com.client.dynamic import Dispatch
>>> ln=Dispatch('Lotus.Notessession')


then, following exception come out:
Traceback (most recent call last):
File "<interactive input>", line 1, in ?
File "C:\Python24\Lib\site-packages\win32com\client\dynamic.py", line
98, in Dispatch
IDispatch, userName =
_GetGoodDispatchAndUserName(IDispatch,userName,cls ctx)
File "C:\Python24\Lib\site-packages\win32com\client\dynamic.py", line
91, in _GetGoodDispatchAndUserName
return (_GetGoodDispatch(IDispatch, clsctx), userName)
File "C:\Python24\Lib\site-packages\win32com\client\dynamic.py", line
79, in _GetGoodDispatch
IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx,
pythoncom.IID_IDispatch)
com_error: (-2147221005, 'Invalid class string', None, None)

I searched google, above code lines should be ok, but really don't know
how the exception come out. Could this be resolved? Thanks.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C# 2.0 (Lotus Notes 6 & 7) Create mail document in draft folder for Lotus Notes SteveM ASP .Net 5 08-28-2007 04:16 PM
Python and Lotus Notes =?ISO-8859-2?Q?Grzegorz_=A6lusarek?= Python 5 11-04-2005 08:03 PM
Access lotus notes using Python Sateesh Python 13 05-24-2005 11:23 PM
Accessing email from Notes-mail-server without Lotus Notes installed Bjorn Jensen Perl 0 03-22-2005 01:44 PM
Virus Alert - ScanMail for Lotus Notes --> Delivery(python-list@python.org) timanfaya/TSM@tsm.es Python 0 05-18-2004 07:48 AM



Advertisments