[python-win32] EnsureDispatch throwing fatal error
Jiawei Li
jiawei.h.li at gmail.com
Thu Mar 31 07:04:07 CEST 2011
I am running the following line of code:
iTunes = win32com.client.gencache.EnsureDispatch('iTunes.Application')
This results in this error:
Traceback (most recent call last):
File "Helper.py", line 154, in <module>
File "win32com\client\gencache.pyo", line 529, in
EnsureDispatch
File "win32com\client\__init__.pyo", line 95, in Dispatch
File "win32com\client\dynamic.pyo", line 104, in
_GetGoodDispatchAndUserName
File "win32com\client\dynamic.pyo", line 84, in
_GetGoodDispatch
pywintypes.com_error: (-2147221005, 'Invalid class string',
None, None)
This is being run on a Windows 7 64-bit machine with Python 2.6,
py2exe-0.6.9, and pywin32-214.
Does anyone know the meaning of this cryptic error?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20110331/892b7566/attachment.html>
More information about the python-win32
mailing list