-
Notifications
You must be signed in to change notification settings - Fork 3
Description
I am unable to install splinecalib. There was a major update to numPy yesterday, and the package is attempting to install it as it is specified in the pyproject.toml
[build-system]
requires = ["setuptools", "setuptools-scm", "numpy"]
build-backend = "setuptools.build_meta"
!pip install splinecalib --verbose --no-deps
Using pip 24.0 from /usr/local/lib/python3.10/dist-packages/pip (python 3.10)
Collecting splinecalib
Downloading splinecalib-0.0.7.tar.gz (1.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 10.6 MB/s eta 0:00:00
Running command pip subprocess to install build dependencies
Using pip 24.0 from /usr/local/lib/python3.10/dist-packages/pip (python 3.10)
Collecting setuptools
Obtaining dependency information for setuptools from https://files.pythonhosted.org/packages/de/88/70c5767a0e43eb4451c2200f07d042a4bcd7639276003a9c54a68cfcc1f8/setuptools-70.0.0-py3-none-any.whl.metadata
Using cached setuptools-70.0.0-py3-none-any.whl.metadata (5.9 kB)
Collecting setuptools-scm
Obtaining dependency information for setuptools-scm from https://files.pythonhosted.org/packages/a0/b9/1906bfeb30f2fc13bb39bf7ddb8749784c05faadbd18a21cf141ba37bff2/setuptools_scm-8.1.0-py3-none-any.whl.metadata
Downloading setuptools_scm-8.1.0-py3-none-any.whl.metadata (6.6 kB)
Collecting numpy
Obtaining dependency information for numpy from https://files.pythonhosted.org/packages/d6/a8/6a2419c40c7b6f7cb4ef52c532c88e55490c4fa92885964757d507adddce/numpy-2.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata
Downloading numpy-2.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (60 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 60.9/60.9 kB 2.7 MB/s eta 0:00:00
Collecting packaging>=20 (from setuptools-scm)
Obtaining dependency information for packaging>=20 from https://files.pythonhosted.org/packages/08/aa/cc0199a5f0ad350994d660967a8efb233fe0416e4639146c089643407ce6/packaging-24.1-py3-none-any.whl.metadata
Using cached packaging-24.1-py3-none-any.whl.metadata (3.2 kB)
Collecting tomli>=1 (from setuptools-scm)
Obtaining dependency information for tomli>=1 from https://files.pythonhosted.org/packages/97/75/10a9ebee3fd790d20926a90a2547f0bf78f371b2f13aa822c759680ca7b9/tomli-2.0.1-py3-none-any.whl.metadata
Using cached tomli-2.0.1-py3-none-any.whl.metadata (8.9 kB)
Using cached setuptools-70.0.0-py3-none-any.whl (863 kB)
Downloading setuptools_scm-8.1.0-py3-none-any.whl (43 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 43.7/43.7 kB 3.1 MB/s eta 0:00:00
Downloading numpy-2.0.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (19.3 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 19.3/19.3 MB 74.5 MB/s eta 0:00:00
Using cached packaging-24.1-py3-none-any.whl (53 kB)
Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
Installing collected packages: tomli, setuptools, packaging, numpy, setuptools-scm
Creating /tmp/pip-build-env-13p0zqnj/overlay/local/bin
changing mode of /tmp/pip-build-env-13p0zqnj/overlay/local/bin/f2py to 755
changing mode of /tmp/pip-build-env-13p0zqnj/overlay/local/bin/numpy-config to 755
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
ipython 7.34.0 requires jedi>=0.16, which is not installed.
astropy 5.3.4 requires numpy<2,>=1.21, but you have numpy 2.0.0 which is incompatible.
cudf-cu12 24.4.1 requires numpy<2.0a0,>=1.23, but you have numpy 2.0.0 which is incompatible.
cupy-cuda12x 12.2.0 requires numpy<1.27,>=1.20, but you have numpy 2.0.0 which is incompatible.
ibis-framework 8.0.0 requires numpy<2,>=1, but you have numpy 2.0.0 which is incompatible.
numba 0.58.1 requires numpy<1.27,>=1.22, but you have numpy 2.0.0 which is incompatible.
rmm-cu12 24.4.0 requires numpy<2.0a0,>=1.23, but you have numpy 2.0.0 which is incompatible.
scipy 1.11.4 requires numpy<1.28.0,>=1.21.6, but you have numpy 2.0.0 which is incompatible.
tensorflow 2.15.0 requires numpy<2.0.0,>=1.23.5, but you have numpy 2.0.0 which is incompatible.
Successfully installed numpy-2.0.0 packaging-24.1 setuptools-70.0.0 setuptools-scm-8.1.0 tomli-2.0.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Installing build dependencies ... done
Running command Getting requirements to build wheel
running egg_info
writing splinecalib.egg-info/PKG-INFO
writing dependency_links to splinecalib.egg-info/dependency_links.txt
writing requirements to splinecalib.egg-info/requires.txt
writing top-level names to splinecalib.egg-info/top_level.txt
ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
reading manifest file 'splinecalib.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'splinecalib.egg-info/SOURCES.txt'
Getting requirements to build wheel ... done
Running command pip subprocess to install backend dependencies
Using pip 24.0 from /usr/local/lib/python3.10/dist-packages/pip (python 3.10)
Collecting wheel
Obtaining dependency information for wheel from https://files.pythonhosted.org/packages/7d/cd/d7460c9a869b16c3dd4e1e403cce337df165368c71d6af229a74699622ce/wheel-0.43.0-py3-none-any.whl.metadata
Using cached wheel-0.43.0-py3-none-any.whl.metadata (2.2 kB)
Using cached wheel-0.43.0-py3-none-any.whl (65 kB)
Installing collected packages: wheel
Creating /tmp/pip-build-env-13p0zqnj/normal/local/bin
changing mode of /tmp/pip-build-env-13p0zqnj/normal/local/bin/wheel to 755
Successfully installed wheel-0.43.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
Installing backend dependencies ... done
Running command Preparing metadata (pyproject.toml)
running dist_info
creating /tmp/pip-modern-metadata-n6nkp1n9/splinecalib.egg-info
writing /tmp/pip-modern-metadata-n6nkp1n9/splinecalib.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-modern-metadata-n6nkp1n9/splinecalib.egg-info/dependency_links.txt
writing requirements to /tmp/pip-modern-metadata-n6nkp1n9/splinecalib.egg-info/requires.txt
writing top-level names to /tmp/pip-modern-metadata-n6nkp1n9/splinecalib.egg-info/top_level.txt
writing manifest file '/tmp/pip-modern-metadata-n6nkp1n9/splinecalib.egg-info/SOURCES.txt'
ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
reading manifest file '/tmp/pip-modern-metadata-n6nkp1n9/splinecalib.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file '/tmp/pip-modern-metadata-n6nkp1n9/splinecalib.egg-info/SOURCES.txt'
creating '/tmp/pip-modern-metadata-n6nkp1n9/splinecalib-0.0.7.dist-info'
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: splinecalib
Running command Building wheel for splinecalib (pyproject.toml)
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-cpython-310
creating build/lib.linux-x86_64-cpython-310/splinecalib
copying splinecalib/init.py -> build/lib.linux-x86_64-cpython-310/splinecalib
copying splinecalib/calib_utils.py -> build/lib.linux-x86_64-cpython-310/splinecalib
copying splinecalib/splinecalib.py -> build/lib.linux-x86_64-cpython-310/splinecalib
running build_ext
building 'loss_fun_c' extension
creating build/temp.linux-x86_64-cpython-310
creating build/temp.linux-x86_64-cpython-310/splinecalib
x86_64-linux-gnu-gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/tmp/pip-build-env-13p0zqnj/overlay/local/lib/python3.10/dist-packages/numpy/_core/include -I/usr/include/python3.10 -c splinecalib/loss_fun_c.c -o build/temp.linux-x86_64-cpython-310/splinecalib/loss_fun_c.o
In file included from /tmp/pip-build-env-13p0zqnj/overlay/local/lib/python3.10/dist-packages/numpy/_core/include/numpy/ndarraytypes.h:1909,
from /tmp/pip-build-env-13p0zqnj/overlay/local/lib/python3.10/dist-packages/numpy/_core/include/numpy/ndarrayobject.h:12,
from /tmp/pip-build-env-13p0zqnj/overlay/local/lib/python3.10/dist-packages/numpy/_core/include/numpy/arrayobject.h:5,
from splinecalib/loss_fun_c.c:1154:
/tmp/pip-build-env-13p0zqnj/overlay/local/lib/python3.10/dist-packages/numpy/_core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
17 | #warning "Using deprecated NumPy API, disable it with "
| ^~~~~~~
In file included from /usr/include/python3.10/Python.h:74,
from splinecalib/loss_fun_c.c:16:
splinecalib/loss_fun_c.c: In function ‘__pyx_f_5numpy_PyDataType_SHAPE’:
splinecalib/loss_fun_c.c:3539:39: error: ‘PyArray_Descr’ {aka ‘struct _PyArray_Descr’} has no member named ‘subarray’
3539 | __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape));
| ^~
/usr/include/python3.10/object.h:112:41: note: in definition of macro ‘_PyObject_CAST’
112 | #define _PyObject_CAST(op) ((PyObject*)(op))
| ^~
splinecalib/loss_fun_c.c:1796:27: note: in expansion of macro ‘Py_INCREF’
1796 | #define __Pyx_INCREF(r) Py_INCREF(r)
| ^~~~~~~~~
splinecalib/loss_fun_c.c:3539:5: note: in expansion of macro ‘__Pyx_INCREF’
3539 | __Pyx_INCREF(((PyObject*)__pyx_v_d->subarray->shape));
| ^~~~~~~~~~~~
splinecalib/loss_fun_c.c:3540:36: error: ‘PyArray_Descr’ {aka ‘struct _PyArray_Descr’} has no member named ‘subarray’
3540 | __pyx_r = ((PyObject*)__pyx_v_d->subarray->shape);
| ^~
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
error: subprocess-exited-with-error
× Building wheel for splinecalib (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /usr/bin/python3 /usr/local/lib/python3.10/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /tmp/tmplmwqmkp1
cwd: /tmp/pip-install-ncs4wl02/splinecalib_cede067df01b4261b1685661973e52d3
Building wheel for splinecalib (pyproject.toml) ... error
ERROR: Failed building wheel for splinecalib
Failed to build splinecalib
ERROR: Could not build wheels for splinecalib, which is required to install pyproject.toml-based projects