urllib2 on Windows Vista

Sriram Krishnan sriramk at gmail.com
Sat Jul 8 15:27:43 EDT 2006


I'm running Python 2.4.3 on Windows Vista June CTP. I'm not able to
open any site using the urllib2 and related family of modules

Here's what I get

>>> import urllib2
>>> urllib2.urlopen("http://www.microsoft.com")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "D:\python24\lib\urllib2.py", line 130, in urlopen
    return _opener.open(url, data)
  File "D:\python24\lib\urllib2.py", line 358, in open
    response = self._open(req, data)
  File "D:\python24\lib\urllib2.py", line 376, in _open
    '_open', req)
  File "D:\python24\lib\urllib2.py", line 337, in _call_chain
    result = func(*args)
  File "D:\python24\lib\urllib2.py", line 1021, in http_open
    return self.do_open(httplib.HTTPConnection, req)
  File "D:\python24\lib\urllib2.py", line 996, in do_open
    raise URLError(err)
urllib2.URLError: <urlopen error (11001, 'getaddrinfo failed')>

Is this a known issue on Windows Vista?

Thanks,
Sriram




More information about the Python-list mailing list