Python and Lotus Notes

Discussion in 'Python' started by bisj, Nov 13, 2005.

  1. bisj

    bisj Guest

    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,clsctx)
    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.
     
    bisj, Nov 13, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bjorn Jensen
    Replies:
    0
    Views:
    1,247
    Bjorn Jensen
    Mar 22, 2005
  2. timanfaya/
    Replies:
    0
    Views:
    472
    timanfaya/
    May 18, 2004
  3. Sateesh

    Access lotus notes using Python

    Sateesh, May 23, 2005, in forum: Python
    Replies:
    13
    Views:
    5,452
    Dan Poirier
    May 25, 2005
  4. =?ISO-8859-2?Q?Grzegorz_=A6lusarek?=

    Python and Lotus Notes

    =?ISO-8859-2?Q?Grzegorz_=A6lusarek?=, Nov 2, 2005, in forum: Python
    Replies:
    5
    Views:
    9,958
    thakadu
    Nov 4, 2005
  5. SteveM
    Replies:
    5
    Views:
    1,629
    Mark Rae [MVP]
    Aug 28, 2007
Loading...

Share This Page