Skip to content

New numpy version has binary incompatibility #174

@kkawaguc

Description

@kkawaguc

Trying to import climt (v0.17.12) throws this error:

Traceback (most recent call last):
File "/gws/nopw/j04/csgap/kkawaguchi/scripts/Surface_Pattern/climt_sst_patches.py", line 18, in
import climt
File "/gws/nopw/j04/csgap/kkawaguchi/scripts/.venv/lib64/python3.9/site-packages/climt/init.py", line 4, in
from ._core import (
File "/gws/nopw/j04/csgap/kkawaguchi/scripts/.venv/lib64/python3.9/site-packages/climt/_core/init.py", line 9, in
from .initialization import get_default_state, get_grid
File "/gws/nopw/j04/csgap/kkawaguchi/scripts/.venv/lib64/python3.9/site-packages/climt/_core/initialization.py", line 5, in
from .._components import RRTMGShortwave, RRTMGLongwave
File "/gws/nopw/j04/csgap/kkawaguchi/scripts/.venv/lib64/python3.9/site-packages/climt/_components/init.py", line 4, in
from .berger_solar_insolation import BergerSolarInsolation
File "/gws/nopw/j04/csgap/kkawaguchi/scripts/.venv/lib64/python3.9/site-packages/climt/_components/berger_solar_insolation.py", line 4, in
from ._berger_solar_insolation import get_solar_parameters, get_orbital_parameters
File "climt/_components/_berger_solar_insolation.pyx", line 1, in init climt._components._berger_solar_insolation
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

This error appears to be related to this: https://stackoverflow.com/questions/78634235/numpy-dtype-size-changed-may-indicate-binary-incompatibility-expected-96-from

Suggested solution: dependency for numpy to be less than v2.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions