CLIMADA-project / climada_python

Python (3.8+) version of CLIMADA
GNU General Public License v3.0
291 stars 115 forks source link

upgrading dask to 2024.3 leads to tests failing #861

Open emanuel-schmid opened 3 months ago

emanuel-schmid commented 3 months ago

dask 2024.3 apparently instroduced a sophisticated locking mechanism which leads to read-only exceptions in various locations

The current approach to deal with this is to pin dask down to 2024.2

emanuel-schmid commented 3 months ago

More failing tests:

peanutfun commented 2 months ago

Are you sure this is due to dask and not another dependency? I can find nothing related to file locking in the changelog, see https://docs.dask.org/en/stable/changelog.html#v2024-3-0.

emanuel-schmid commented 2 months ago

Well - this is the full list of changed packages:

package works works not
coverage 7.4.4 7.4.3
dask 2024.2.1 2024.3.0
dask-core 2024.2.1 2024.3.0
dask-expr   1.0.1
distributed 2024.2.1 2024.3.0

So it could be distributed I guess. They come together, as for climada, the only package depending on distributed is dask. I haven't checked whether one can install distributed 2024.2 together with dask 2024.3.

emanuel-schmid commented 2 months ago

(I wouldn't be surprised if the problem disappears with dask 2024.x.y where x is > 3 😁)