8000 BUG: Cannot install numpy 1.26.0 in python 3.10 slim-bullseye image. · Issue #24885 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: Cannot install numpy 1.26.0 in python 3.10 slim-bullseye image. #24885

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aimtsou opened this issue Oct 9, 2023 · 2 comments
Closed

BUG: Cannot install numpy 1.26.0 in python 3.10 slim-bullseye image. #24885

aimtsou opened this issue Oct 9, 2023 · 2 comments
Labels
32 - Installation Problems installing or compiling NumPy

Comments

@aimtsou
Copy link
aimtsou commented Oct 9, 2023

Describe the issue:

While installing the numpy in a python 3.10 multiplatform (arch64 and amd64) image containing pyspark I get an error.
The amd64 goes fine and install numpy 1.26 from pypi but not for arm.
With python 3.9 and numpy 1.23.5 I did not have this problem.

Reproduce the code example:

No code is needed.

Error message:

EDIT: the key bit is (from 1.19.3, not 1.26.0):

File "numpy/core/setup.py", line 663, in get_mathlib_info
    raise RuntimeError("Broken toolchain: cannot link a simple C 

Full build log.

2023-10-09T07:52:12.9897771Z #12 30.79   Installing build dependencies: finished with status 'error'
2023-10-09T07:52:13.1097280Z #12 30.82   error: subprocess-exited-with-error
2023-10-09T07:52:13.1097752Z #12 30.82   
2023-10-09T07:52:13.1098766Z #12 30.82   × pip subprocess to install build dependencies did not run successfully.
2023-10-09T07:52:13.1099320Z #12 30.82   │ exit code: 1
2023-10-09T07:52:13.1099949Z #12 30.82   ╰─> [273 lines of output]
2023-10-09T07:52:13.1100393Z #12 30.82       Looking in indexes: https://pypi.org/simple, https://pypi.***in.net/
2023-10-09T07:52:13.1101252Z #12 30.82       Ignoring numpy: markers 'python_version == "3.7" and (platform_machine != "arm64" or platform_system != "Darwin") and platform_machine != "aarch64"' don't match your environment
2023-10-09T07:52:13.1102295Z #12 30.82       Ignoring numpy: markers 'python_version == "3.8" and (platform_machine != "arm64" or platform_system != "Darwin") and platform_machine != "aarch64"' don't match your environment
2023-10-09T07:52:13.1103174Z #12 30.82       Ignoring numpy: markers 'python_version == "3.7" and platform_machine == "aarch64"' don't match your environment
2023-10-09T07:52:13.1103922Z #12 30.82       Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "aarch64"' don't match your environment
2023-10-09T07:52:13.1104745Z #12 30.82       Ignoring numpy: markers 'python_version == "3.8" and platform_machine == "arm64" and platform_system == "Darwin"' don't match your environment
2023-10-09T07:52:13.1105602Z #12 30.82       Ignoring numpy: markers 'python_version == "3.9" and platform_machine == "arm64" and platform_system == "Darwin"' don't match your environment
2023-10-09T07:52:13.1106319Z #12 30.82       Collecting setuptools>=51.0.0
2023-10-09T07:52:13.1106858Z #12 30.82         Downloading setuptools-68.2.2-py3-none-any.whl (807 kB)
2023-10-09T07:52:13.1107459Z #12 30.82            ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 807.9/807.9 kB 15.1 MB/s eta 0:00:00
2023-10-09T07:52:13.1108113Z #12 30.82       Collecting wheel
2023-10-09T07:52:13.1108640Z #12 30.82         Downloading wheel-0.41.2-py3-none-any.whl (64 kB)
2023-10-09T07:52:13.1109218Z #12 30.82            ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 64.8/64.8 kB 6.9 MB/s eta 0:00:00
2023-10-09T07:52:13.1109555Z #12 30.82       Collecting Cython<3,>=0.29.21
2023-10-09T07:52:13.1110380Z #12 30.82         Downloading Cython-0.29.36-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_24_x86_64.whl (1.9 MB)
2023-10-09T07:52:13.1110989Z #12 30.82            ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.9/1.9 MB 66.0 MB/s eta 0:00:00
2023-10-09T07:52:13.1111295Z #12 30.82       Collecting numpy==1.19.3
2023-10-09T07:52:13.1112278Z #12 30.82         Downloading numpy-1.19.3.zip (7.3 MB)
2023-10-09T07:52:13.1112760Z #12 30.82            ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.3/7.3 MB 126.3 MB/s eta 0:00:00
2023-10-09T07:52:13.1115714Z #12 30.82         Installing build dependencies: started
2023-10-09T07:52:13.1116738Z #12 30.82         Installing build dependencies: finished with status 'done'
2023-10-09T07:52:13.1117364Z #12 30.82         Getting requirements to build wheel: started
2023-10-09T07:52:13.1118251Z #12 30.82         Getting requirements to build wheel: finished with status 'done'
2023-10-09T07:52:13.1118867Z #12 30.82         Preparing metadata (pyproject.toml): started
2023-10-09T07:52:13.1119460Z #12 30.82         Preparing metadata (pyproject.toml): finished with status 'error'
2023-10-09T07:52:13.1120926Z #12 30.82         error: subprocess-exited-with-error
2023-10-09T07:52:13.1121394Z #12 30.82       
2023-10-09T07:52:13.1122315Z #12 30.82         × Preparing metadata (pyproject.toml) did not run successfully.
2023-10-09T07:52:13.1123122Z #12 30.82         │ exit code: 1
2023-10-09T07:52:13.1123811Z #12 30.82         ╰─> [230 lines of output]
2023-10-09T07:52:13.1124445Z #12 30.82             setup.py:67: RuntimeWarning: NumPy 1.19.3 may not yet support Python 3.10.
2023-10-09T07:52:13.1125056Z #12 30.82               warnings.warn(
2023-10-09T07:52:13.1125556Z #12 30.82             Running from numpy source directory.
2023-10-09T07:52:13.1126344Z #12 30.82             setup.py:480: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
2023-10-09T07:52:13.1127138Z #12 30.82               run_build = parse_setuppy_commands()
2023-10-09T07:52:13.1127701Z #12 30.82             Processing numpy/random/_bounded_integers.pxd.in
2023-10-09T07:52:13.1128282Z #12 30.82             Processing numpy/random/_mt19937.pyx
2023-10-09T07:52:13.1128833Z #12 30.82             Processing numpy/random/_generator.pyx
2023-10-09T07:52:13.1129386Z #12 30.82             Processing numpy/random/_philox.pyx
2023-10-09T07:52:13.1134829Z #12 30.82             Processing numpy/random/_bounded_integers.pyx.in
2023-10-09T07:52:13.1135449Z #12 30.82             Processing numpy/random/_common.pyx
2023-10-09T07:52:13.1135990Z #12 30.82             Processing numpy/random/_sfc64.pyx
2023-10-09T07:52:13.1136559Z #12 30.82             Processing numpy/random/bit_generator.pyx
2023-10-09T07:52:13.1137146Z #12 30.82             Processing numpy/random/_pcg64.pyx
2023-10-09T07:52:13.1137685Z #12 30.82             Processing numpy/random/mtrand.pyx
2023-10-09T07:52:13.1137982Z #12 30.82             Cythonizing sources
2023-10-09T07:52:13.1138236Z #12 30.82             blas_opt_info:
2023-10-09T07:52:13.1138467Z #12 30.82             blas_mkl_info:
2023-10-09T07:52:13.1138723Z #12 30.82             customize UnixCCompiler
2023-10-09T07:52:13.1139322Z #12 30.82               libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib']
2023-10-09T07:52:13.1139785Z #12 30.82               NOT AVAILABLE
2023-10-09T07:52:13.1140011Z #12 30.82       
2023-10-09T07:52:13.1140211Z #12 30.82             blis_info:
2023-10-09T07:52:13.1140672Z #12 30.82               libraries blis not found in ['/usr/local/lib', '/usr/lib']
2023-10-09T07:52:13.1140969Z #12 30.82               NOT AVAILABLE
2023-10-09T07:52:13.1141267Z #12 30.82       
2023-10-09T07:52:13.1141544Z #12 30.82             openblas_info:
2023-10-09T07:52:13.1142026Z #12 30.82               libraries openblas not found in ['/usr/local/lib', '/usr/lib']
2023-10-09T07:52:13.1142331Z #12 30.82               NOT AVAILABLE
2023-10-09T07:52:13.1142542Z #12 30.82       
2023-10-09T07:52:13.1142789Z #12 30.82             atlas_3_10_blas_threads_info:
2023-10-09T07:52:13.1143067Z #12 30.82             Setting PTATLAS=ATLAS
2023-10-09T07:52:13.1143520Z #12 30.82               libraries tatlas not found in ['/usr/local/lib', '/usr/lib']
2023-10-09T07:52:13.1143817Z #12 30.82               NOT AVAILABLE
2023-10-09T07:52:13.1144029Z #12 30.82       
2023-10-09T07:52:13.1144254Z #12 30.82             atlas_3_10_blas_info:
2023-10-09T07:52:13.1144707Z #12 30.82               libraries satlas not found in ['/usr/local/lib', '/usr/lib']
2023-10-09T07:52:13.1145018Z #12 30.82               NOT AVAILABLE
2023-10-09T07:52:13.1145239Z #12 30.82       
2023-10-09T07:52:13.1145483Z #12 30.82             atlas_blas_threads_info:
2023-10-09T07:52:13.1145755Z #12 30.82             Setting PTATLAS=ATLAS
2023-10-09T07:52:13.1146252Z #12 30.82               libraries ptf77blas,ptcblas,atlas not found in ['/usr/local/lib', '/usr/lib']
2023-10-09T07:52:13.1146581Z #12 30.82               NOT AVAILABLE
2023-10-09T07:52:13.1146794Z #12 30.82       
2023-10-09T07:52:13.1147007Z #12 30.82             atlas_blas_info:
2023-10-09T07:52:13.1147479Z #12 30.82               libraries f77blas,cblas,atlas not found in ['/usr/local/lib', '/usr/lib']
2023-10-09T07:52:13.1148146Z #12 30.82               NOT AVAILABLE
2023-10-09T07:52:13.1148365Z #12 30.82       
2023-10-09T07:52:13.1148587Z #12 30.82             accelerate_info:
2023-10-09T07:52:13.1148829Z #12 30.82               NOT AVAILABLE
2023-10-09T07:52:13.1149043Z #12 30.82       
2023-10-09T07:52:13.1149617Z #12 30.82             /tmp/pip-install-kxgjxu1z/numpy_7d38b416ddc24381b85abf67fa261f5b/numpy/distutils/system_info.py:1914: UserWarning:
2023-10-09T07:52:13.1150067Z #12 30.82                 Optimized (vendor) Blas libraries are not found.
2023-10-09T07:52:13.1150421Z #12 30.82                 Falls back to netlib Blas library which has worse performance.
2023-10-09T07:52:13.1150773Z #12 30.82                 A better performance should be easily gained by switching
2023-10-09T07:52:13.1151071Z #12 30.82                 Blas library.
2023-10-09T07:52:13.1151322Z #12 30.82               if self._calc_info(blas):
2023-10-09T07:52:13.1151570Z #12 30.82             blas_info:
2023-10-09T07:52:13.1151998Z #12 30.82               libraries blas not found in ['/usr/local/lib', '/usr/lib']
2023-10-09T07:52:13.1152301Z #12 30.82               NOT AVAILABLE
2023-10-09T07:52:13.1152521Z #12 30.82       
2023-10-09T07:52:13.1153067Z #12 30.82             /tmp/pip-install-kxgjxu1z/numpy_7d38b416ddc24381b85abf67fa261f5b/numpy/distutils/system_info.py:1914: UserWarning:
2023-10-09T07:52:13.1153534Z #12 30.82                 Blas (http://www.netlib.org/blas/) libraries not found.
2023-10-09T07:52:13.1153899Z #12 30.82                 Directories to search for the libraries can be specified in the
2023-10-09T07:52:13.1154276Z #12 30.82                 numpy/distutils/site.cfg file (section [blas]) or by setting
2023-10-09T07:52:13.1154599Z #12 30.82                 the BLAS environment variable.
2023-10-09T07:52:13.1154892Z #12 30.82               if self._calc_info(blas):
2023-10-09T07:52:13.1155145Z #12 30.82             blas_src_info:
2023-10-09T07:52:13.1155384Z #12 30.82               NOT AVAILABLE
2023-10-09T07:52:13.1155600Z #12 30.82       
2023-10-09T07:52:13.1156151Z #12 30.82             /tmp/pip-install-kxgjxu1z/numpy_7d38b416ddc24381b85abf67fa261f5b/numpy/distutils/system_info.py:1914: UserWarning:
2023-10-09T07:52:13.1156706Z #12 30.82                 Blas (http://www.netlib.org/blas/) sources not found.
2023-10-09T07:52:13.1157066Z #12 30.82                 Directories to search for the sources can be specified in the
2023-10-09T07:52:13.1157487Z #12 30.82                 numpy/distutils/site.cfg file (section [blas_src]) or by setting
2023-10-09T07:52:13.1157826Z #12 30.82                 the BLAS_SRC environment variable.
2023-10-09T07:52:13.1158110Z #12 30.82               if self._calc_info(blas):
2023-10-09T07:52:13.1158364Z #12 30.82               NOT AVAILABLE
2023-10-09T07:52:13.1158574Z #12 30.82       
2023-10-09T07:52:13.1159000Z #12 30.82             non-existing path in 'numpy/distutils': 'site.cfg'
2023-10-09T07:52:13.1159305Z #12 30.82             lapack_opt_info:
2023-10-09T07:52:13.1159551Z #12 30.82             lapack_mkl_info:
2023-10-09T07:52:13.1159993Z #12 30.82               libraries mkl_rt not found in ['/usr/local/lib', '/usr/lib']
2023-10-09T07:52:13.1160300Z #12 30.82               NOT AVAILABLE
2023-10-09T07:52:13.1160509Z #12 30.82       
2023-10-09T07:52:13.1160737Z #12 30.82             openblas_lapack_info:
2023-10-09T07:52:13.1161184Z #12 30.82               libraries openblas not found in ['/usr/local/lib', '/usr/lib']
2023-10-09T07:52:13.1161489Z #12 30.82               NOT AVAILABLE
2023-10-09T07:52:13.1161703Z #12 30.82       
2023-10-09T07:52:13.1161928Z #12 30.82             openblas_clapack_info:
2023-10-09T07:52:13.1162396Z #12 30.82               libraries openblas,lapack not found in ['/usr/local/lib', '/usr/lib']
2023-10-09T07:52:13.1162715Z #12 30.82               NOT AVAILABLE
2023-10-09T07:52:13.1162931Z #12 30.82       
2023-10-09T07:52:13.1163136Z #12 30.82             flame_info:
2023-10-09T07:52:13.1163568Z #12 30.82               libraries flame not found in ['/usr/local/lib', '/usr/lib']
2023-10-09T07:52:13.1163864Z #12 30.82               NOT AVAILABLE
2023-10-09T07:52:13.1164083Z #12 30.82       
2023-10-09T07:52:13.1164312Z #12 30.82             atlas_3_10_threads_info:
2023-10-09T07:52:13.1164582Z #12 30.82             Setting PTATLAS=ATLAS
2023-10-09T07:52:13.1164882Z #12 30.82               libraries lapack_atlas not found in /usr/local/lib
2023-10-09T07:52:13.1165215Z #12 30.82               libraries tatlas,tatlas not found in /usr/local/lib
2023-10-09T07:52:13.1165548Z #12 30.82               libraries lapack_atlas not found in /usr/lib
2023-10-09T07:52:13.1165871Z #12 30.82               libraries tatlas,tatlas not found in /usr/lib
2023-10-09T07:52:13.1166366Z #12 30.82             <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
2023-10-09T07:52:13.1166674Z #12 30.82               NOT AVAILABLE
2023-10-09T07:52:13.1166891Z #12 30.82       
2023-10-09T07:52:13.1167112Z #12 30.82             atlas_3_10_info:
2023-10-09T07:52:13.1167395Z #12 30.82               libraries lapack_atlas not found in /usr/local/lib
2023-10-09T07:52:13.1167736Z #12 30.82               libraries satlas,satlas not found in /usr/local/lib
2023-10-09T07:52:13.1168065Z #12 30.82               libraries lapack_atlas not found in /usr/lib
2023-10-09T07:52:13.1168384Z #12 30.82               libraries satlas,satlas not found in /usr/lib
2023-10-09T07:52:13.1168854Z #12 30.82             <class 'numpy.distutils.system_info.atlas_3_10_info'>
2023-10-09T07:52:13.1169198Z #12 30.82               NOT AVAILABLE
2023-10-09T07:52:13.1169413Z #12 30.82       
2023-10-09T07:52:13.1169633Z #12 30.82             atlas_threads_info:
2023-10-09T07:52:13.1169893Z #12 30.82             Setting PTATLAS=ATLAS
2023-10-09T07:52:13.1170195Z #12 30.82               libraries lapack_atlas not found in /usr/local/lib
2023-10-09T07:52:13.1170554Z #12 30.82               libraries ptf77blas,ptcblas,atlas not found in /usr/local/lib
2023-10-09T07:52:13.1170892Z #12 30.82               libraries lapack_atlas not found in /usr/lib
2023-10-09T07:52:13.1171231Z #12 30.82               libraries ptf77blas,ptcblas,atlas not found in /usr/lib
2023-10-09T07:52:13.1171799Z #12 30.82             <class 'numpy.distutils.system_info.atlas_threads_info'>
2023-10-09T07:52:13.1172103Z #12 30.82               NOT AVAILABLE
2023-10-09T07:52:13.1172311Z #12 30.82       
2023-10-09T07:52:13.1172522Z #12 30.82             atlas_info:
2023-10-09T07:52:13.1172853Z #12 30.82               libraries lapack_atlas not found in /usr/local/lib
2023-10-09T07:52:13.1173193Z #12 30.82               libraries f77blas,cblas,atlas not found in /usr/local/lib
2023-10-09T07:52:13.1173535Z #12 30.82               libraries lapack_atlas not found in /usr/lib
2023-10-09T07:52:13.1173868Z #12 30.82               libraries f77blas,cblas,atlas not found in /usr/lib
2023-10-09T07:52:13.1174353Z #12 30.82             <class 'numpy.distutils.system_info.atlas_info'>
2023-10-09T07:52:13.1
8000
174637Z #12 30.82               NOT AVAILABLE
2023-10-09T07:52:13.1174850Z #12 30.82       
2023-10-09T07:52:13.1175064Z #12 30.82             lapack_info:
2023-10-09T07:52:13.1175502Z #12 30.82               libraries lapack not found in ['/usr/local/lib', '/usr/lib']
2023-10-09T07:52:13.1175799Z #12 30.82               NOT AVAILABLE
2023-10-09T07:52:13.1176012Z #12 30.82       
2023-10-09T07:52:13.1176570Z #12 30.82             /tmp/pip-install-kxgjxu1z/numpy_7d38b416ddc24381b85abf67fa261f5b/numpy/distutils/system_info.py:1748: UserWarning:
2023-10-09T07:52:13.1177031Z #12 30.82                 Lapack (http://www.netlib.org/lapack/) libraries not found.
2023-10-09T07:52:13.1177405Z #12 30.82                 Directories to search for the libraries can be specified in the
2023-10-09T07:52:13.1177777Z #12 30.82                 numpy/distutils/site.cfg file (section [lapack]) or by setting
2023-10-09T07:52:13.1178106Z #12 30.82                 the LAPACK environment variable.
2023-10-09T07:52:13.1178558Z #12 30.82               return getattr(self, '_calc_info_{}'.format(name))()
2023-10-09T07:52:13.1178868Z #12 30.82             lapack_src_info:
2023-10-09T07:52:13.1179119Z #12 30.82               NOT AVAILABLE
2023-10-09T07:52:13.1179339Z #12 30.82       
2023-10-09T07:52:13.1179889Z #12 30.82             /tmp/pip-install-kxgjxu1z/numpy_7d38b416ddc24381b85abf67fa261f5b/numpy/distutils/system_info.py:1748: UserWarning:
2023-10-09T07:52:13.1180350Z #12 30.82                 Lapack (http://www.netlib.org/lapack/) sources not found.
2023-10-09T07:52:13.1180719Z #12 30.82                 Directories to search for the sources can be specified in the
2023-10-09T07:52:13.1181084Z #12 30.82                 numpy/distutils/site.cfg file (section [lapack_src]) or by setting
2023-10-09T07:52:13.1181429Z #12 30.82                 the LAPACK_SRC environment variable.
2023-10-09T07:52:13.1181896Z #12 30.82               return getattr(self, '_calc_info_{}'.format(name))()
2023-10-09T07:52:13.1182192Z #12 30.82               NOT AVAILABLE
2023-10-09T07:52:13.1182398Z #12 30.82       
2023-10-09T07:52:13.1182630Z #12 30.82             numpy_linalg_lapack_lite:
2023-10-09T07:52:13.1183231Z #12 30.82               FOUND:
2023-10-09T07:52:13.1183456Z #12 30.82                 language = c
2023-10-09T07:52:13.1184416Z #12 30.82                 define_macros = [('HAVE_BLAS_ILP64', None), ('BLAS_SYMBOL_SUFFIX', '64_')]
2023-10-09T07:52:13.1184750Z #12 30.82       
2023-10-09T07:52:13.1185396Z #12 30.82             /tmp/pip-build-env-hdua_aa4/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py:275: UserWarning: Unknown distribution option: 'define_macros'
2023-10-09T07:52:13.1185878Z #12 30.82               warnings.warn(msg)
2023-10-09T07:52:13.1186139Z #12 30.82             running dist_info
2023-10-09T07:52:13.1186378Z #12 30.82             running build_src
2023-10-09T07:52:13.1186609Z #12 30.82             build_src
2023-10-09T07:52:13.1186863Z #12 30.82             building py_modules sources
2023-10-09T07:52:13.1187120Z #12 30.82             creating build
2023-10-09T07:52:13.1187531Z #12 30.82             creating build/src.linux-x86_64-3.10
2023-10-09T07:52:13.1188353Z #12 30.82             creating build/src.linux-x86_64-3.10/numpy
2023-10-09T07:52:13.1188830Z #12 30.82             creating build/src.linux-x86_64-3.10/numpy/distutils
2023-10-09T07:52:13.1189151Z #12 30.82             building library "npymath" sources
2023-10-09T07:52:13.1189449Z #12 30.82             Could not locate executable gfortran
2023-10-09T07:52:13.1189831Z #12 30.82             Could not locate executable f95
2023-10-09T07:52:13.1190118Z #12 30.82             Could not locate executable ifort
2023-10-09T07:52:13.1190400Z #12 30.82             Could not locate executable ifc
2023-10-09T07:52:13.1190681Z #12 30.82             Could not locate executable lf95
2023-10-09T07:52:13.1190972Z #12 30.82             Could not locate executable pgfortran
2023-10-09T07:52:13.1191267Z #12 30.82             Could not locate executable nvfortran
2023-10-09T07:52:13.1191560Z #12 30.82             Could not locate executable f90
2023-10-09T07:52:13.1191840Z #12 30.82             Could not locate executable f77
2023-10-09T07:52:13.1192131Z #12 30.82             Could not locate executable fort
2023-10-09T07:52:13.1192414Z #12 30.82             Could not locate executable efort
2023-10-09T07:52:13.1192698Z #12 30.82             Could not locate executable efc
2023-10-09T07:52:13.1192978Z #12 30.82             Could not locate executable g77
2023-10-09T07:52:13.1193263Z #12 30.82             Could not locate executable g95
2023-10-09T07:52:13.1193546Z #12 30.82             Could not locate executable pathf95
2023-10-09T07:52:13.1193839Z #12 30.82             Could not locate executable nagfor
2023-10-09T07:52:13.1194326Z #12 30.82             don't know how to compile Fortran code on platform 'posix'
2023-10-09T07:52:13.1194647Z #12 30.82             Traceback (most recent call last):
2023-10-09T07:52:13.1195253Z #12 30.82               File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
2023-10-09T07:52:13.1195641Z #12 30.82                 main()
2023-10-09T07:52:13.1196201Z #12 30.82               File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
2023-10-09T07:52:13.1196773Z #12 30.82                 json_out['return_val'] = hook(**hook_input['kwargs'])
2023-10-09T07:52:13.1197445Z #12 30.82               File "/usr/local/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 149, in prepare_metadata_for_build_wheel
2023-10-09T07:52:13.1197930Z #12 30.82                 return hook(metadata_directory, config_settings)
2023-10-09T07:52:13.1198600Z #12 30.82               File "/tmp/pip-build-env-hdua_aa4/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 157, in prepare_metadata_for_build_wheel
2023-10-09T07:52:13.1199035Z #12 30.82                 self.run_setup()
2023-10-09T07:52:13.1199602Z #12 30.82               File "/tmp/pip-build-env-hdua_aa4/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 248, in run_setup
2023-10-09T07:52:13.1200024Z #12 30.82                 super(_BuildMetaLegacyBackend,
2023-10-09T07:52:13.1200613Z #12 30.82               File "/tmp/pip-build-env-hdua_aa4/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 142, in run_setup
2023-10-09T07:52:13.1201176Z #12 30.82                 exec(compile(code, __file__, 'exec'), locals())
2023-10-09T07:52:13.1201494Z #12 30.82               File "setup.py", line 508, in <module>
2023-10-09T07:52:13.1201777Z #12 30.82                 setup_package()
2023-10-09T07:52:13.1202060Z #12 30.82               File "setup.py", line 500, in setup_package
2023-10-09T07:52:13.1202338Z #12 30.82                 setup(**metadata)
2023-10-09T07:52:13.1202911Z #12 30.82               File "/tmp/pip-install-kxgjxu1z/numpy_7d38b416ddc24381b85abf67fa261f5b/numpy/distutils/core.py", line 169, in setup
2023-10-09T07:52:13.1203333Z #12 30.82                 return old_setup(**new_attr)
2023-10-09T07:52:13.1203913Z #12 30.82               File "/tmp/pip-build-env-hdua_aa4/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 165, in setup
2023-10-09T07:52:13.1204426Z #12 30.82                 return distutils.core.setup(**attrs)
2023-10-09T07:52:13.1205039Z #12 30.82               File "/tmp/pip-build-env-hdua_aa4/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 148, in setup
2023-10-09T07:52:13.1205494Z #12 30.82                 dist.run_commands()
2023-10-09T07:52:13.1206095Z #12 30.82               File "/tmp/pip-build-env-hdua_aa4/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
2023-10-09T07:52:13.1206502Z #12 30.82                 self.run_command(cmd)
2023-10-09T07:52:13.1207092Z #12 30.82               File "/tmp/pip-build-env-hdua_aa4/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
2023-10-09T07:52:13.1207494Z #12 30.82                 cmd_obj.run()
2023-10-09T07:52:13.1208064Z #12 30.82               File "/tmp/pip-build-env-hdua_aa4/overlay/lib/python3.10/site-packages/setuptools/command/dist_info.py", line 31, in run
2023-10-09T07:52:13.1208451Z #12 30.82                 egg_info.run()
2023-10-09T07:52:13.1209038Z #12 30.82               File "/tmp/pip-install-kxgjxu1z/numpy_7d38b416ddc24381b85abf67fa261f5b/numpy/distutils/command/egg_info.py", line 24, in run
2023-10-09T07:52:13.1209466Z #12 30.82                 self.run_command("build_src")
2023-10-09T07:52:13.1210066Z #12 30.82               File "/tmp/pip-build-env-hdua_aa4/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
2023-10-09T07:52:13.1210500Z #12 30.82                 self.distribution.run_command(command)
2023-10-09T07:52:13.1211665Z #12 30.82               File "/tmp/pip-build-env-hdua_aa4/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
2023-10-09T07:52:13.1212408Z #12 30.82                 cmd_obj.run()
2023-10-09T07:52:13.1213486Z #12 30.82               File "/tmp/pip-install-kxgjxu1z/numpy_7d38b416ddc24381b85abf67fa261f5b/numpy/distutils/command/build_src.py", line 144, in run
2023-10-09T07:52:13.1214224Z #12 30.82                 self.build_sources()
2023-10-09T07:52:13.1215353Z #12 30.82               File "/tmp/pip-install-kxgjxu1z/numpy_7d38b416ddc24381b85abf67fa261f5b/numpy/distutils/command/build_src.py", line 155, in build_sources
2023-10-09T07:52:13.1216183Z #12 30.82                 self.build_library_sources(*libname_info)
2023-10-09T07:52:13.1217383Z #12 30.82               File "/tmp/pip-install-kxgjxu1z/numpy_7d38b416ddc24381b85abf67fa261f5b/numpy/distutils/command/build_src.py", line 288, in build_library_sources
2023-10-09T07:52:13.1218260Z #12 30.82                 sources = self.generate_sources(sources, (lib_name, build_info))
2023-10-09T07:52:13.1219470Z #12 30.82               File "/tmp/pip-install-kxgjxu1z/numpy_7d38b416ddc24381b85abf67fa261f5b/numpy/distutils/command/build_src.py", line 378, in generate_sources
2023-10-09T07:52:13.1220308Z #12 30.82                 source = func(extension, build_dir)
2023-10-09T07:52:13.1220906Z #12 30.82               File "numpy/core/setup.py", line 663, in get_mathlib_info
2023-10-09T07:52:13.1221588Z #12 30.82                 raise RuntimeError("Broken toolchain: cannot link a simple C program")
2023-10-09T07:52:13.1222274Z #12 30.82             RuntimeError: Broken toolchain: cannot link a simple C program
2023-10-09T07:52:13.1222829Z #12 30.82             [end of output]
2023-10-09T07:52:13.1223206Z #12 30.82       
2023-10-09T07:52:13.1224433Z #12 30.82         note: This error originates from a subprocess, and is likely not a problem with pip.
2023-10-09T07:52:13.1225105Z #12 30.82       error: metadata-generation-failed
2023-10-09T07:52:13.1225364Z #12 30.82       
2023-10-09T07:52:13.1225776Z #12 30.82       × Encountered error while generating package metadata.
2023-10-09T07:52:13.1226201Z #12 30.82       ╰─> See above for output.
2023-10-09T07:52:13.1226431Z #12 30.82       
2023-10-09T07:52:13.1226839Z #12 30.82       note: This is an issue with the package mentioned above, not pip.
2023-10-09T07:52:13.1227150Z #12 30.82       hint: See above for details.
2023-10-09T07:52:13.1227382Z #12 30.82       
2023-10-09T07:52:13.1228052Z #12 30.82       [notice] A new release of pip is available: 23.0.1 -> 23.2.1
2023-10-09T07:52:13.1228543Z #12 30.82       [notice] To update, run: pip install --upgrade pip
2023-10-09T07:52:13.1228916Z #12 30.82       [end of output]
2023-10-09T07:52:13.1229131Z #12 30.82   
2023-10-09T07:52:13.1229437Z #12 30.82   note: This error originates from a subprocess, and is likely not a problem with pip.
2023-10-09T07:52:13.1229925Z #12 30.82 error: subprocess-exited-with-error
2023-10-09T07:52:13.1230173Z #12 30.82 
2023-10-09T07:52:13.1230606Z #12 30.82 × pip subprocess to install build dependencies did not run successfully.
2023-10-09T07:52:13.1231019Z #12 30.82 │ exit code: 1
2023-10-09T07:52:13.1231366Z #12 30.82 ╰─> See above for output.
2023-10-09T07:52:13.1231599Z #12 30.82 
2023-10-09T07:52:13.1231906Z #12 30.82 note: This error originates from a subprocess, and is likely not a problem with pip.
2023-10-09T07:52:13.1232199Z #12 30.91 
2023-10-09T07:52:13.1232604Z #12 30.91 [notice] A new release of pip is available: 23.0.1 -> 23.2.1
2023-10-09T07:52:13.1233066Z #12 30.91 [notice] To update, run: pip install --upgrade pip
2023-10-09T07:52:13.9559336Z #12 ERROR: process "/bin/sh -c pip3 install --no-cache-dir -r dev_pipeline.requirements.txt" did not complete successfully: exit code: 1
2023-10-09T07:52:13.9559955Z 
2023-10-09T07:52:13.9560925Z #11 [linux/arm64 3/4] RUN pip3 install --no-cache-dir -r dev_pipeline.requirements.txt
2023-10-09T07:52:13.9561487Z #11 CANCELED

Runtime information:

No runtime information

Context for the issue:

023-10-09T07:51:49.3119966Z #0 5.467 Collecting PyYAML
2023-10-09T07:51:49.3120597Z #0 5.480 Downloading PyYAML-6.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (705 kB)
2023-10-09T07:51:49.3121271Z #0 5.485 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 705.5/705.5 kB 357.1 MB/s eta 0:00:00
2023-10-09T07:51:49.3121609Z #0 5.823 Collecting scipy
2023-10-09T07:51:49.3122234Z #0 5.838 Downloading scipy-1.11.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (36.4 MB)
2023-10-09T07:51:49.3122912Z #0 5.985 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 36.4/36.4 MB 286.7 MB/s eta 0:00:00
2023-10-09T07:51:49.3123449Z #0 6.088 Collecting delta-spark==2.4.0
2023-10-09T07:51:49.3123996Z #0 6.101 Downloading delta_spark-2.4.0-py3-none-any.whl (20 kB)
2023-10-09T07:51:49.3124358Z #0 6.668 Collecting numpy==1.26.0
2023-10-09T07:51:49.3124952Z #0 6.744 Downloading numpy-1.26.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB)
2023-10-09T07:51:49.3125547Z #0 6.821 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 18.2/18.2 MB 263.0 MB/s eta 0:00:00
2023-10-09T07:51:49.6118360Z #12 7.268 Collecting pandas
2023-10-09T07:51:49.6119741Z #12 7.283 Downloading pandas-2.1.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (12.3 MB)
2023-10-09T07:51:49.6120493Z #12 7.328 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 12.3/12.3 MB 291.9 MB/s eta 0:00:00

For x86_x64 the process is able to get the proper wheel

@aimtsou aimtsou changed the title BUG: Cannot install numoy 1.26.0 in python 3.10 slim-buster image. BUG: Cannot install numoy 1.26.0 in python 3.10 slim-bullseye image. Oct 9, 2023
@rgommers
Copy link
Member
rgommers commented Oct 9, 2023

RuntimeError: Broken toolchain: cannot link a simple C program indicates that a compiler is missing or broken. Can you please indicate the exact architecture/hardware and compilers used?

Also note Collecting numpy==1.19.3 - you're probably trying to build something that depends on oldest-supported-numpy? A full reproducer would help.

@rgommers rgommers added 32 - Installation Problems installing or compiling NumPy and removed 00 - Bug labels Oct 9, 2023
@rgommers rgommers changed the title BUG: Cannot install numoy 1.26.0 in python 3.10 slim-bullseye image. BUG: Cannot install numpy 1.26.0 in python 3.10 slim-bullseye image. Oct 10, 2023
@rgommers
Copy link
Member

Unrelated to numpy 1.26.0 but rather 1.19.3, and seems to be an environment problem. I'll close this issue, because there's nothing in numpy to fix. If you have more questions, please don't hesitate to ask.

@rgommers rgommers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
32 - Installation Problems installing or compiling NumPy
Projects
None yet
Development

No branches or pull requests

2 participants
0