Q: win32com.client.dynamic: VARIANT type not supported for SAFEARRAYS
Olaf Trygve Berglihn
olafb at pvv.org
Wed Mar 1 10:03:55 EST 2000
I get the following trace when trying to access a variable in the
COM-aware process simulator HYSYS.process by Hyprotech:
Python 1.5.2 (#0, Apr 13 1999, 10:51:12) [MSC 32 bit (Intel)] on win32
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> from win32com.client import Dispatch
>>> hysysapp = Dispatch('HYSYS.application')
>>> compmolfrac5 = hysysapp.ActiveDocument.Flowsheet.Streams('5').ComponentMolarFraction
>>> compmolfrac5.CanModify
Traceback (innermost last):
File "<pyshell#44>", line 1, in ?
compmolfrac5.CanModify
File "C:\Program Files\Python\win32com\client\dynamic.py", line 388,in __getattr__
ret = self._oleobj_.Invoke(retEntry.dispid,0,pythoncom.DISPATCH_PROPERTYGET,1)
TypeError: The VARIANT type is not supported for SAFEARRAYS
>>>
Any explanations and/or suggestions?
Thanks!
Olaf
--
* Olaf Trygve Berglihn <olafb at pvv.org>
More information about the Python-list
mailing list