#66308 closed defect (duplicate)

py310-numpy @1.23.4 fails to build with py310-setuptools @65.6.0_0

Reported by: hmeine (Hans Meine) Owned by:
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: py310-numpy

Description (last modified by hmeine (Hans Meine))

I am trying to sudo port install py310-numpy (on arm64, Ventura) 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

Attachments (1)

main.log (87.6 KB) - added by hmeine (Hans Meine) 17 months ago.
full copy of /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-numpy/py310-numpy/main.log

Download all attachments as: .zip

Change History (4)

Changed 17 months ago by hmeine (Hans Meine)

Attachment: main.log added

full copy of /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-numpy/py310-numpy/main.log

comment:1 Changed 17 months ago by hmeine (Hans Meine)

I am puzzled by the capitalized "Log". Looking into /opt/local/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/_distutils/log.py, this is a very small compatibility module; maybe recent setuptools versions do not expose the implementation as much as previously, and numpy is no longer compatible with this.

I currently have py310-setuptools @65.6.0_0 (active).

comment:2 Changed 17 months ago by hmeine (Hans Meine)

Description: modified (diff)
Summary: py310-numpy @1.23.4 fails to build (arm64, Ventura)py310-numpy @1.23.4 fails to build with py310-setuptools @65.6.0_0

comment:3 Changed 17 months ago by jmroot (Joshua Root)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.