problems installing Python 3.11

Bernd Lentes bernd.lentes at helmholtz-muenchen.de
Thu Aug 10 15:28:20 EDT 2023


Hi ML,

i hope this is the right place for my question. If not please tell me where I can ask.

I tried to install python 3.11.4 on a SLES 15 SP5.
./configure ran fine, just one package missing. Installed the package, configure ran fine with complaints.
make was ok, make test not.
This is what I got to the end:
===================================================================================================================================
===============================================================
ERROR: test_build_cpp11 (test.test_cppext.TestCPPExt.test_build_cpp11)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/Python-3.11.4/Lib/test/test_cppext.py", line 21, in test_build_cpp11
    self.check_build(False, '_testcpp11ext')
  File "/root/Python-3.11.4/Lib/test/test_cppext.py", line 39, in check_build
    self._check_build(std_cpp03, extension_name)
  File "/root/Python-3.11.4/Lib/test/test_cppext.py", line 80, in _check_build
    run_cmd('Build', cmd)
  File "/root/Python-3.11.4/Lib/test/test_cppext.py", line 64, in run_cmd
    subprocess.run(cmd, check=True)
  File "/root/Python-3.11.4/Lib/subprocess.py", line 571, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['env/bin/python', '-X', 'dev', '/root/Python-3.11.4/Lib/test/setup_testcppext.py', 'build_ext', '--verbose']' returned non-zero exit status 1.

----------------------------------------------------------------------
Ran 2 tests in 9.939s

FAILED (errors=2)
test test_cppext failed
1 test failed again:
    test_cppext

== Tests result: FAILURE then FAILURE ==

403 tests OK.

1 test failed:
    test_cppext

30 tests skipped:
    test_bz2 test_curses test_dbm_gnu test_dbm_ndbm test_devpoll
    test_gdb test_idle test_ioctl test_kqueue test_launcher test_lzma
    test_msilib test_nis test_ossaudiodev test_readline test_smtpnet
    test_sqlite3 test_ssl test_startfile test_tcl test_tix test_tk
    test_ttk_guionly test_ttk_textonly test_turtle test_winconsoleio
    test_winreg test_winsound test_zipfile64 test_zoneinfo

2 re-run tests:
    test___all__ test_cppext

Total duration: 28 min 23 sec
Tests result: FAILURE then FAILURE
make: *** [Makefile:1798: test] Error 2

=========================================================================================================

I'm not very familiar with compiling software, normally I use the packages from my distro.
Can you help me ? Or maybe there is no big problem, afterall 403 tests were fine and just two not.
I need Python 3.11 for borgbackup.

Thanks.

Bernd

Bernd Lentes

--
Bernd Lentes
System Administrator
MCD
Helmholtzzentrum München
+49 89 3187 1241
bernd.lentes at helmholtz-munich.de
https://www.helmholtz-munich.de/en/mcd


Helmholtz Zentrum München – Deutsches Forschungszentrum für Gesundheit und Umwelt (GmbH)
Ingolstädter Landstraße 1, D-85764 Neuherberg, https://www.helmholtz-munich.de
Geschäftsführung: Prof. Dr. med. Dr. h.c. Matthias Tschöp, Daniela Sommer (komm.) | Aufsichtsratsvorsitzende: MinDir’in Prof. Dr. Veronika von Messling
Registergericht: Amtsgericht München HRB 6466 | USt-IdNr. DE 129521671


More information about the Python-list mailing list