PythonWin Outlook connection

michael montagne montagne at boora.com
Fri May 11 19:16:34 EDT 2001


The following sequence works on my machine during development but when I
install on another computer(the actual user) I am greeted with the error at
the bottom.  I ran the COM MakePy Utility for Outlook.  We both have the
same version of MSOffice.

>>> import win32com.client
>>> objOut = win32com.client.dynamic.Dispatch("Outlook.Application.9")
>>> objNamespace=objOut.GetNamespace("Mapi")
>>> objNamespace.Logon()
>>> folder=objNamespace.Folders.Item("Public Folders").Folders.Item("All
Public folders").Folders.Item("Proj").Folders.Item("98011 UC
Davis").Folders.Item("UCD RFI's")
>>> objemail=folder.Items(1)
Traceback (most recent call last):
  File "<interactive input>", line 1, in ?
AttributeError: _Items instance has no __call__ method







More information about the Python-list mailing list