Python3.4.3 installation: 3 tests failed, 3 runtime changed and 25 skipped

I am using Lubuntu 14.04 as a guest OS (using VMplayer). I wanted to install python3.4.3. I downloaded the .tar.xz file from here: https://www.python.org/downloads/

Then I extracted the file and followed the instructions in README:

./configure make make test 

When i started

 make test 

he returned it:

 359 tests OK. 3 tests failed: test_urllib test_urllib2 test_urllib2net 3 tests altered the execution environment: test___all__ test_site test_warnings 25 tests skipped: test_bz2 test_curses test_dbm_gnu test_dbm_ndbm test_devpoll test_gdb test_gzip test_idle test_kqueue test_lzma test_msilib test_ossaudiodev test_readline test_smtpnet test_sqlite test_ssl test_startfile test_tcl test_tk test_ttk_guionly test_ttk_textonly test_winreg test_winsound test_zipfile64 test_zlib Re-running failed tests in verbose mode Re-running test 'test_urllib' in verbose mode test test_urllib crashed -- Traceback (most recent call last): File "/home/ayman/Downloads/python3.4.3/Python-3.4.3/Lib/test/regrtest.py", line 1271, in runtest_inner the_module = importlib.import_module(abstest) File "/home/ayman/Downloads/python3.4.3/Python-3.4.3/Lib/importlib/__init__.py", line 109, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 2254, in _gcd_import File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/home/ayman/Downloads/python3.4.3/Python-3.4.3/Lib/test/test_urllib.py", line 13, in <module> import ssl File "/home/ayman/Downloads/python3.4.3/Python-3.4.3/Lib/ssl.py", line 97, in <module> import _ssl # if we can't import it, let the error propagate ImportError: No module named '_ssl' Re-running test 'test_urllib2' in verbose mode test test_urllib2 crashed -- Traceback (most recent call last): File "/home/ayman/Downloads/python3.4.3/Python-3.4.3/Lib/test/regrtest.py", line 1271, in runtest_inner the_module = importlib.import_module(abstest) File "/home/ayman/Downloads/python3.4.3/Python-3.4.3/Lib/importlib/__init__.py", line 109, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 2254, in _gcd_import File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/home/ayman/Downloads/python3.4.3/Python-3.4.3/Lib/test/test_urllib2.py", line 3, in <module> from test import test_urllib File "/home/ayman/Downloads/python3.4.3/Python-3.4.3/Lib/test/test_urllib.py", line 13, in <module> import ssl File "/home/ayman/Downloads/python3.4.3/Python-3.4.3/Lib/ssl.py", line 97, in <module> import _ssl # if we can't import it, let the error propagate ImportError: No module named '_ssl' Re-running test 'test_urllib2net' in verbose mode test test_urllib2net crashed -- Traceback (most recent call last): File "/home/ayman/Downloads/python3.4.3/Python-3.4.3/Lib/test/regrtest.py", line 1271, in runtest_inner the_module = importlib.import_module(abstest) File "/home/ayman/Downloads/python3.4.3/Python-3.4.3/Lib/importlib/__init__.py", line 109, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 2254, in _gcd_import File "<frozen importlib._bootstrap>", line 2237, in _find_and_load File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked File "<frozen importlib._bootstrap>", line 1129, in _exec File "<frozen importlib._bootstrap>", line 1471, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "/home/ayman/Downloads/python3.4.3/Python-3.4.3/Lib/test/test_urllib2net.py", line 3, in <module> from test.test_urllib2 import sanepathname2url File "/home/ayman/Downloads/python3.4.3/Python-3.4.3/Lib/test/test_urllib2.py", line 3, in <module> from test import test_urllib File "/home/ayman/Downloads/python3.4.3/Python-3.4.3/Lib/test/test_urllib.py", line 13, in <module> import ssl File "/home/ayman/Downloads/python3.4.3/Python-3.4.3/Lib/ssl.py", line 97, in <module> import _ssl # if we can't import it, let the error propagate ImportError: No module named '_ssl' make: *** [test] Error 1 

I'm not sure if these failed / missed tests affected me in the end after installing Python3.4.3 with

 sudo make install 

Should I worry about this failed / missed test? If so, is there any idea on how to fix these problems?

+2
source share
1 answer

It seems that you compiled Python without ssl or zlib support. This is the reason why some tests failed and some were skipped.

You can check How to compile Python 2.4.6 using ssl, readline and zlib in Debian Lenny and No modules were found with the name zlib .

+1
source

Source: https://habr.com/ru/post/986026/


All Articles