Python Forum
cannot build python 3.8.2 (make test fails on test_imprtlib)
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
cannot build python 3.8.2 (make test fails on test_imprtlib)
#1
i downloaded python 3.8.2

https://www.python.org/downloads/

in the read me file it says :

./configure --------> success
make --------------> success
make test ---------> fails on only one test case: test_imprtlib Sad Huh

so readme file says :

So i did :

~/Python-3.8.2$ make test TESTOPTS="-v test_imprtlib"
Error:
CC='gcc -pthread' LDSHARED='gcc -pthread -shared ' OPT='-DNDEBUG -g -fwrapv -O3 -Wall' _TCLTK_INCLUDES='' _TCLTK_LIBS='' ./python -E ./setup.py build running build running build_ext INFO: Can't locate Tcl/Tk libs and/or headers INFO: Could not locate ffi libs and/or headers Python build finished successfully! The necessary bits to build these optional modules were not found: _bz2 _curses _curses_panel _dbm _gdbm _lzma _sqlite3 _tkinter _uuid readline zlib To find the necessary bits, look in setup.py in detect_modules() for the module's name. The following modules found by detect_modules() in setup.py, have been built by the Makefile instead, as configured by the Setup files: _abc atexit pwd time Failed to build these modules: _ctypes running build_scripts copying and adjusting /home/madbora/Python-3.8.2/Tools/scripts/pydoc3 -> build/scripts-3.8 copying and adjusting /home/madbora/Python-3.8.2/Tools/scripts/idle3 -> build/scripts-3.8 copying and adjusting /home/madbora/Python-3.8.2/Tools/scripts/2to3 -> build/scripts-3.8 changing mode of build/scripts-3.8/pydoc3 from 644 to 755 changing mode of build/scripts-3.8/idle3 from 644 to 755 changing mode of build/scripts-3.8/2to3 from 644 to 755 renaming build/scripts-3.8/pydoc3 to build/scripts-3.8/pydoc3.8 renaming build/scripts-3.8/idle3 to build/scripts-3.8/idle3.8 renaming build/scripts-3.8/2to3 to build/scripts-3.8/2to3-3.8 ./python ./Tools/scripts/run_tests.py -v test_imprtlib /home/madbora/Python-3.8.2/python -u -W default -bb -E -m test -r -w -j 0 -u all,-largefile,-audio,-gui -v test_imprtlib == CPython 3.8.2 (default, May 8 2020, 12:29:32) [GCC 7.5.0] == Linux-5.3.0-51-generic-x86_64-with-glibc2.27 little-endian == cwd: /home/madbora/Python-3.8.2/build/test_python_16601 == CPU count: 8 == encodings: locale=UTF-8, FS=utf-8 Using random seed 5492883 0:00:00 load avg: 0.47 Run tests in parallel using 10 child processes 0:00:00 load avg: 0.47 [1/1/1] test_imprtlib failed test test_imprtlib crashed -- Traceback (most recent call last): File "/home/madbora/Python-3.8.2/Lib/test/libregrtest/runtest.py", line 270, in _runtest_inner refleak = _runtest_inner2(ns, test_name) File "/home/madbora/Python-3.8.2/Lib/test/libregrtest/runtest.py", line 221, in _runtest_inner2 the_module = importlib.import_module(abstest) File "/home/madbora/Python-3.8.2/Lib/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 973, in _find_and_load_unlocked ModuleNotFoundError: No module named 'test.test_imprtlib' == Tests result: FAILURE == 1 test failed: test_imprtlib 0:00:00 load avg: 0.47 0:00:00 load avg: 0.47 Re-running failed tests in verbose mode 0:00:00 load avg: 0.47 Re-running test_imprtlib in verbose mode test test_imprtlib crashed -- Traceback (most recent call last): File "/home/madbora/Python-3.8.2/Lib/test/libregrtest/runtest.py", line 270, in _runtest_inner refleak = _runtest_inner2(ns, test_name) File "/home/madbora/Python-3.8.2/Lib/test/libregrtest/runtest.py", line 221, in _runtest_inner2 the_module = importlib.import_module(abstest) File "/home/madbora/Python-3.8.2/Lib/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1014, in _gcd_import File "", line 991, in _find_and_load File "", line 973, in _find_and_load_unlocked ModuleNotFoundError: No module named 'test.test_imprtlib' 1 test failed again: test_imprtlib == Tests result: FAILURE then FAILURE == 1 test failed: test_imprtlib 1 re-run test: test_imprtlib Total duration: 360 ms Tests result: FAILURE then FAILURE Makefile:1130: recipe for target 'test' failed make: *** [test] Error 2
and got this error message i don't know what to do Wall . i am also new to programing. just started university. thank you for any help. Heart
Reply
#2
This is a very difficult way to install, simple instructions here: https://python-forum.io/Thread-Part-1-Li...nvironment
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  build Python 3.12 in el7 SergeyMx 5 1,132 Oct-05-2023, 08:14 AM
Last Post: SergeyMx
  How to test the high-score in my Python-game Pluviometer 2 547 Oct-02-2023, 06:55 PM
Last Post: deanhystad
  Anaconda 2.4.2: The JupyterLab 3.5.3 fails to run the python code of the Geographical jamalnuman 0 316 Aug-23-2023, 07:48 AM
Last Post: jamalnuman
  How to test and import a model form computer to test accuracy using Sklearn library Anldra12 6 3,069 Jul-03-2021, 10:07 AM
Last Post: Anldra12
  How to make a test data file for the full length of definition? MDRI 6 3,483 Apr-16-2021, 01:47 AM
Last Post: MDRI
  How to link Sublime Text 3 Build system to Python 3.9 Using Windows 10 Fanman001 2 4,532 Mar-04-2021, 03:09 PM
Last Post: martpogs
  Embedded python fails to compile on Raspberry Pi tryfon 2 3,402 Dec-22-2020, 02:06 PM
Last Post: tryfon
  pip3 install opencv-python fails on 'skbuild' Pedroski55 2 5,623 Sep-15-2020, 11:33 AM
Last Post: snippsat
  Compiling Python 3.8.5 source code results in build error Deepan 0 2,146 Sep-14-2020, 04:11 AM
Last Post: Deepan
  hello, i was trying a testdome python test twinstars2020 10 8,097 Aug-26-2020, 07:15 AM
Last Post: twinstars2020

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020