Installing numpy-2 together with cf-units from pip is possible, but when running it, the following error is given:
venv/lib/python3.11/site-packages/iris/common/mixin.py:10: in <module>
import cf_units
venv/lib/python3.11/site-packages/cf_units/__init__.py:23: in <module>
from cf_units import _udunits2 as _ud
cf_units/_udunits2.pyx:1: in init cf_units._udunits2
???
E ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 187, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.10/runpy.py", line 146, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.10/runpy.py", line 110, in _get_module_details
__import__(pkg_name)
File "/home/heikok/cfunits2/lib/python3.10/site-packages/cf_units/__init__.py", line 23, in <module>
from cf_units import _udunits2 as _ud
File "cf_units/_udunits2.pyx", line 1, in init cf_units._udunits2
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
Expected Behaviour
cf-units should work together with numpy2.
or cf-units should be marked incompatible with numpy2
đ Bug Report
Installing numpy-2 together with cf-units from pip is possible, but when running it, the following error is given:
How to Reproduce
Steps to reproduce the behaviour:
Expected Behaviour
cf-units should work together with numpy2. or cf-units should be marked incompatible with numpy2
Environment