Kevin Watters wrote: Kevin Watters wrote: > Running comtypes' setup.py results in a pretty strange traceback on > Python 2.6 (recent from trunk, r64563): > > python setup.py build install --install-lib=../../dependencies > Traceback (most recent call last): > File "setup.py", line 14, in <module> > import comtypes > File "C:\dev\build\msw\comtypes\comtypes\__init__.py", line 1166, in <m > odule> > from comtypes._comobject import COMObject > File "C:\dev\build\msw\comtypes\comtypes\_comobject.py", line 18, in <m > odule> > from comtypes.typeinfo import IProvideClassInfo, IProvideClassInfo2 > File "C:\dev\build\msw\comtypes\comtypes\typeinfo.py", line 602, in <mo > dule> > (['out'], POINTER(POINTER(TLIBATTR)))), > SystemError: NULL result without error in PyObject_Call
Debug build shows: Assertion failed: PyErr_Occurred(), file ..\Modules\_ctypes\_ctypes.c, line 309 which is: <code> /******************************************************************/ /* Allocate a memory block for a pep3118 format string, copy prefix (if non-null) and suffix into it. Returns NULL on failure, with the error indicator set. If called with a suffix of NULL the error indicator must already be set. */ char * alloc_format_string(const char *prefix, const char *suffix) { size_t len; char *result; if (suffix == NULL) { assert(PyErr_Occurred()); *********** <--- Line 309 return NULL; } ... </code> The comment indicates that the error indicator will already have been set, but presumably it hasn't been somewhere. Don't have the time to trace the code path through at the moment. Would be good to work out a reproducible fragment. TJG ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ comtypes-users mailing list comtypes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/comtypes-users