Closed dnerini closed 2 years ago
upgrading to numpy==1.22.0 seems to solve the issue:
conda create -n pysteps-38 python=3.8 -c conda-forge
conda activate pysteps-38
conda install -c conda-forge cython numpy jsmin jsonschema matplotlib netCDF4 opencv pillow pyproj scipy dask
git clone https://github.com/pySTEPS/pysteps.git
cd pysteps/
pip install numpy --upgrade
pip install .
cd ..
python -c "import pysteps"
works!
The cause seems to be similar to what described here https://github.com/scikit-learn-contrib/hdbscan/issues/457#issuecomment-773671043 in that the pysteps build dependencies don't pin any version for numpy. In turns, this breaks the environment when the most recently available version in conda-forge is different from the one available from pypi, as it happened yesterday when numpy 1.22 was released on PyPI but not conda-forge.
see #250.
The error appeared sometimes in the past few days and doesn't seem to be related to any of our code changes, since it appears when re-running previously successful jobs: https://github.com/pySTEPS/pysteps/runs/4680236854?check_suite_focus=true
Full traceback
Steps to reproduce: