Some errors when running code in diveintopython: (

iclinux at gmail.com iclinux at gmail.com
Fri Dec 23 08:18:30 EST 2005


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?




More information about the Python-list mailing list