makepath / xarray-spatial

Raster-based Spatial Analytics for Python
https://xarray-spatial.readthedocs.io/
MIT License
805 stars 81 forks source link

Jobs build failed #779

Closed thuydotm closed 1 year ago

thuydotm commented 1 year ago

Our tests recently failed. Seems like there's some versioning incompatibility.

=========================== short test summary info ============================
[568](https://github.com/makepath/xarray-spatial/actions/runs/5078439684/jobs/9122944611?pr=778#step:5:569)
FAILED xrspatial/tests/test_datasets.py::test_make_terrain - AttributeError: module 'numpy' has no attribute 'warnings'
[569](https://github.com/makepath/xarray-spatial/actions/runs/5078439684/jobs/9122944611?pr=778#step:5:570)
FAILED xrspatial/tests/test_terrain.py::test_terrain_cpu - AttributeError: module 'numpy' has no attribute 'warnings'
[570](https://github.com/makepath/xarray-spatial/actions/runs/5078439684/jobs/9122944611?pr=778#step:5:571)
FAILED xrspatial/tests/test_utils.py::test_canvas_like - AttributeError: module 'numpy' has no attribute 'warnings'
[571](https://github.com/makepath/xarray-spatial/actions/runs/5078439684/jobs/9122944611?pr=778#step:5:572)
ERROR xrspatial/tests/test_viewshed.py::test_viewshed_invalid_x_view - AttributeError: module 'numpy' has no attribute 'warnings'
[572](https://github.com/makepath/xarray-spatial/actions/runs/5078439684/jobs/9122944611?pr=778#step:5:573)
ERROR xrspatial/tests/test_viewshed.py::test_viewshed_invalid_y_view - AttributeError: module 'numpy' has no attribute 'warnings'
[573](https://github.com/makepath/xarray-spatial/actions/runs/5078439684/jobs/9122944611?pr=778#step:5:574)
ERROR xrspatial/tests/test_viewshed.py::test_viewshed - AttributeError: module 'numpy' has no attribute 'warnings'
[574](https://github.com/makepath/xarray-spatial/actions/runs/5078439684/jobs/9122944611?pr=778#step:5:575)
====== 3 failed, 287 passed, 77 skipped, 23 warnings, 3 errors in 41.35s =======
[575](https://github.com/makepath/xarray-spatial/actions/runs/5078439684/jobs/9122944611?pr=778#step:5:576)
Error: Process completed with exit code 1.
thuydotm commented 1 year ago

The build failed is caused by numpy 1.24. Downgraded to numpy 1.23 fixes the issue. See here for more details: https://stackoverflow.com/questions/74893742/how-to-solve-attributeerror-module-numpy-has-no-attribute-bool