Question about building Python-3.9.12 on OpenBSD 7.1

Tim Brazil timbrazil at sbcglobal.net
Thu Jun 2 20:44:35 EDT 2022


Hello

I hope I am not breaking protocol sending this message to the list.
This is my first posting to python-list.

I am trying to build Python-3.9.12 from the ports distribution on
on a new OpenBSD 7.1 installation.
It is failing with the following error.

Traceback (most recent call last):
   File "/usr/obj/ports/Python-3.9.12/Python-3.9.12/./setup.py", line 
2509, in <module>
     class PyBuildInstallLib(install_lib):
   File "/usr/obj/ports/Python-3.9.12/Python-3.9.12/./setup.py", line 
2516, in PyBuildInstallLib
     shlib_suffix = sysconfig.get_config_var("SHLIB_SUFFIX")
   File "/usr/obj/ports/Python-3.9.12/Python-3.9.12/Lib/sysconfig.py", 
line 616, in get_config_var
     return get_config_vars().get(name)
   File "/usr/obj/ports/Python-3.9.12/Python-3.9.12/Lib/sysconfig.py", 
line 565, in get_config_vars
     _init_posix(_CONFIG_VARS)
   File "/usr/obj/ports/Python-3.9.12/Python-3.9.12/Lib/sysconfig.py", 
line 430, in _init_posix
     _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
ModuleNotFoundError: No module named 
'_sysconfigdata__openbsd7_amd64-unknown-openbsd7'
*** Error 1 in /usr/obj/ports/Python-3.9.12/Python-3.9.12 (Makefile:649 
'sharedmods': @case "`echo X $MAKEFLAGS | sed 's/^X //;s/ -- .*//'`"...)

In researching this on the internet I discovered a similar reporting on
FreeBSD that seems to relate to regex and MULTIARZCH in the FreeBSD
Makefile but it doesn't seem to apply to the port of my 
Makefile/environment.

This is the report I am referring to:

     https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259896

My exact problem is...

I do not have z _sysconfigdata__openbsd7_amd64-unknown-openbsd7 module
but I do have a _sysconfigdata__openbsd7_amd64-unknown-openbsd7.1.py module
under:

./build/lib.openbsd-7.1-amd64-3.9/_sysconfigdata__openbsd7_amd64-unknown-openbsd7.1.py

I suspect somewhere, it's not picking up the full 7.1 version string.
I am having a problem figuring it out. I kindly ask if you have any 
pointers on fixing
it. Should I log a bug or is it a OpenBSD package thing?

Thanks in Advance
Tim


More information about the Python-list mailing list