Help with gaierror: (7, 'getaddrinfo failed')
Jeff Epler
jepler at unpythonic.net
Mon Feb 10 11:17:51 EST 2003
You're trying to resolve an address that doesn't exist. For example,
this is what I get on my system when I try to resolve a bogus hostname:
>>> socket.gethostbyname("bogus.unpythonic.net")
Traceback (most recent call last):
File "<stdin>", line 1, in ?
socket.gaierror: (-2, 'Name or service not known')
> conn = httplib.HTTPConnection("www.gpc.edu/~whitfie3:80")
The syntax of your URL is quite likely to be confusing things. You
probably mean
http://www.gpc.edu:80/~whitfie3
Jeff
More information about the Python-list
mailing list