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.