You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=========================== short test summary info ============================
FAILED genno/tests/compat/test_compat.py::test_import_pyam - AttributeError: `np.string_` was removed in the NumPy 2.0 release. Use `np.bytes_` instead.. Did you mean: 'strings'?
FAILED genno/tests/core/test_computer.py::test_require_compat - AttributeError: `np.string_` was removed in the NumPy 2.0 release. Use `np.bytes_` instead.. Did you mean: 'strings'?
FAILED genno/tests/core/test_exceptions.py::test_computationerror_ipython - KeyError: 'evalue'
FAILED genno/tests/test_operator.py::test_unique_units_from_dim[attrseries] - AssertionError: Regex pattern did not match.
Regex: "Non-unique units \\['kg', 'km'\\] for .* 'Baz'"
Input: "Non-unique units [np.str_('kg'), np.str_('km')] for AttrSeries 'Baz'"
FAILED genno/tests/test_operator.py::test_unique_units_from_dim[sparsedataarray] - AssertionError: Regex pattern did not match.
Regex: "Non-unique units \\['kg', 'km'\\] for .* 'Baz'"
Input: "Non-unique units [np.str_('kg'), np.str_('km')] for SparseDataArray 'Baz'"
FAILED genno/tests/core/test_quantity.py::TestQuantity::test_ffill[sparsedataarray] - ImportError: numpy.core.multiarray failed to import
ERROR genno/tests/compat/test_pyam.py - AttributeError: `np.string_` was removed in the NumPy 2.0 release. Use `np.bytes_` instead.. Did you mean: 'strings'?
ERROR genno/tests/compat/test_pyam.py - AttributeError: `np.string_` was removed in the NumPy 2.0 release. Use `np.bytes_` instead.. Did you mean: 'strings'?
pyam-iamc 2.2.3 was released with Pin numpy<2.0 IAMconsortium/pyam#861 that restricts numpy < 2 in the package dependencies, perhaps for this reason.
The pandera issue was resolved upstream.
pyam-iamc 2.2.4 was released with Remove numpy pin IAMconsortium/pyam#871 removing the pin, so it is no longer necessary to override it in the genno CI workflow.
With the release of NumPy 2.0.0, we see failures of the "pytest" GitHub Actions workflow, like here:
These appear to be:
np.string_
was removed" → pandera not compatible with numpy 2.0 unionai-oss/pandera#1656 (duplicate) viaixmp4
andpyam-iamc
.pyam-iamc
2.2.3 was released with Pin numpy<2.0 IAMconsortium/pyam#861 that restrictsnumpy < 2
in the package dependencies, perhaps for this reason.SparseDataArray.ffill()
.np.str_
instead of ordinary Pythonstr
are compared.See also numpy/numpy#26191 for the status of other packages.
Fix for (3):
Mitigations for (1), (2)—some or all of:
The text was updated successfully, but these errors were encountered: