Suraj Barkale schrieb:
> Hi,
> On 11/13/07, Thomas Heller <[EMAIL PROTECTED]> wrote:
>> Can you please try and remove all files from the comtypes\gen directory,
>> and then rerun your script?
>    Note that script runs without problem. I get the exception only if
> I set breakpoint in either PyScriptor or PythonWin.
>     I uninstalled 0.4 & installed 0.3.3 (without deleting /gen) and
> everything worked fine. So I downloaded the zip distributions of 0.4 &
> 0.3.3 to try out using .pth method. (Apparently comtypes-0.3.3.zip
> does not contain 'partial.py' and I had to copy it from exe). So

0.3.3 does not need the partial.py module (IIRC)

> starting at clean install, I got no problem for 0.3.3 but 0.4 failed
> with following exception. The code I tried was:
> 
> import comtypes.client
> comtypes.client.GetModule(("{00020905-0000-0000-C000-000000000046}",
> 8, 0, 1033))
> # set breakpoint on next line in ide
> wa = comtypes.client.CreateObject('Word.Application')
> wa.Quit()
> 

I can reproduce your problem now, in PythonWin.

Strange bug!  I think I have a fix already, but I would like to understand
the bug....

Thanks for the heads-up.
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

Reply via email to