Kasra Keshavarz wrote:
>
> 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)

Are you absolutely sure of the bittedness?  Exactly this kind of thing
can happen if WEAP is a 32-bit application but you installed the 64-bit
Python, or vice versa.

Are you sure that the app ID is "Weap.WeapApplication"?  Do you know how
to troll the registry to verify that?

-- 
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.

_______________________________________________
python-win32 mailing list
python-win32@python.org
https://mail.python.org/mailman/listinfo/python-win32

Reply via email to