[python-win32] Problem using win32com.client.Dispatch on Win764bit
Misy
leagen1 at gmail.com
Mon Apr 11 13:02:28 CEST 2011
> If that's the only object you need to access, you should be done.
> Go ahead and try to Dispatch it. However, if there are other
> related classes (very likely), you'll need to import them into your
> proxy also.
>
> Roger
>
Hi, Roger,
Well...I still failed. I rebooted and tried, but it didn't work. And the
message was the same. Maybe I should go back to the beginning. My error message
was that:
---------------------------------------------------
IDLE 2.6.6
>>> import win32com.client
>>> com_nxn = win32com.client.Dispatch("NxNNamespace.NxNNamespaceHelper")
Traceback (most recent call last):
File "<pyshell#1>", line 1, in <module>
com_nxn = win32com.client.Dispatch("NxNNamespace.NxNNamespaceHelper")
File "C:\Python26\lib\site-packages\win32com\client\__init__.py", line 95, in
Dispatch
dispatch, userName =
dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
File "C:\Python26\lib\site-packages\win32com\client\dynamic.py", line 108, in
_GetGoodDispatchAndUserName
return (_GetGoodDispatch(IDispatch, clsctx), userName)
File "C:\Python26\lib\site-packages\win32com\client\dynamic.py", line 85, in
_GetGoodDispatch
IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx,
pythoncom.IID_IDispatch)
com_error: (-2147221164, '\xc3\xfe\xa7O\xa5\xbc\xb5n\xbf\xfd', None, None)
>>>
-----------------------------------------------------
It was very strange that the com_error message is a .... binary code, so in
fact, I am not sure it is the same problem as Eileen's.
Any idea?
Misy
More information about the python-win32
mailing list