rvanlaar/djangorecipe — Issue #20: Use urllib2 instead of urllib
Author: rvanlaar
Created: 2011-12-27 21:40:22+00:00
State: open
Labels: Fix Released, Undecided

If youre behind a proxy djangorecipe cant download django:

File "/export/home/p950dia/proj/inv.zc/eggs/djangorecipe-0.17.1-py2.4.egg/djan
gorecipe/recipe.py", line 327, in get_release
File "/usr/lib/python2.4/urllib.py", line 89, in urlretrieve
return _urlopener.retrieve(url, filename, reporthook, data)
File "/usr/lib/python2.4/urllib.py", line 222, in retrieve
fp = self.open(url, data)
File "/usr/lib/python2.4/urllib.py", line 190, in open
return getattr(self, name)(url)
File "/usr/lib/python2.4/urllib.py", line 313, in open_http
h.endheaders()
File "/usr/lib/python2.4/httplib.py", line 818, in endheaders
self._send_output()
File "/usr/lib/python2.4/httplib.py", line 699, in _send_output
self.send(msg)
File "/usr/lib/python2.4/httplib.py", line 666, in send
self.connect()
File "/usr/lib/python2.4/httplib.py", line 632, in connect
socket.SOCK_STREAM):
IOError: [Errno socket error] (8, 'node name or service name not known')

In recipe.py urllib2 that handles proxy settings transparently should be used instead of urllib