Suraj Barkale schrieb: > 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?
Can you please try and remove all files from the comtypes\gen directory, and then rerun your script? Thomas ------------------------------------------------------------------------- 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