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
The current version of the code has a conflict with newer version of numpy when it's version is >= 2.0 because np.product is deprecated.
A similar issue and its solution were discussed from eofs package, and we can do similar here.
Traceback (most recent call last):
File "/Users/lee1043/mambaforge/envs/pmp_devel_20241106_xcdat0.7.3/bin/enso_driver.py", line 16, in <module>
from EnsoMetrics.EnsoCollectionsLib import (
File "/Users/lee1043/mambaforge/envs/pmp_devel_20241106_xcdat0.7.3/lib/python3.10/site-packages/EnsoMetrics/__init__.py", line 2, in <module>
from .EnsoComputeMetricsLib import *
File "/Users/lee1043/mambaforge/envs/pmp_devel_20241106_xcdat0.7.3/lib/python3.10/site-packages/EnsoMetrics/EnsoComputeMetricsLib.py", line 11, in <module>
from .EnsoMetricsLib import BiasPrLatRmse, BiasPrLonRmse, BiasPrRmse, BiasSshLatRmse, BiasSshLonRmse, BiasSshRmse,\
File "/Users/lee1043/mambaforge/envs/pmp_devel_20241106_xcdat0.7.3/lib/python3.10/site-packages/EnsoMetrics/EnsoMetricsLib.py", line 12, in <module>
from .EnsoUvcdatToolsLib import ArrayListAx, ArrayToList, AverageMeridional, AverageZonal, BasinMask, CheckTime,\
File "/Users/lee1043/mambaforge/envs/pmp_devel_20241106_xcdat0.7.3/lib/python3.10/site-packages/EnsoMetrics/EnsoUvcdatToolsLib.py", line 14, in <module>
from numpy import product as NPproduct
ImportError: cannot import name 'product' from 'numpy' (/Users/lee1043/mambaforge/envs/pmp_devel_20241106_xcdat0.7.3/lib/python3.10/site-packages/numpy/__init__.py)
The text was updated successfully, but these errors were encountered:
The current version of the code has a conflict with newer version of
numpy
when it's version is >= 2.0 becausenp.product
is deprecated.A similar issue and its solution were discussed from eofs package, and we can do similar here.
The text was updated successfully, but these errors were encountered: