Greetings, Experts: I've run into this error and wonder if any of you can help. First I get this message: [snip]\lib\site-packages\win32com\client\__init__.py:480: RuntimeWarning: tp_compare didn't return -1 or -2 for exception elif type(obj)==TupleType: Something then raises an exception (NOT a pythoncom.com_error), from which I extract this traceback, exception type, and value: [snip] iRet, nOpen, liOpen = zFem.feAppGetAllModels () In feAppGetAllModels, "PyFemap.py" line 14661, , nModelID) In _ApplyTypes_, "__init__.py" line 449, user, resultCLSID) In _get_good_object_, "__init__.py" line 467, return _get_good_object_(obj, obUserName, resultCLSID) In _get_good_object_, "__init__.py" line 480, elif type(obj)==TupleType: <type 'exceptions.TypeError'>- The VARIANT type 0x14 is not supported for SAFEARRAYS The above-mentioned "PyFemap.py" is the output from running the Server's type library through makepy.py. It contains this definition for the method that produces the error: def feAppGetAllModels(self, numModels=pythoncom.Missing, nModelID=pythoncom.Missing): return self._ApplyTypes_(20350, 1, (3, 0), ((16387, 2), (16396, 2)), 'feAppGetAllModels', None,numModels, nModelID) The Server's (VB-centric) documentation for "feAppGetAllModels" says that numModels is an INT4 and nModelID is an array of INT8s. I think this means that the Server uses a data type that Pythoncom doesn't support, in which case I think there's not much I can do about it, but maybe someone can suggest something? FYI, I'm using ActiveState python version 2.5.2 (r252:60911, Mar 27 2008, 17:57:18) [MSC v.1310 32 bit (Intel)]. Would a later version help? Thanks, Greg Antal -- Gregory W. Antal Senior Technical Advisor ATA Engineering, Inc. 11995 El Camino Real, Suite 200 San Diego, CA 92130 www.ata-e.com greg.an...@ata-e.com 858-480-2072 (Phone) 858-792-8932 (Fax) |
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32