>-Original Message-
>From: Python-list [email protected]> On Behalf Of Bernd Lentes via Python-list
>Sent: Friday, August 11, 2023 12:01 PM
>To: Terry Reedy
>Cc: Python ML ([email protected])
>Subject: RE: problems installing Python 3.11
Hi,
I read the readme.rst and found something helpful.
I reran explicitly the test which failed:
=
localhost:~/Python-3.11.4 # make test TESTOPTS="-v test_tools"
CC='gcc -pthread' LDSHARED='gcc -pthread -shared' OPT='-DNDEBUG -g -fwrapv
-O3 -Wall' ./python -E ./setup.py build
running build
running build_ext
The necessary bits to build these optional modules were not found:
_bz2 _curses _curses_panel
_dbm _gdbm _hashlib
_lzma _ssl _tkinter
_uuid nis readline
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 not
been built, they are *disabled* by configure:
_sqlite3
Could not build the ssl module!
Python requires a OpenSSL 1.1.1 or newer
running build_scripts
copying and adjusting /root/Python-3.11.4/Tools/scripts/pydoc3 ->
build/scripts-3.11
copying and adjusting /root/Python-3.11.4/Tools/scripts/idle3 ->
build/scripts-3.11
copying and adjusting /root/Python-3.11.4/Tools/scripts/2to3 ->
build/scripts-3.11
changing mode of build/scripts-3.11/pydoc3 from 644 to 755
changing mode of build/scripts-3.11/idle3 from 644 to 755
changing mode of build/scripts-3.11/2to3 from 644 to 755
renaming build/scripts-3.11/pydoc3 to build/scripts-3.11/pydoc3.11
renaming build/scripts-3.11/idle3 to build/scripts-3.11/idle3.11
renaming build/scripts-3.11/2to3 to build/scripts-3.11/2to3-3.11
./python -E ./Tools/scripts/run_tests.py -v test_tools
/root/Python-3.11.4/python -u -W default -bb -E -E -m test -r -w -j 0 -u
all,-largefile,-audio,-gui -v test_tools
== CPython 3.11.4 (main, Aug 11 2023, 00:05:59) [GCC 7.5.0]
== Linux-5.14.21-150500.55.12-default-x86_64-with-glibc2.31 little-endian
== cwd: /root/Python-3.11.4/build/test_python_8347æ
== CPU count: 32
== encodings: locale=UTF-8, FS=utf-8
Using random seed 9455548
0:00:00 load avg: 0.07 Run tests in parallel using 34 child processes
0:00:30 load avg: 2.51 running: test_tools (30.0 sec)
0:01:00 load avg: 2.44 running: test_tools (1 min)
0:01:30 load avg: 2.16 running: test_tools (1 min 30 sec)
0:01:40 load avg: 2.21 [1/1] test_tools passed (1 min 40 sec)
test_alter_comments (test.test_tools.test_fixcid.Test.test_alter_comments) ...
ok
test_directory (test.test_tools.test_fixcid.Test.test_directory) ... ok
test_parse_strings (test.test_tools.test_fixcid.Test.test_parse_strings) ... ok
test_freeze_simple_script
(test.test_tools.test_freeze.TestFreeze.test_freeze_simple_script) ... creating
the script to be frozen at /tmp/tmp73do0elf/app.py
copying the source tree into /tmp/tmp73do0elf/cpython...
configuring python in /tmp/tmp73do0elf/python-build...
CalledProcessError: Command '['/tmp/tmp73do0elf/cpython/python', '-c', 'import
sysconfig; print(sysconfig.get_config_var("CONFIG_ARGS"))']' returned non-zero
exit status 1.
--- STDOUT ---
--- STDERR ---
Traceback (most recent call last):
File "", line 1, in
File "/tmp/tmp73do0elf/cpython/Lib/sysconfig.py", line 715, in get_config_var
return get_config_vars().get(name)
^
File "/tmp/tmp73do0elf/cpython/Lib/sysconfig.py", line 670, in get_config_vars
_init_posix(_CONFIG_VARS)
File "/tmp/tmp73do0elf/cpython/Lib/sysconfig.py", line 531, in _init_posix
_temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
^
ModuleNotFoundError: No module named '_sysconfigdata__linux_x86_64-linux-gnu'
END
building python parallel='-j21' in /tmp/tmp73do0elf/python-build...
installing python into /tmp/tmp73do0elf/python-installation...
freezing /tmp/tmp73do0elf/app.py...
ok
test_gprof (test.test_tools.test_gprof2html.Gprof2htmlTests.test_gprof) ... ok
test_POT_Creation_Date
(test.test_tools.test_i18n.Test_pygettext.test_POT_Creation_Date)
Match the date format from xgettext for POT-Creation-Date ... ok
test_calls_in_fstring_with_keyword_args
(test.test_tools.test_i18n.Test_pygettext.test_calls_in_fstring_with_keyword_args)
... ok
test_calls_in_fstring_with_multiple_args
(test.test_tools.test_i18n.Test_pygettext.test_calls_in_fstring_with_multiple_args)
... ok
test_calls_in_fstring_with_partially_wrong_expression
(test.test_tools.test_i18n.Test_pygettext.test_calls_in_fstring_with_partially_wrong_expression)
... ok
test_calls_in_fstrings
(test.test_tools.test_i18n.Test_pygettext.test_calls_in_fstrings) ... ok
test_calls_in_fstrings_attribute
(test.test_tools.test_i18n.Test_pygettext.test_calls_in_fstrings_attribute) ...
ok
test_cal