python3.110b1 fails during post compile setup on OpenBSD 7.1

I tried to install python3.110b1 on OpenBSD7.1/Rpi4. The compilation goes fine but post compilation setup fails. It is not able to fine module `_sysconfigdata__openbsd7_aarch64-unknown-openbsd7`. The full error: gmake[3]: Entering directory '/home/shared/downloads/Python-3.11.0b1' LD_LIBRARY_PATH=/home/shared/downloads/Python-3.11.0b1 CC='/usr/bin/cc -pthread' LDSHARED='/usr/bin/cc -pthread -shared -fPIC -g ' OPT='-DNDEBUG -g -fwrapv -O3 -Wall' ./python -E ./setup.py build Traceback (most recent call last): File "/home/shared/downloads/Python-3.11.0b1/./setup.py", line 49, in <module> from distutils.command.build_ext import build_ext ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/shared/downloads/Python-3.11.0b1/Lib/distutils/command/build_ext.py", line 13, in <module> from distutils.sysconfig import customize_compiler, get_python_version ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/shared/downloads/Python-3.11.0b1/Lib/distutils/sysconfig.py", line 53, in <module> _config_vars = get_config_vars() ^^^^^^^^^^^^^^^^^ File "/home/shared/downloads/Python-3.11.0b1/Lib/sysconfig.py", line 669, in get_config_vars _init_posix(_CONFIG_VARS) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/shared/downloads/Python-3.11.0b1/Lib/sysconfig.py", line 530, in _init_posix _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ModuleNotFoundError: No module named '_sysconfigdata__openbsd7_aarch64-unknown-openbsd7' gmake[3]: *** [Makefile:858: sharedmods] Error 1 gmake[3]: Leaving directory '/home/shared/downloads/Python-3.11.0b1' gmake[2]: *** [Makefile:757: build_all_generate_profile] Error 2 gmake[2]: Leaving directory '/home/shared/downloads/Python-3.11.0b1' gmake[1]: *** [Makefile:733: profile-gen-stamp] Error 2 gmake[1]: Leaving directory '/home/shared/downloads/Python-3.11.0b1' gmake: *** [Makefile:745: profile-run-stamp] Error 2 This module is present in ./build/lib.openbsd-7.1-arm64-3.11/ as _ sysconfigdata__openbsd7_aarch64-unknown-openbsd7.1.py. So I made renamed the file dropping the .1 from suffix. Then I get a different error: ModuleNotFoundError: No module named '_sysconfigdata__openbsd7_aarch64-unknown-openbsd7.1'; '_sysconfigdata__openbsd7_aarch64-unknown-openbsd7' is not a package I guess we need some fix in the script itself. Thanks Sandeep

Hi, Please report Python issues to the GitHub project: https://github.com/python/cpython/issues/ The OpenBSD operating system is currently not supported by Python, so don't expect a quick feedback: https://peps.python.org/pep-0011/ A few years ago, I tried to provide best effort support for OpenBSD. More recently, I focused on FreeBSD which already keeps me busy with multiple issues ;-) Victor

Hi, Please report Python issues to the GitHub project: https://github.com/python/cpython/issues/ The OpenBSD operating system is currently not supported by Python, so don't expect a quick feedback: https://peps.python.org/pep-0011/ A few years ago, I tried to provide best effort support for OpenBSD. More recently, I focused on FreeBSD which already keeps me busy with multiple issues ;-) Victor
participants (2)
-
Sandeep Gupta
-
Victor Stinner