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

guido@CNRI.Reston.VA.US guido@CNRI.Reston.VA.US
Mon, 16 Aug 1999 13:22:14 -0400 (EDT)


> Something else is going on, I built python 1.5.1 and 1.5.2 on the
> exact same machine with exact same configure statements:
> 
> Python 1.5.2 (#9, Aug 16 1999, 19:08:25)  [GCC egcs-2.91.66 19990314 (egcs-1.1.2  on linux2
> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> >>> import socket
> >>> socket.gethostbyname("cnn.com")
> Traceback (innermost last):
>   File "<stdin>", line 1, in ?
> socket.error: host not found
> >>>
> 
> Python 1.5.1 (#4, Aug 16 1999, 18:15:50)  [GCC egcs-2.91.66 19990314 (e on linux2
> Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
> >>> import socket
> >>> socket.gethostbyname("cnn.com")
> '207.25.71.12'
> >>>
> 
> gethostbyname("localhost") gives the same result, works in 1.5.1, but
> not in 1.5.2.

Hm, all this works fine on any machine I can test it on, and I haven't
heard this problem reported before.  So I speculate that somehow your
Python 1.5.2 build is broken.  I don't know how you help you any
further; perhaps you can try the newsgroup -- or just download Oliver
Andrich's RPMs...

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