Roman Yakovenko schrieb:
> Good morning.
> 
> I got error while calling comtypes.client.GetModule function.
> Here is the call stack:
> 
>>e:\Python25\pythonw.exe -u "pdb_reader.py"
> Traceback (most recent call last):
>   File "pdb_reader.py", line 8, in <module>
>     print comtypes.client.GetModule( r'D:\Program Files\Microsoft
> Visual Studio .NET 2003\Visual Studio SDKs\DIA SDK\bin\msdia71.dll' )
>   File "e:\python25\Lib\site-packages\comtypes\client\_generate.py",
> line 100, in GetModule
>     is_current, mod = _CreateWrapper(tlib, pathname)
>   File "e:\python25\Lib\site-packages\comtypes\client\_generate.py",
> line 191, in _CreateWrapper
>     return True, imp.load_module(modname, file_, module_path, desc)
>   File 
> "e:\Python25\lib\site-packages\comtypes\gen\_106173A0_0173_4E5C_84E7_E915422BE997_0_2_0.py",
> line 761, in <module>
>     ( ['out'], POINTER(POINTER(IDiaSymbol)), 'ppSymbol' )),
>   File "e:\python25\Lib\site-packages\comtypes\__init__.py", line 239,
> in __setattr__
>     self._make_methods(value)
>   File "e:\python25\Lib\site-packages\comtypes\__init__.py", line 492,
> in _make_methods
>     prototype = WINFUNCTYPE(restype, *argtypes)
>   File "e:\Python25\lib\ctypes\__init__.py", line 121, in WINFUNCTYPE
>     class WinFunctionType(_CFuncPtr):
> TypeError: Error when calling the metaclass bases
>     item 5 in _argtypes_ has no from_param method
> 
> I am using standard Python 2.5 installation with ctypes module, which
> comes with it. I am using SVN version of comtypes.

I have committed a fix to SVN (maybe I should say hack) which apparently 
resolves
this problem.  Please get comtypes from svn, clear the contents of your
comtypes\gen directory, and try again.  The attached little script that I wrote,
inspired by the "DIA SDK\Samples\dia2dump.cpp" program works for me and
prints some information about .pdb files.

Thanks for the heads-up,
Thomas


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users

Reply via email to