httplib 'getaddrinfo failed'
Gordon Williams
g_will at cyberus.ca
Fri Sep 20 13:50:01 EDT 2002
Hi All,
I recently got a DSL line to connect to the internet and my code is now
broken. Could this be due to the DSL being different from a dialup
connection?
I'm using python 2.2 on W2000.
This is the traceback from the 2.2 httplib:
Traceback (most recent call last):
File "G:\Python Files\Mutual Fund Updater\GetPrice.py", line 103, in ?
f = u.open(url)
File "G:\PROGRA~1\PYTHON22\lib\urllib.py", line 178, in open
return getattr(self, name)(url)
File "G:\PROGRA~1\PYTHON22\lib\urllib.py", line 288, in open_http
h.putrequest('GET', selector)
File "G:\PROGRA~1\PYTHON22\lib\httplib.py", line 452, in putrequest
self.send(str)
File "G:\PROGRA~1\PYTHON22\lib\httplib.py", line 394, in send
self.connect()
File "G:\PROGRA~1\PYTHON22\lib\httplib.py", line 362, in connect
for res in socket.getaddrinfo(self.host, self.port, 0,
socket.SOCK_STREAM):
IOError: [Errno socket error] (2, 'getaddrinfo failed')
This is the traceback from the httplib in CVS that I got today.
Traceback (most recent call last):
File "G:\Python Files\Mutual Fund Updater\GetPrice.py", line 103, in ?
f = u.open(url)
File "G:\PROGRA~1\PYTHON22\lib\urllib.py", line 178, in open
return getattr(self, name)(url)
File "G:\PROGRA~1\PYTHON22\lib\urllib.py", line 292, in open_http
h.endheaders()
File "G:\PROGRA~1\PYTHON22\lib\httplib.py", line 695, in endheaders
self._send_output()
File "G:\PROGRA~1\PYTHON22\lib\httplib.py", line 581, in _send_output
self.send(msg)
File "G:\PROGRA~1\PYTHON22\lib\httplib.py", line 548, in send
self.connect()
File "G:\PROGRA~1\PYTHON22\lib\httplib.py", line 516, in connect
socket.SOCK_STREAM):
IOError: [Errno socket error] (2, 'getaddrinfo failed')
Same problem. Any ideas? I'm using Sympatico high speed edition which was
developed by Efficient Networks Inc. - if that is any help.
Regards,
Gordon Williams
More information about the Python-list
mailing list