Discussion:
[Bitpim-devel] Anyone running Outlook?
Roger Binns
2004-06-09 06:01:45 UTC
Permalink
Is there anyone running Outlook on this list?

If you are running from CVS, please try an import and let me know what
happens. The fields imported are junk, but you should be able to
select the appropriate folder, and get all the entries. I only have
Outlook 2000 so I am most keen to know if works for other versions.

The next code to write is to select the correct fields from Outlook.

Roger
Somerlot, Chris
2004-06-11 14:02:54 UTC
Permalink
... I only have
Outlook 2000 so I am most keen to know if works for other versions.
Fails on Outlook 2002, see below. Thanks for adding this feature!

An unexpected exception has occurred.
Please see the help for details on what to do.

Traceback (most recent call last):
File "C:\Program Files\BitPim\bitpim\gui.py", line 364, in __call__
return self.func(*self.args, **self.kwargs)
File "C:\Program Files\BitPim\bitpim\importexport.py", line 694, in
OnFileImportOutlookContacts
dlg=ImportOutlookDialog(parent, -1, "Import Outlook Contacts",
native.outlook)
File "C:\Program Files\BitPim\bitpim\importexport.py", line 612, in
__init__
ImportDialog.__init__(self, parent, id, title)
File "C:\Program Files\BitPim\bitpim\importexport.py", line 127, in
__init__
self.getcontrols(vbs)
File "C:\Program Files\BitPim\bitpim\importexport.py", line 635, in
getcontrols
self.folder=self.outlook.getfolderfromid(id, True)
File "C:\Program Files\BitPim\bitpim\native\outlook\outlook.py", line
229, in getfolderfromid
onMAPI = getmapinamespace()
File "C:\Program Files\BitPim\bitpim\native\outlook\outlook.py", line
270, in getmapinamespace
_mapinamespaceobject=getoutlookapp().GetNamespace("MAPI")
File "C:\Program Files\BitPim\bitpim\native\outlook\outlook.py", line
262, in getoutlookapp
win32com.client.gencache.EnsureDispatch("Outlook.Application.9")
File "C:\Python23\lib\site-packages\win32com\client\gencache.py", line
516, in EnsureDispatch
disp = win32com.client.Dispatch(prog_id)
File "C:\Python23\lib\site-packages\win32com\client\__init__.py", line
95, in Dispatch
dispatch, userName =
dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
File "C:\Python23\lib\site-packages\win32com\client\dynamic.py", line
84, in _GetGoodDispatchAndUserName
return (_GetGoodDispatch(IDispatch, clsctx), userName)
File "C:\Python23\lib\site-packages\win32com\client\dynamic.py", line
72, in _GetGoodDispatch
IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx,
pythoncom.IID_IDispatch)
com_error: (-2147221005, 'Invalid class string', None, None)

Variables by last 8 frames, innermost last

Frame getcontrols in C:\Program Files\BitPim\bitpim\importexport.py at
line 635
vbs = <wxPython.sizers.wxBoxSizer instance; proxy of C++
wxBoxSizer instance at _a7d7f
self = <importexport.ImportOutlookDialog instance; proxy of
C++ wxDialog instance at _1
id = ''
hbs = <wxPython.sizers.wxBoxSizer instance; proxy of C++
wxBoxSizer instance at _1694e

Frame getfolderfromid in C:\Program
Files\BitPim\bitpim\native\outlook\outlook.py at line 229
default = True
id = ''

Frame getmapinamespace in C:\Program
Files\BitPim\bitpim\native\outlook\outlook.py at line 270

Frame getoutlookapp in C:\Program
Files\BitPim\bitpim\native\outlook\outlook.py at line 262

Frame EnsureDispatch in
C:\Python23\lib\site-packages\win32com\client\gencache.py at line 516
bForDemand = 1
prog_id = 'Outlook.Application.9'

Frame Dispatch in
C:\Python23\lib\site-packages\win32com\client\__init__.py at line 95
userName = None
typeinfo = None
clsctx = 21
dispatch = 'Outlook.Application.9'
resultCLSID = None
UnicodeToString = False

Frame _GetGoodDispatchAndUserName in
C:\Python23\lib\site-packages\win32com\client\dynamic.py at line 84
userName = 'Outlook.Application.9'
IDispatch = 'Outlook.Application.9'
clsctx = 21

Frame _GetGoodDispatch in
C:\Python23\lib\site-packages\win32com\client\dynamic.py at line 72
IDispatch = 'Outlook.Application.9'
clsctx = 21
Roger Binns
2004-06-14 05:07:09 UTC
Permalink
Post by Somerlot, Chris
... I only have
Outlook 2000 so I am most keen to know if works for other versions.
Fails on Outlook 2002, see below. Thanks for adding this feature!
I have now done the type library to Python wrapper a different way
and would appreciate it if you can check that. You can verify you
have the new code by looking for a file named
native/outlook/outlook_com.py

Roger
Somerlot, Chris
2004-06-14 12:13:25 UTC
Permalink
Post by Roger Binns
Post by Somerlot, Chris
... I only have
Outlook 2000 so I am most keen to know if works for other
versions.
Post by Somerlot, Chris
Fails on Outlook 2002, see below. Thanks for adding this feature!
I have now done the type library to Python wrapper a
different way and would appreciate it if you can check that.
You can verify you have the new code by looking for a file named
native/outlook/outlook_com.py
Works great.

Loading...