Hi, I am trying to debug a script which uses comtypes 0.4 for parsing word documents. However, whenever I set a breakpoint in the script, ide (PyScripter / PythonWin) stops with the exception at end of this mail. I tried this simple script: import comtypes.client #comtypes.client.GetModule(("{00020905-0000-0000-C000-000000000046}", 8, 0, 1033)) from comtypes.gen import Word
wa = comtypes.client.CreateObject('Word.Application') wa.Quit() The exception occurs *only* if I have set a breakpoint on any line of the script. Can anybody please tell me if this problem is specific to my system? Or how to work around this problem? Thanks & Regards, Suraj Traceback (most recent call last): File "C:\data\com_test.py", line 3, in <module> from comtypes.gen import Word File "C:\Python25\lib\site-packages\comtypes\gen\Word.py", line 1, in <module> from comtypes.gen import _00020905_0000_0000_C000_000000000046_0_8_2 File "C:\Python25\lib\site-packages\comtypes\gen\_00020905_0000_0000_C000_000000000046_0_8_2.py", line 4, in <module> import comtypes.gen._2DF8D04C_5BFA_101B_BDE5_00AA0044DE52_0_2_2 File "C:\Python25\lib\site-packages\comtypes\gen\_2DF8D04C_5BFA_101B_BDE5_00AA0044DE52_0_2_2.py", line 4, in <module> import comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0 File "C:\Python25\lib\site-packages\comtypes\gen\_00020430_0000_0000_C000_000000000046_0_2_0.py", line 65, in <module> ( [], c_void_p, 'prcWBounds' )), File "C:\Python25\lib\site-packages\comtypes\__init__.py", line 239, in __setattr__ self._make_specials() File "C:\Python25\lib\site-packages\comtypes\__init__.py", line 253, in _make_specials class _(partial.partial, self): File "C:\Python25\lib\site-packages\comtypes\partial.py", line 41, in __new__ raise TypeError, "%s already has %s" % (repr(base), k) TypeError: <class 'comtypes.gen._00020430_0000_0000_C000_000000000046_0_2_0.Picture'> already has has_name ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ comtypes-users mailing list comtypes-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/comtypes-users