win32com problem (146 and 2.2)

Mark Hammond mhammond at skippinet.com.au
Sun Mar 24 17:13:12 EST 2002


Joe Smith wrote:
> A coworker gets the following error:
> 
> 
> Traceback (most recent call last): 
>   File "C:\My Stuff\V3\GotoYahoo.py", line 7, in ? 
>     ie.Navigate('http://www.yahoo.com') 
>   File "<COMObject InternetExplorer.Application>", line 2, in Navigate
> 
> pywintypes.com_error: (-2147352567, 'Exception occurred.', (0, None,
> None, None, 
>  0, -2147467259), None) 
> 
> 
> The script:
> 
> 
> import win32com.client
> 
> ie = win32com.client.Dispatch("InternetExplorer.Application")
> ie.Visible = 1
> 
> ie.Navigate('http://www.yahoo.com')
> 
> 
> A script similar to this one was working on his machine and all of a
> sudden these sort of error started occuring.  So, he uninstalled
> win32com (146) and python 2.2 and then reinstalled them.  He was still
> having the problem, so I wrote the small script above to reproduce the
> proble.  He says that he has not changed the configuration on his
> machine and I am stumped.

IE has probably just started failing.  Write a WSH version, and I expect 
you will find the exact same thing happening.

Check for dead and invisible IE processes.

Mark.




More information about the Python-list mailing list