AttributeError: np.unicode_
was removed in the NumPy 2.0 release. Use np.str_
instead
#8133
Closed
4 tasks done
Labels
What happened?
We've been getting this AttributeError on PyGMT's dev CI which tests nightly packages of numpy/xarray/etc. See https://github.com/GenericMappingTools/pygmt/actions/runs/6043991082/job/16401918043#step:16:40
What did you expect to happen?
Running
import xarray as xr
should work with numpy 2.0.Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
Anything else we need to know?
See https://numpy.org/devdocs/release/2.0.0-notes.html#numpy-2-0-python-api-removals. Relevant code at xarray is here
xarray/xarray/core/dtypes.py
Lines 36 to 44 in 1043a9e
Environment
The text was updated successfully, but these errors were encountered: