Pythoncom error when calling method
Mark Hammond
MarkH at ActiveState.com
Mon Nov 20 17:56:13 EST 2000
More information about the Python-list mailing list
Mon Nov 20 17:56:13 EST 2000
- Previous message (by thread): Pythoncom error when calling method
- Next message (by thread): Pythoncom error when calling method
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
kevin_mcfarlane at my-deja.com wrote: > Hi, > > Python 2.0 on Windows 95 OSR2 > > I am having trouble calling an ActiveX method of the form: > > sequence = sequenceFile.GetSequence(0) > > It produces the following error: > > File "c:\python20\win32com\client\dynamic.py", line 429, in __getattr__ > raise pythoncom.com_error, details > com_error: (-2147352567, 'Exception occurred.', (0, 'TSAPI', 'Expected > 1 positional (non-named) parameters; found 0.', None, 0, -17808), None) This error is caused by the ActiveX control returning a non-standard error when queried for a property that doesnt exist. That query is made internally by win32com, so it is not anything you are doing wrong. The only real solution is to run "makepy" over the ActiveX type library. This will cause win32com to know that GetSequence() is a real method, and will avoid the step causing it to fail. Mark.
- Previous message (by thread): Pythoncom error when calling method
- Next message (by thread): Pythoncom error when calling method
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-list mailing list