[Python-bugs-list] Re: popen2 and socket. (PR#53)

guido@CNRI.Reston.VA.US guido@CNRI.Reston.VA.US
Mon, 16 Aug 1999 11:36:48 -0400 (EDT)


> [Guido van Rossum]
> > This is not a Python bug.
> > Your network environment has not been set up properly.
> 
> Yes it is. The machine is connected to the internet. Everything else,
> including Apache and Perl are able to use the network.
> 
> I forgot to mention that Python 1.5.1 works with no problems. 

The specific problem is with the DNS.  The failing line in
test_socket.py checks that the DNS lookup for the result of
gethostname() succeeds.  In your case, it fails.  There are tons of
possible reasons why it would fail: perhaps gethostname() returns a
host without a domain, or perhaps your hostname isn't registered in
your DNS.  You may be able to fix it by editing /etc/hosts.

If (as you say) the rest of the network works fine, you don't have to
worry about the two failing tests.

--Guido van Rossum (home page: http://www.python.org/~guido/)