gaierror

2009-09-10 Thread vpr
y i.e. nslookup I get the following error. The underlying code uses httplib. , gaierror(-2, 'Name or service not known') Has anyone had a similar experience? M -- http://mail.python.org/mailman/listinfo/python-list

Re: Socket - gaierror

2007-08-27 Thread Douglas Wells
> wrote: > > > > > Changing it to IP gives me the same exact error... > > > > > File "bin/prgram.py", line 123, in notify > > > smtp = smtplib.SMTP("XXX.XXX.XXX.XXX") > > > > > File "/usr/lib/python2.4/smtplib.p

Re: Socket - gaierror

2007-08-27 Thread Steve Holden
iving me the >>>> following error: >>>> File "bin/program.py", line 123, in notify >>>> smtp = smtplib.SMTP("theHost") >>>> File "/usr/lib/python2.4/smtplib.py", line 255, in __init__ >>>> addr = socket.get

Re: Socket - gaierror

2007-08-27 Thread half . italian
> > > File "bin/prgram.py", line 123, in notify > > smtp = smtplib.SMTP("XXX.XXX.XXX.XXX") > > > File "/usr/lib/python2.4/smtplib.py", line 255, in __init__ > > addr = socket.gethostbyname(socket.gethostname()) > > > g

Re: Socket - gaierror

2007-08-27 Thread Douglas Wells
"XXX.XXX.XXX.XXX") > > File "/usr/lib/python2.4/smtplib.py", line 255, in __init__ > addr = socket.gethostbyname(socket.gethostname()) > > gaierror: (-2, 'Name or service not known') > > Looks like the smtp port is closed on the client mac

Re: Socket - gaierror

2007-08-27 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > What could cause the shell to be > able to resolve the addresses properly, but not python? > nnsswitch.conf ? How did you test the name resolution in the shell--was it with "host" or "ping"? I would recommend ping, because that would use

Re: Socket - gaierror

2007-08-27 Thread half . italian
t; File "bin/program.py", line 123, in notify > > > smtp = smtplib.SMTP("theHost") > > > > File "/usr/lib/python2.4/smtplib.py", line 255, in __init__ > > > addr = socket.gethostbyname(socket.gethostname()) > > >

Re: Socket - gaierror

2007-08-27 Thread half . italian
P("theHost") > > > File "/usr/lib/python2.4/smtplib.py", line 255, in __init__ > > addr = socket.gethostbyname(socket.gethostname()) > > > gaierror: (-2, 'Name or service not known') > > > I tried changing to a different smtp server, using an i

Re: Socket - gaierror

2007-08-27 Thread Larry Bates
t") tries to get the hostname, it keeps giving me the > following error: > > File "bin/program.py", line 123, in notify > smtp = smtplib.SMTP("theHost") > > File "/usr/lib/python2.4/smtplib.py", line 255, in __init__ > addr =

Socket - gaierror

2007-08-27 Thread half . italian
the following error: File "bin/program.py", line 123, in notify smtp = smtplib.SMTP("theHost") File "/usr/lib/python2.4/smtplib.py", line 255, in __init__ addr = socket.gethostbyname(socket.gethostname()) gaierror: (-2, 'Name or service not known&#

Re: gaierror: (8, 'hostname nor servname provided, or not known')

2006-07-31 Thread Laszlo Nagy
faulkner írta: > my boss has a similar problem with his home internet connection in > general. he traced it back to his router, which was in the first couple > generations of routers. how old are the routers you tested this on? > aside from upgrading them, if they are the problem, i can suggest a >

Re: gaierror: (8, 'hostname nor servname provided, or not known')

2006-07-31 Thread faulkner
ot;/usr/local/lib/python2.4/httplib.py", line 798, in endheaders > self._send_output() > File "/usr/local/lib/python2.4/httplib.py", line 679, in _send_output > self.send(msg) > File "/usr/local/lib/python2.4/httplib.py", line 646, in send > self.

gaierror: (8, 'hostname nor servname provided, or not known')

2006-07-31 Thread Laszlo Nagy
ib/python2.4/httplib.py", line 1072, in connect sock.connect((self.host, self.port)) File "", line 1, in connect gaierror: (8, 'hostname nor servname provided, or not known') The program is connecting to the same host about 2 times per minute. After running for