Some errors when running code in diveintopython: (

beryan beryan at ya.com
Fri Dec 23 13:59:53 EST 2005


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



More information about the Python-list mailing list