I just got a message that numpy 2.0 is released (NumPy 2.0 migration guide — NumPy v2.1.dev0 Manual) and curisouly, I was testing a notebook for a class and got this error. (I’m using colab).
from pygmt.datasets import load_earth_relief
# load the default grid (gridline-registered 1 arc-degree grid)
grid = load_earth_relief()
ModuleNotFoundError Traceback (most recent call last)
in <cell line: 1>()
----> 1 from pygmt.datasets import load_earth_relief
2 # load the default grid (gridline-registered 1 arc-degree grid)
3 grid = load_earth_relief()
11 frames
/usr/local/lib/python3.10/site-packages/xarray/core/nputils.py in
13 # remove once numpy 2.0 is the oldest supported version
14 if module_available(“numpy”, minversion=“2.0.0.dev0”):
—> 15 from numpy.lib.array_utils import ( # type: ignore[import-not-found,unused-ignore]
16 normalize_axis_index,
17 )
ModuleNotFoundError: No module named ‘numpy.lib.array_utils’
Do you think there will be incompatibility problems in the near future ?
Cheers
Andre