Skip to content

(CTTC) Fix version of numpy<2.0.0

Reporters

  • Lluis Gifre (CTTC)

Description

Last release of numpy breaks compatibility with pandas and other frameworks. Fix requirement numpy to numpy<2.0.0 by now.

Deployment environment

  • Operating System (include version): all
  • MicroK8s (include version and add-ons): all
  • TeraFlowSDN (include release/branch-name/commit-id): all

TFS deployment settings

Any including a component using numpy.

Sequence of actions that resulted in the bug

Normal deployment.

Document the explicit error

/usr/local/lib/python3.9/site-packages/pandas/__init__.py:22: in <module>
    from pandas.compat import is_numpy_dev as _is_numpy_dev  # pyright: ignore # noqa:F401
/usr/local/lib/python3.9/site-packages/pandas/compat/__init__.py:18: in <module>
    from pandas.compat.numpy import (
/usr/local/lib/python3.9/site-packages/pandas/compat/numpy/__init__.py:4: in <module>
    from pandas.util.version import Version
/usr/local/lib/python3.9/site-packages/pandas/util/__init__.py:2: in <module>
    from pandas.util._decorators import (  # noqa:F401
/usr/local/lib/python3.9/site-packages/pandas/util/_decorators.py:14: in <module>
    from pandas._libs.properties import cache_readonly
/usr/local/lib/python3.9/site-packages/pandas/_libs/__init__.py:13: in <module>
    from pandas._libs.interval import Interval
pandas/_libs/interval.pyx:1: in init pandas._libs.interval
    ???
E   ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject