urllib2.urlopen gives error 10060

Jinshi zjs2k at yahoo.com
Tue Mar 25 20:59:04 EDT 2008


Hello, everyone,

I am quite new to python and I don't know how to solve this problem. I 
hope someone can help me.

I just did a test in python shell:

 >>> import urllib2
 >>> urllib2.urlopen("http://python.org")
Traceback (most recent call last):
   File "c:\Zope\<string>", line 1, in ?
   File "C:\Zope\2.10.5\Python\Lib\urllib2.py", line 130, in urlopen
     return _opener.open(url, data)
   File "C:\Zope\2.10.5\Python\Lib\urllib2.py", line 358, in open
     response = self._open(req, data)
   File "C:\Zope\2.10.5\Python\Lib\urllib2.py", line 376, in _open
     '_open', req)
   File "C:\Zope\2.10.5\Python\Lib\urllib2.py", line 337, in _call_chain
     result = func(*args)
   File "C:\Zope\2.10.5\Python\Lib\urllib2.py", line 1021, in http_open
     return self.do_open(httplib.HTTPConnection, req)
   File "C:\Zope\2.10.5\Python\Lib\urllib2.py", line 996, in do_open
     raise URLError(err)
URLError: <urlopen error (10060, 'Operation timed out')>

I am using Windows XP and the python was installed along with a zope 
installation. I can get on internet with Firefox browser without any 
proxy setting.

I can do the test successfully on another computer on the same home 
network. I just don't know what happens to this one. Can anyone help me 
to troubleshoot this? Any suggestion would be really appreciated.

Jin




More information about the Python-list mailing list