[MacPorts] #66308: py310-numpy @1.23.4 fails to build (arm64, Ventura)
MacPorts
noreply at macports.org
Mon Nov 21 17:43:11 UTC 2022
#66308: py310-numpy @1.23.4 fails to build (arm64, Ventura)
--------------------+-------------------------
Reporter: hmeine | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: py310-numpy
--------------------+-------------------------
I am trying to `sudo port install py310-numpy` with the following default
variants:
{{{
py310-numpy has the variants:
atlas: Use MacPorts ATLAS Libraries
* conflicts with mkl openblas
gcc10: Build using the MacPorts gcc 10 compiler
* conflicts with gcc11 gcc12 gccdevel gfortran gfortran
gcc11: Build using the MacPorts gcc 11 compiler
* conflicts with gcc10 gcc12 gccdevel gfortran gfortran
gcc12: Build using the MacPorts gcc 12 compiler
* conflicts with gcc10 gcc11 gccdevel gfortran gfortran
gccdevel: Build using the MacPorts gcc devel compiler
* conflicts with gcc10 gcc11 gcc12 gfortran gfortran
[+]gfortran: Build using the MacPorts gcc 12 Fortran compiler
* conflicts with gcc10 gcc11 gcc12 gccdevel
mkl: Use MacPorts MKL Libraries
* conflicts with atlas openblas
[+]openblas: Use MacPorts OpenBLAS Libraries
* conflicts with atlas mkl
universal: Build for multiple architectures
}}}
but the build fails very quickly, apparently due to this error I found in
the log:
{{{
:info:build Executing: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-
numpy/py310-numpy/work/numpy-1.23.4" &&
/opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10
setup.py --no-user-cfg build -j10
:debug:build system: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-
numpy/py310-numpy/work/numpy-1.23.4" &&
/opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10
setup.py --no-user-cfg build -j10
:info:build Running from numpy source directory.
:info:build Traceback (most recent call last):
:info:build File
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-
numpy/py310-numpy/work/numpy-1.23.4/setup.py", line 86, in <module>
:info:build import numpy.distutils.command.sdist
:info:build File
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-
numpy/py310-numpy/work/numpy-1.23.4/numpy/distutils/__init__.py", line 26,
in <module>
:info:build from . import ccompiler
:info:build File
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-
numpy/py310-numpy/work/numpy-1.23.4/numpy/distutils/ccompiler.py", line
20, in <module>
:info:build from numpy.distutils import log
:info:build File
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-
numpy/py310-numpy/work/numpy-1.23.4/numpy/distutils/log.py", line 4, in
<module>
:info:build from distutils.log import Log as old_Log
:info:build ImportError: cannot import name 'Log' from 'distutils.log'
(/opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10
/site-packages/setuptools/_distutils/log.py)
:info:build Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
.org_macports_release_tarballs_ports_python_py-
numpy/py310-numpy/work/numpy-1.23.4" &&
/opt/local/Library/Frameworks/Python.framework/Versions/3.10/bin/python3.10
setup.py --no-user-cfg build -j10
:info:build Exit code: 1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/66308>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list