Make test failed issues for phyton 3.2 on centos5.5
Hello phython team,
I am new to install phyton on Centos5.5
Hope you can help on this issues below when I make test
5 tests failed:
test_argparse test_distutils test_httpservers test_import
test_zipfile
31 tests skipped:
test_bz2 test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp
test_codecmaps_kr test_codecmaps_tw test_curses test_dbm_gnu
test_dbm_ndbm test_gdb test_gzip test_kqueue test_ossaudiodev
test_readline test_smtpnet test_socketserver test_sqlite test_ssl
test_startfile test_tcl test_timeout test_tk test_ttk_guionly
test_ttk_textonly test_urllib2net test_urllibnet test_winreg
test_winsound test_xmlrpc_net test_zipfile64 test_zlib
11 skips unexpected on linux2:
test_bz2 test_dbm_gnu test_dbm_ndbm test_gzip test_readline
test_ssl test_tcl test_tk test_ttk_guionly test_ttk_textonly
test_zlib
I will post the shortest failed test('test_zip') and if you all allowed me
post full log of the 5 failed test I will do it.
== CPython 3.2 (r32:88445, Apr 10 2011, 11:18:27) [GCC 4.1.2 20080704 (Red
Hat 4.1.2-50)]
== Linux-2.6.18-238.5.1.el5-i686-athlon-with-redhat-5.6-Final
little-endian
== /tmp/Python-3.2/build/test_python_6187
Testing with flags: sys.flags(debug=0, division_warning=0, inspect=0,
interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0,
ignore_environment=0, verbose=0, bytes_warning=0, quiet=0)
[1/1] test_zipfiles
test test_zipfiles crashed --
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 04/10/2011 08:00 PM, Stephen Yeng wrote:
11 skips unexpected on linux2: test_bz2 test_dbm_gnu test_dbm_ndbm test_gzip test_readline test_ssl test_tcl test_tk test_ttk_guionly test_ttk_textonly test_zlib
Looks like you are missing a bunch of development headers on the system (at the time Python's 'configure' was run). E.g., on a Debian system, $ sudo apt-get install zlib1g-dev libbz-dev libreadline-dev # etc Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tseaver@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2i7OIACgkQ+gerLs4ltQ7M5gCg2gCd73Z1Iz5d3q21RvqqlmAY EisAoLevZfn1euG20tODfUgDFZUkNDrg =gJIN -----END PGP SIGNATURE-----
Hello,
Thanks for the reply.
This the once of the test I fail, hope you can help so I can fix the rest 4
errors. :)
----------------------------------------------------------------------
Ran 90 tests in 9.191s
FAILED (errors=1, skipped=25)
test test_zipfile failed -- Traceback (most recent call last):
File "/tmp/Python-3.2/Lib/test/test_zipfile.py", line 497, in
test_unicode_filenames
zipfp.open(name).close()
File "/tmp/Python-3.2/Lib/zipfile.py", line 978, in open
close_fileobj=not self._filePassed)
File "/tmp/Python-3.2/Lib/zipfile.py", line 487, in __init__
self._decompressor = zlib.decompressobj(-15)
AttributeError: 'NoneType' object has no attribute 'decompressobj'
1 test failed:
test_zipfile
On Mon, Apr 11, 2011 at 4:14 PM, Victor Stinner
[1/1] test_zipfiles test test_zipfiles crashed --
: No module named test_zipfiles It means that you don't have a module named test_zipfiles. Retry with "test_zipfile" :-)
You may open an issue (including details) for your failures.
Victor
-- If you have any other question about your web portal please contact me. At N-Pinokyo we value our customers and will be more than happy to assist you with any other matter related to our service. Regards, Stephen Yeng
Hello,
On Mon, 11 Apr 2011 22:43:03 +0800
Stephen Yeng
Hello, Thanks for the reply. This the once of the test I fail, hope you can help so I can fix the rest 4 errors. :)
Please open an issue for each of these failures on http://bugs.python.org Bug reports on the mailing-list typically get lost. Regards Antoine.
On Mon, 2011-04-11 at 07:58 -0400, Tres Seaver wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 04/10/2011 08:00 PM, Stephen Yeng wrote:
11 skips unexpected on linux2: test_bz2 test_dbm_gnu test_dbm_ndbm test_gzip test_readline test_ssl test_tcl test_tk test_ttk_guionly test_ttk_textonly test_zlib
Looks like you are missing a bunch of development headers on the system (at the time Python's 'configure' was run). E.g., on a Debian system,
$ sudo apt-get install zlib1g-dev libbz-dev libreadline-dev # etc
On RHEL 5 (and therefore presumably CentOS), the corresponding command looks something like this: sudo yum install \ readline-devel openssl-devel gmp-devel \ ncurses-devel gdbm-devel zlib-devel expat-devel \ libGL-devel tk tix gcc-c++ libX11-devel glibc-devel \ bzip2 tar findutils pkgconfig tcl-devel tk-devel \ tix-devel bzip2-devel sqlite-devel \ db4-devel \ libffi-devel You'll want to rerun "configure" after installing these dependencies. FWIW neither the devguide nor http://docs.python.org/using/unix.html#building-python seems to have a handy guide to how to install all useful build-time deps on various distros. I added something similar for PyPy here: http://codespeak.net/pypy/dist/pypy/doc/getting-started-python.html#translat... at the PyCon sprint. Hope this is helpful Dave
participants (5)
-
Antoine Pitrou
-
David Malcolm
-
Stephen Yeng
-
Tres Seaver
-
Victor Stinner