Hi All, I just downloaded and compiled Python 2.6 on a Gentoo Linux, IBM NetVista.
After going through the usual steps (./configure, make), I ran a test (make test), and got some unexpected issues, which are detailed here: # ./python Lib/test/test_tcl.py Traceback (most recent call last): File "Lib/test/test_tcl.py", line 6, in <module> from Tkinter import Tcl File "/install/Python-2.6.1/Lib/lib-tk/Tkinter.py", line 39, in <module> import _tkinter # If this fails your Python may not be configured for Tk # ./python Lib/test/test_dbm.py Traceback (most recent call last): File "Lib/test/test_dbm.py", line 3, in <module> import dbm ImportError: No module named dbm # ./python Lib/test/test_multiprocessing.py Traceback (most recent call last): File "Lib/test/test_multiprocessing.py", line 1825, in <module> main() File "Lib/test/test_multiprocessing.py", line 1822, in main test_main(unittest.TextTestRunner(verbosity=2).run) File "Lib/test/test_multiprocessing.py", line 1788, in test_main raise TestSkipped("OSError raises on RLock creation, see issue 3111!") test.test_support.TestSkipped: OSError raises on RLock creation, see issue 3111! What is issue 3111? Couldn't find any reference to it. Two more: # ./python Lib/test/test_httpservers.py test_command (__main__.BaseHTTPServerTestCase) ... ok test_handler (__main__.BaseHTTPServerTestCase) ... ok test_head_keep_alive (__main__.BaseHTTPServerTestCase) ... ok test_header_close (__main__.BaseHTTPServerTestCase) ... ok test_internal_key_error (__main__.BaseHTTPServerTestCase) ... ok test_request_line_trimming (__main__.BaseHTTPServerTestCase) ... ok test_return_custom_status (__main__.BaseHTTPServerTestCase) ... ok test_return_header_keep_alive (__main__.BaseHTTPServerTestCase) ... ok test_send_blank (__main__.BaseHTTPServerTestCase) ... ok test_version_bogus (__main__.BaseHTTPServerTestCase) ... ok test_version_digits (__main__.BaseHTTPServerTestCase) ... ok test_version_invalid (__main__.BaseHTTPServerTestCase) ... ok test_version_none (__main__.BaseHTTPServerTestCase) ... ok test_version_none_get (__main__.BaseHTTPServerTestCase) ... ok test_get (__main__.SimpleHTTPServerTestCase) ... FAIL test_head (__main__.SimpleHTTPServerTestCase) ... ok test_invalid_requests (__main__.SimpleHTTPServerTestCase) ... ok test_authorization (__main__.CGIHTTPServerTestCase) ... FAIL test_headers_and_content (__main__.CGIHTTPServerTestCase) ... FAIL test_invaliduri (__main__.CGIHTTPServerTestCase) ... ok test_post (__main__.CGIHTTPServerTestCase) ... FAIL ====================================================================== FAIL: test_get (__main__.SimpleHTTPServerTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "Lib/test/test_httpservers.py", line 243, in test_get self.check_status_and_reason(response, 404) File "Lib/test/test_httpservers.py", line 219, in check_status_and_reason self.assertEquals(response.status, status) AssertionError: 200 != 404 ====================================================================== FAIL: test_authorization (__main__.CGIHTTPServerTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "Lib/test/test_httpservers.py", line 340, in test_authorization (res.read(), res.getheader('Content-type'), res.status)) AssertionError: ('Hello World\n', 'text/html', 200) != ('', None, 200) ====================================================================== FAIL: test_headers_and_content (__main__.CGIHTTPServerTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "Lib/test/test_httpservers.py", line 321, in test_headers_and_content (res.read(), res.getheader('Content-type'), res.status)) AssertionError: ('Hello World\n', 'text/html', 200) != ('', None, 200) ====================================================================== FAIL: test_post (__main__.CGIHTTPServerTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "Lib/test/test_httpservers.py", line 328, in test_post self.assertEquals(res.read(), '1, python, 123456\n') AssertionError: '' != '1, python, 123456\n' ---------------------------------------------------------------------- Ran 21 tests in 3.149s FAILED (failures=4) # ./python Lib/test/test_socket.py testCrucialConstants (__main__.GeneralModuleTests) ... ok testDefaultTimeout (__main__.GeneralModuleTests) ... ok testGetServBy (__main__.GeneralModuleTests) ... ok testGetSockOpt (__main__.GeneralModuleTests) ... ok testHostnameRes (__main__.GeneralModuleTests) ... ok testIPv4toString (__main__.GeneralModuleTests) ... ok testIPv6toString (__main__.GeneralModuleTests) ... ok testInterpreterCrash (__main__.GeneralModuleTests) ... ok testNewAttributes (__main__.GeneralModuleTests) ... ok testNtoH (__main__.GeneralModuleTests) ... ok testNtoHErrors (__main__.GeneralModuleTests) ... ok testRefCountGetNameInfo (__main__.GeneralModuleTests) ... ok testSendAfterClose (__main__.GeneralModuleTests) ... ok testSetSockOpt (__main__.GeneralModuleTests) ... ok testSockName (__main__.GeneralModuleTests) ... ERROR testSocketError (__main__.GeneralModuleTests) ... ok testStringToIPv4 (__main__.GeneralModuleTests) ... ok testStringToIPv6 (__main__.GeneralModuleTests) ... ok test_sock_ioctl (__main__.GeneralModuleTests) ... ok test_weakref (__main__.GeneralModuleTests) ... ok testFromFd (__main__.BasicTCPTest) ... ok testOverFlowRecv (__main__.BasicTCPTest) ... ok testOverFlowRecvFrom (__main__.BasicTCPTest) ... ok testRecv (__main__.BasicTCPTest) ... ok testRecvFrom (__main__.BasicTCPTest) ... ok testSendAll (__main__.BasicTCPTest) ... ok testShutdown (__main__.BasicTCPTest) ... ok testClose (__main__.TCPCloserTest) ... ok testInterruptedTimeout (__main__.TCPTimeoutTest) ... ok testTCPTimeout (__main__.TCPTimeoutTest) ... ok testTimeoutZero (__main__.TCPTimeoutTest) ... ok testExceptionTree (__main__.TestExceptions) ... ok testRecvFromInto (__main__.BufferIOTest) ... ok testRecvInto (__main__.BufferIOTest) ... ok testFromFd (__main__.BasicTCPTest2) ... ok testOverFlowRecv (__main__.BasicTCPTest2) ... ok testOverFlowRecvFrom (__main__.BasicTCPTest2) ... ok testRecv (__main__.BasicTCPTest2) ... ok testRecvFrom (__main__.BasicTCPTest2) ... ok testSendAll (__main__.BasicTCPTest2) ... ok testShutdown (__main__.BasicTCPTest2) ... ok testRecvFrom (__main__.BasicUDPTest) ... ok testRecvFromNegative (__main__.BasicUDPTest) ... ok testSendtoAndRecv (__main__.BasicUDPTest) ... ok testTimeoutZero (__main__.UDPTimeoutTest) ... ok testUDPTimeout (__main__.UDPTimeoutTest) ... ok testAccept (__main__.NonBlockingTCPTests) ... ok testConnect (__main__.NonBlockingTCPTests) ... ok testRecv (__main__.NonBlockingTCPTests) ... ok testSetBlocking (__main__.NonBlockingTCPTests) ... ok testClosedAttr (__main__.FileObjectClassTestCase) ... ok testFullRead (__main__.FileObjectClassTestCase) ... ok testReadline (__main__.FileObjectClassTestCase) ... ok testReadlineAfterRead (__main__.FileObjectClassTestCase) ... ok testReadlineAfterReadNoNewline (__main__.FileObjectClassTestCase) ... ok testSmallRead (__main__.FileObjectClassTestCase) ... ok testUnbufferedRead (__main__.FileObjectClassTestCase) ... ok testClosedAttr (__main__.UnbufferedFileObjectClassTestCase) ... ok testFullRead (__main__.UnbufferedFileObjectClassTestCase) ... ok testReadline (__main__.UnbufferedFileObjectClassTestCase) ... ok testReadlineAfterRead (__main__.UnbufferedFileObjectClassTestCase) ... ok testReadlineAfterReadNoNewline (__main__.UnbufferedFileObjectClassTestCase) ... ok testSmallRead (__main__.UnbufferedFileObjectClassTestCase) ... ok testUnbufferedRead (__main__.UnbufferedFileObjectClassTestCase) ... ok testUnbufferedReadline (__main__.UnbufferedFileObjectClassTestCase) ... ok testClosedAttr (__main__.LineBufferedFileObjectClassTestCase) ... ok testFullRead (__main__.LineBufferedFileObjectClassTestCase) ... ok testReadline (__main__.LineBufferedFileObjectClassTestCase) ... ok testReadlineAfterRead (__main__.LineBufferedFileObjectClassTestCase) ... ok testReadlineAfterReadNoNewline (__main__.LineBufferedFileObjectClassTestCase) ... ok testSmallRead (__main__.LineBufferedFileObjectClassTestCase) ... ok testUnbufferedRead (__main__.LineBufferedFileObjectClassTestCase) ... ok testClosedAttr (__main__.SmallBufferedFileObjectClassTestCase) ... ok testFullRead (__main__.SmallBufferedFileObjectClassTestCase) ... ok testReadline (__main__.SmallBufferedFileObjectClassTestCase) ... ok testReadlineAfterRead (__main__.SmallBufferedFileObjectClassTestCase) ... ok testReadlineAfterReadNoNewline (__main__.SmallBufferedFileObjectClassTestCase) ... ok testSmallRead (__main__.SmallBufferedFileObjectClassTestCase) ... ok testUnbufferedRead (__main__.SmallBufferedFileObjectClassTestCase) ... ok testClose (__main__.Urllib2FileobjectTest) ... ok testWithoutServer (__main__.NetworkConnectionNoServer) ... ok testFamily (__main__.NetworkConnectionAttributesTest) ... ok testTimeoutDefault (__main__.NetworkConnectionAttributesTest) ... ok testTimeoutNone (__main__.NetworkConnectionAttributesTest) ... ok testTimeoutValueNamed (__main__.NetworkConnectionAttributesTest) ... ok testTimeoutValueNonamed (__main__.NetworkConnectionAttributesTest) ... ok testInsideTimeout (__main__.NetworkConnectionBehaviourTest) ... ok testOutsideTimeout (__main__.NetworkConnectionBehaviourTest) ... ok testRecv (__main__.BasicSocketPairTest) ... ok testSend (__main__.BasicSocketPairTest) ... ok testLinuxAbstractNamespace (__main__.TestLinuxAbstractNamespace) ... ok testMaxName (__main__.TestLinuxAbstractNamespace) ... ok testNameOverflow (__main__.TestLinuxAbstractNamespace) ... ok ====================================================================== ERROR: testSockName (__main__.GeneralModuleTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "Lib/test/test_socket.py", line 474, in testSockName my_ip_addr = socket.gethostbyname(socket.gethostname()) gaierror: [Errno -2] Name or service not known ---------------------------------------------------------------------- Ran 93 tests in 11.488s FAILED (errors=1) Anybody has a quick fix? Thanks for your advise, SxN __________________________________________________________________ Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/ -- http://mail.python.org/mailman/listinfo/python-list