Since today, our test pipeline is failing because healpix seems to be compiled against numpy 1.x.
To recreate:
conda create -n test python=3
conda activate test
python -m pip install healpix
python -c "import healpix"
This returns
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "<string>", line 1, in <module>
File "/home/sander/miniconda3/envs/test/lib/python3.12/site-packages/healpix/__init__.py", line 9, in <module>
import chealpix as _chp
Traceback (most recent call last):
File "/home/sander/miniconda3/envs/test/lib/python3.12/site-packages/numpy/core/_multiarray_umath.py", line 44, in __getattr__
raise ImportError(msg)
ImportError:
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.0 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.
Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to
downgrade to 'numpy<2' or try to upgrade the affected module.
We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/sander/miniconda3/envs/test/lib/python3.12/site-packages/healpix/__init__.py", line 9, in <module>
import chealpix as _chp
ImportError: numpy.core.multiarray failed to import
I unfortunately did not get it to work by force reinstalling the git repo, so I am not entirely sure where that is failing
Dear developers,
Since today, our test pipeline is failing because healpix seems to be compiled against
numpy 1.x
.To recreate:
This returns
I unfortunately did not get it to work by force reinstalling the git repo, so I am not entirely sure where that is failing