[python-win32] Using "WEAP" API in Python
Kasra Keshavarz
kasra545 at gmail.com
Tue Aug 4 12:04:04 CEST 2015
Hi,
I'm facing problem in using WEAP <http://www.weap21.org> API in python. I
have installed WEAP correctly and have a 3.4.3 version python and also
PythonWin (all of them are 32-bit). I'm not sure why this is happening.
Here is the error message:
>>> w = win32com.client.Dispatch("Weap.WeapApplication")
Traceback (most recent call last):
File "<interactive input>", line 1, in <module>
File "C:\Python34\lib\site-packages\win32com\client\__init__.py", line
95, in Dispatch
dispatch, userName =
dynamic._GetGoodDispatchAndUserName(dispatch,userName,clsctx)
File "C:\Python34\lib\site-packages\win32com\client\dynamic.py", line
114, in _GetGoodDispatchAndUserName
return (_GetGoodDispatch(IDispatch, clsctx), userName)
File "C:\Python34\lib\site-packages\win32com\client\dynamic.py", line 91,
in _GetGoodDispatch
IDispatch = pythoncom.CoCreateInstance(IDispatch, None, clsctx,
pythoncom.IID_IDispatch)
pywintypes.com_error: (-2147221005, 'Invalid class string', None, None)
Thanks for cooperation :)
Sincerely,
Kasra Keshavarz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-win32/attachments/20150804/6b9c4142/attachment.html>
More information about the python-win32
mailing list