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
> 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
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
>
> > 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
"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
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
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())
>
> >
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
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 =
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
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
>
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.
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
13 matches
Mail list logo