Some test fail on my new Python 2.6

Sorin Schwimmer sxn02 at yahoo.com
Tue Apr 7 23:42:18 EDT 2009


I wanted to replace my old Python 2.4 and tcl/tk 8.4 with tcl/tk 8.5.6 and Python 2.6, mainly so that I can enjoy ttk. tcl/tk was installed from sources without any problem, I started a wish and worked.

Now, for the Python, here are all the issues signaled by make test:

running build
running build_ext
building 'dbm' extension
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DHAVE_GDBM_NDBM_H -I. -I/install/Python-2.6.1/./Include -I. -IInclude -I./Include -I/usr/local/include -I/install/Python-2.6.1/Include -I/install/Python-2.6.1 -c /install/Python-2.6.1/Modules/dbmmodule.c -o build/temp.linux-i686-2.6/install/Python-2.6.1/Modules/dbmmodule.o
gcc -pthread -shared build/temp.linux-i686-2.6/install/Python-2.6.1/Modules/dbmmodule.o -L/usr/local/lib -lgdbm -o build/lib.linux-i686-2.6/dbm.so
*** WARNING: renaming "dbm" since importing it failed: build/lib.linux-i686-2.6/dbm.so: undefined symbol: dbm_firstkey
building '_tkinter' extension
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DWITH_APPINIT=1 -DWITH_BLT=1 -I/usr/X11R6/include -I. -I/install/Python-2.6.1/./Include -I. -IInclude -I./Include -I/usr/local/include -I/install/Python-2.6.1/Include -I/install/Python-2.6.1 -c /install/Python-2.6.1/Modules/_tkinter.c -o build/temp.linux-i686-2.6/install/Python-2.6.1/Modules/_tkinter.o
gcc -pthread -fPIC -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -DWITH_APPINIT=1 -DWITH_BLT=1 -I/usr/X11R6/include -I. -I/install/Python-2.6.1/./Include -I. -IInclude -I./Include -I/usr/local/include -I/install/Python-2.6.1/Include -I/install/Python-2.6.1 -c /install/Python-2.6.1/Modules/tkappinit.c -o build/temp.linux-i686-2.6/install/Python-2.6.1/Modules/tkappinit.o
gcc -pthread -shared build/temp.linux-i686-2.6/install/Python-2.6.1/Modules/_tkinter.o build/temp.linux-i686-2.6/install/Python-2.6.1/Modules/tkappinit.o -L/usr/X11R6/lib64 -L/usr/X11R6/lib -L/usr/local/lib -lBLT -ltk8.5 -ltcl8.5 -lX11 -o build/lib.linux-i686-2.6/_tkinter.so
*** WARNING: renaming "_tkinter" since importing it failed: libtk8.5.so: cannot open shared object file: No such file or directory

Failed to find the necessary bits to build these modules:
_sqlite3           bsddb185           sunaudiodev
To find the necessary bits, look in setup.py in detect_modules() for the module's name.


Failed to build these modules:
_tkinter           dbm

running build_scripts
find ./Lib -name '*.py[co]' -print | xargs rm -f
./python -E -tt ./Lib/test/regrtest.py -l
test_aepack
test_aepack skipped -- No module named aepack
test_al
test_al skipped -- No module named al
test_applesingle
test_applesingle skipped -- No module named macostools
test_bsddb185
test_bsddb185 skipped -- No module named bsddb185
test_bsddb3
test_bsddb3 skipped -- Use of the `bsddb' resource not enabled
test_cd
test_cd skipped -- No module named cd
test_cl
test_cl skipped -- No module named cl
test_codecmaps_cn
test_codecmaps_cn skipped -- Use of the `urlfetch' resource not enabled
test_codecmaps_hk
test_codecmaps_hk skipped -- Use of the `urlfetch' resource not enabled
test_codecmaps_jp
test_codecmaps_jp skipped -- Use of the `urlfetch' resource not enabled
test_codecmaps_kr
test_codecmaps_kr skipped -- Use of the `urlfetch' resource not enabled
test_codecmaps_tw
test_codecmaps_tw skipped -- Use of the `urlfetch' resource not enabled
test_curses
test_curses skipped -- Use of the `curses' resource not enabled
test_dbm
test_dbm skipped -- No module named dbm
test_gl
test_gl skipped -- No module named gl
test_httpservers
test test_httpservers failed -- errors occurred; run in verbose mode for details
test_imgfile
test_imgfile skipped -- No module named imgfile
test_kqueue
test_kqueue skipped -- test works only on BSD
test_linuxaudiodev
test_linuxaudiodev skipped -- Use of the `audio' resource not enabled
test_macos
test_macos skipped -- No module named MacOS
test_macostools
test_macostools skipped -- No module named macostools
test_multiprocessing
test_multiprocessing skipped -- OSError raises on RLock creation, see issue 3111!
test_normalization
test_normalization skipped -- Use of the `urlfetch' resource not enabled
test_ossaudiodev
test_ossaudiodev skipped -- Use of the `audio' resource not enabled
test_pep277
test_pep277 skipped -- test works only on NT+
test_py3kwarn
test_py3kwarn skipped -- test.test_py3kwarn must be run with the -3 flag
test_scriptpackages
test_scriptpackages skipped -- No module named aetools
test_socket
test test_socket failed -- Traceback (most recent call last):
  File "/install/Python-2.6.1/Lib/test/test_socket.py", line 474, in testSockName
    my_ip_addr = socket.gethostbyname(socket.gethostname())
gaierror: [Errno -2] Name or service not known

test_socketserver
test_socketserver skipped -- Use of the `network' resource not enabled
test_sqlite
test_sqlite skipped -- no sqlite available
test_startfile
test_startfile skipped -- cannot import name startfile
test_sunaudiodev
test_sunaudiodev skipped -- No module named sunaudiodev
test_sys
test test_sys failed -- Traceback (most recent call last):
  File "/install/Python-2.6.1/Lib/test/test_sys.py", line 354, in test_43581
    self.assert_(sys.__stdout__.encoding == sys.__stderr__.encoding)
AssertionError
test_tcl
test_tcl skipped -- No module named _tkinter
test_timeout
test_timeout skipped -- Use of the `network' resource not enabled
test_unicode_file
test_unicode_file skipped -- No Unicode filesystem semantics on this platform.
test_urllib2net
test_urllib2net skipped -- Use of the `network' resource not enabled
test_urllibnet
test_urllibnet skipped -- Use of the `network' resource not enabled
test_uuid
    WARNING: uuid.getnode is unreliable on many platforms.
        It is disabled until the code and/or test can be fixed properly.
    WARNING: uuid._ifconfig_getnode is unreliable on many platforms.
        It is disabled until the code and/or test can be fixed properly.
    WARNING: uuid._unixdll_getnode is unreliable on many platforms.
        It is disabled until the code and/or test can be fixed properly.
test_winreg
test_winreg skipped -- No module named _winreg
test_winsound
test_winsound skipped -- No module named winsound
test_zipfile64
test_zipfile64 skipped -- test requires loads of disk-space bytes and a long time to run
320 tests OK.
3 tests failed:
    test_httpservers test_socket test_sys
38 tests skipped:
    test_aepack test_al test_applesingle test_bsddb185 test_bsddb3
    test_cd test_cl test_codecmaps_cn test_codecmaps_hk
    test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses
    test_dbm test_gl test_imgfile test_kqueue test_linuxaudiodev
    test_macos test_macostools test_multiprocessing test_normalization
    test_ossaudiodev test_pep277 test_py3kwarn test_scriptpackages
    test_socketserver test_sqlite test_startfile test_sunaudiodev
    test_tcl test_timeout test_unicode_file test_urllib2net
    test_urllibnet test_winreg test_winsound test_zipfile64
3 skips unexpected on linux2:
    test_tcl test_dbm test_multiprocessing
./python -E -tt ./Lib/test/regrtest.py -l
test_aepack
test_aepack skipped -- No module named aepack
test_al
test_al skipped -- No module named al
test_applesingle
test_applesingle skipped -- No module named macostools
test_bsddb185
test_bsddb185 skipped -- No module named bsddb185
test_bsddb3
test_bsddb3 skipped -- Use of the `bsddb' resource not enabled
test_cd
test_cd skipped -- No module named cd
test_cl
test_cl skipped -- No module named cl
test_codecmaps_cn
test_codecmaps_cn skipped -- Use of the `urlfetch' resource not enabled
test_codecmaps_hk
test_codecmaps_hk skipped -- Use of the `urlfetch' resource not enabled
test_codecmaps_jp
test_codecmaps_jp skipped -- Use of the `urlfetch' resource not enabled
test_codecmaps_kr
test_codecmaps_kr skipped -- Use of the `urlfetch' resource not enabled
test_codecmaps_tw
test_codecmaps_tw skipped -- Use of the `urlfetch' resource not enabled
test_curses
test_curses skipped -- Use of the `curses' resource not enabled
test_dbm
test_dbm skipped -- No module named dbm
test_gl
test_gl skipped -- No module named gl
test_httpservers
test test_httpservers failed -- errors occurred; run in verbose mode for details
test_imgfile
test_imgfile skipped -- No module named imgfile
test_kqueue
test_kqueue skipped -- test works only on BSD
test_linuxaudiodev
test_linuxaudiodev skipped -- Use of the `audio' resource not enabled
test_macos
test_macos skipped -- No module named MacOS
test_macostools
test_macostools skipped -- No module named macostools
test_multiprocessing
test_multiprocessing skipped -- OSError raises on RLock creation, see issue 3111!
test_normalization
test_normalization skipped -- Use of the `urlfetch' resource not enabled
test_ossaudiodev
test_ossaudiodev skipped -- Use of the `audio' resource not enabled
test_pep277
test_pep277 skipped -- test works only on NT+
test_py3kwarn
test_py3kwarn skipped -- test.test_py3kwarn must be run with the -3 flag
test_scriptpackages
test_scriptpackages skipped -- No module named aetools
test_socket
test test_socket failed -- Traceback (most recent call last):
  File "/install/Python-2.6.1/Lib/test/test_socket.py", line 474, in testSockName
    my_ip_addr = socket.gethostbyname(socket.gethostname())
gaierror: [Errno -2] Name or service not known

test_socketserver
test_socketserver skipped -- Use of the `network' resource not enabled
test_sqlite
test_sqlite skipped -- no sqlite available
test_startfile
test_startfile skipped -- cannot import name startfile
test_sunaudiodev
test_sunaudiodev skipped -- No module named sunaudiodev
test_sys
test test_sys failed -- Traceback (most recent call last):
  File "/install/Python-2.6.1/Lib/test/test_sys.py", line 354, in test_43581
    self.assert_(sys.__stdout__.encoding == sys.__stderr__.encoding)
AssertionError
test_tcl
test_tcl skipped -- No module named _tkinter
test_timeout
test_timeout skipped -- Use of the `network' resource not enabled
test_unicode_file
test_unicode_file skipped -- No Unicode filesystem semantics on this platform.
test_urllib2net
test_urllib2net skipped -- Use of the `network' resource not enabled
test_urllibnet
test_urllibnet skipped -- Use of the `network' resource not enabled
test_uuid
    WARNING: uuid.getnode is unreliable on many platforms.
        It is disabled until the code and/or test can be fixed properly.
    WARNING: uuid._ifconfig_getnode is unreliable on many platforms.
        It is disabled until the code and/or test can be fixed properly.
    WARNING: uuid._unixdll_getnode is unreliable on many platforms.
        It is disabled until the code and/or test can be fixed properly.
test_winreg
test_winreg skipped -- No module named _winreg
test_winsound
test_winsound skipped -- No module named winsound
test_zipfile64
test_zipfile64 skipped -- test requires loads of disk-space bytes and a long time to run
320 tests OK.
3 tests failed:
    test_httpservers test_socket test_sys
38 tests skipped:
    test_aepack test_al test_applesingle test_bsddb185 test_bsddb3
    test_cd test_cl test_codecmaps_cn test_codecmaps_hk
    test_codecmaps_jp test_codecmaps_kr test_codecmaps_tw test_curses
    test_dbm test_gl test_imgfile test_kqueue test_linuxaudiodev
    test_macos test_macostools test_multiprocessing test_normalization
    test_ossaudiodev test_pep277 test_py3kwarn test_scriptpackages
    test_socketserver test_sqlite test_startfile test_sunaudiodev
    test_tcl test_timeout test_unicode_file test_urllib2net
    test_urllibnet test_winreg test_winsound test_zipfile64
3 skips unexpected on linux2:
    test_tcl test_dbm test_multiprocessing

SxN


      __________________________________________________________________
Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/



More information about the Python-list mailing list