This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: 'Make Test' error while trying to install Python 3.7.4 on Linux Mint
Type: compile error Stage: resolved
Components: Installation Versions: Python 3.8
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: Avery Uslaner, Missono Dell, zach.ware
Priority: normal Keywords:

Created on 2019-08-11 00:42 by Missono Dell, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (5)
msg349367 - (view) Author: Missono Dell (Missono Dell) Date: 2019-08-11 00:42
Ran 38 tests in 1.058s

FAILED (failures=1)
test test_pdb failed
1 test failed again:
    test_pdb

== Tests result: FAILURE then FAILURE ==

403 tests OK.

1 test failed:
    test_pdb

12 tests skipped:
    test_devpoll test_kqueue test_msilib test_ossaudiodev
    test_startfile test_tix test_tk test_ttk_guionly test_winconsoleio
    test_winreg test_winsound test_zipfile64

1 re-run test:
    test_pdb

Total duration: 6 min 5 sec
Tests result: FAILURE then FAILURE
Makefile:1076: recipe for target 'test' failed
make: *** [test] Error 2
msg349369 - (view) Author: Missono Dell (Missono Dell) Date: 2019-08-11 00:45
Ran 38 tests in 1.058s

FAILED (failures=1)
test test_pdb failed
1 test failed again:
    test_pdb

== Tests result: FAILURE then FAILURE ==

403 tests OK.

1 test failed:
    test_pdb

12 tests skipped:
    test_devpoll test_kqueue test_msilib test_ossaudiodev
    test_startfile test_tix test_tk test_ttk_guionly test_winconsoleio
    test_winreg test_winsound test_zipfile64

1 re-run test:
    test_pdb

Total duration: 6 min 5 sec
Tests result: FAILURE then FAILURE
Makefile:1076: recipe for target 'test' failed
make: *** [test] Error 2


I can't finish installing Python with sudo make install because of this error
msg361534 - (view) Author: Avery Uslaner (Avery Uslaner) Date: 2020-02-07 03:12
I'm running into the same error while attempting to compile Python 3.8.1 on Ubuntu 18.04.

The actual test failure is this:

======================================================================
FAIL: test_errors_in_command (test.test_pdb.PdbTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/opt/Python-3.8.1/Lib/test/test_pdb.py", line 1580, in test_errors_in_command
    self.assertEqual(stdout.splitlines()[1:], [
AssertionError: Lists differ: ['(Pd[283 chars]efined", 'LEAVING RECURSIVE DEBUGGER', '(Pdb) ', '\x1b[?1034h'] != ['(Pd[283 chars]efined", 'LEAVING RECURSIVE DEBUGGER', '(Pdb) ']

First list contains 1 additional elements.
First extra element 9:
'\x1b[?1034h'

  ['(Pdb) *** SyntaxError: unexpected EOF while parsing',
   '(Pdb) ENTERING RECURSIVE DEBUGGER',
   '*** SyntaxError: unexpected EOF while parsing',
   'LEAVING RECURSIVE DEBUGGER',
   '(Pdb) ENTERING RECURSIVE DEBUGGER',
   '> <string>(1)<module>()',
   "((Pdb)) *** NameError: name 'doesnotexist' is not defined",
   'LEAVING RECURSIVE DEBUGGER',
-  '(Pdb) ',
?          ^

+  '(Pdb) ']
?          ^

-  '\x1b[?1034h']

----------------------------------------------------------------------

This failure only appeared after I installed additional packages and attempted to reconfigure and reinstall. The install command I used was this:

sudo apt-get install libbz2-dev libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev
msg361537 - (view) Author: Avery Uslaner (Avery Uslaner) Date: 2020-02-07 05:57
FYI, the problem seems isolated to the libreadline-gplv2-dev package.
msg404390 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2021-10-20 03:20
I can't reproduce this on Pop_OS! 20.04 with libreadline-gplv2-dev, so I'm going to assume it's been fixed somewhere along the way.  If anyone else can still reproduce with up-to-date versions of everything involved, please post the relevant versions and steps taken to reproduce the test failure.
History
Date User Action Args
2022-04-11 14:59:19adminsetgithub: 81996
2021-10-20 03:20:13zach.waresetstatus: open -> closed

nosy: + zach.ware
messages: + msg404390

resolution: out of date
stage: resolved
2020-02-07 05:57:59Avery Uslanersetmessages: + msg361537
2020-02-07 03:12:44Avery Uslanersetnosy: + Avery Uslaner

messages: + msg361534
versions: + Python 3.8, - Python 3.7
2019-08-11 00:45:28Missono Dellsetmessages: + msg349369
title: 'Make Test' error whe trying to install Python 3.7.4 on Linux Mint -> 'Make Test' error while trying to install Python 3.7.4 on Linux Mint
2019-08-11 00:42:33Missono Dellcreate