urllib2 on Windows Vista

"Martin v. Löwis" martin at v.loewis.de
Tue Jul 11 02:38:47 EDT 2006


Sriram Krishnan wrote:
> 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

I think you need to break the error further down. Try httplib instead
of urllib, and see what connect does. Then break this down into socket
calls (reading the source of httplib.connect, and executing it manually
in single-stepping), so that you know what the precise arguments passed
to getaddrinfo are.

FWIW, 11001 is WSAHOST_NOT_FOUND, which suggests that you have
DNS configured incorrectly.

Regards,
Martin



More information about the Python-list mailing list