newbie needs help building Python 2.5 for Fedora Core 6
Tony Nelson
*firstname*nlsnews at georgea*lastname*.com
Sat Feb 24 18:13:14 EST 2007
In article <1172355934.549788.59820 at a75g2000cwd.googlegroups.com>,
"bobmon" <bobmon at gmail.com> wrote:
> Hello, and please be gentle...
>
> I'm trying to build Python 2.5 on my Fedora Core 6 installation. I
> think I've resolved most of my problems, but "make test" reports an
> error for test_socket.py, shown below.
>
> I suppose my FC6 installation is missing something, but I have no idea
> what. Any ideas, directions, pointers would be most appreciated.
>
>
>
> ======================================================================
> ERROR: testSockName (__main__.GeneralModuleTests)
>
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "./Lib/test/test_socket.py", line 456, in testSockName
> my_ip_addr = socket.gethostbyname(socket.gethostname())
> gaierror: (-2, 'Name or service not known')
>
>
> ----------------------------------------------------------------------
> Ran 66 tests in 35.478s
>
> FAILED (errors=1)
> Traceback (most recent call last):
> File "./Lib/test/test_socket.py", line 962, in <module>
> test_main()
> File "./Lib/test/test_socket.py", line 958, in test_main
> test_support.run_unittest(*tests)
> File "/home/Installer/Python/Python-2.5/Lib/test/test_support.py",
> line 441, in run_uni
> ttest
> run_suite(suite, testclass)
> File "/home/Installer/Python/Python-2.5/Lib/test/test_support.py",
> line 426, in run_sui
> te
> raise TestFailed(err)
> test.test_support.TestFailed: Traceback (most recent call last):
> File "./Lib/test/test_socket.py", line 456, in testSockName
> my_ip_addr = socket.gethostbyname(socket.gethostname())
> gaierror: (-2, 'Name or service not known')
OK, so this fails:
my_ip_addr = socket.gethostbyname(socket.gethostname())
Try it from the python command line. This is what happens when I try it
on FC6 w/ Python 2.5 (retyped, tho):
>>> import socket
>>> socket.gethostname()
'localhost.localdomain'
>>> socket.gethostbyname(_)
'127.0.0.1'
>>>
________________________________________________________________________
TonyN.:' *firstname*nlsnews at georgea*lastname*.com
' <http://www.georgeanelson.com/>
More information about the Python-list
mailing list