El Fri, 23 Dec 2005 05:18:30 -0800, iclinux escribió: > I can visit those two websites above, but when I run your code, I get > those errors(BTW,I have closed my firewall > ): > >>>> import socket >>>> socket.getaddrinfo("www.xmethods.net", 80) > > Traceback (most recent call last): > File "<pyshell#1>", line 1, in -toplevel- > socket.getaddrinfo("www.xmethods.net", 80) > gaierror: (11001, 'getaddrinfo failed') >>>> socket.getaddrinfo("services.xmethods.net", 80) > > Traceback (most recent call last): > File "<pyshell#2>", line 1, in -toplevel- > socket.getaddrinfo("services.xmethods.net", 80) > gaierror: (11001, 'getaddrinfo failed') >>>> > > what can I do?
Have you got a Firewall ? Take a look over firewall settings and give Python rights for accesing port 80 -- http://mail.python.org/mailman/listinfo/python-list