Skip to content

Incompatibility between python >= 3.11.9 and dask>=2024.2,<2024.3 requirement #952

@spjuhel

Description

@spjuhel

Describe the bug
Two people reported a bug installing climada (#943, #949), which seems to be related with dask/dask#11038
Dask team explain this is solved with 2024.4.1.

To Reproduce
Steps to reproduce the behavior/error:

mamba create -n climada_env -c conda-forge climada
mamba activate climada_env
python -m unittest climada.engine.test.test_impact # Or actually just trying to use climada in any way

[...]

TypeError: descriptor '__call__' for 'type' objects doesn't apply to a 'property' object

Climada Version: 5.0.0

System Information (please complete the following information):

  • Operating system and version: Any
  • Python version: >=3.11.9

We either need to:

  1. update dask (but looking at the requirements, this seems non-trivial):

- dask>=2024.2,<2024.3 # 2024.3 apparently instroduced a sophisticated locking mechanism which leads to read-only exceptions in several places

  1. Enforce python<3.11.9

In any case, we will need to update dask at some point, @emanuel-schmid do you know how hard that would actually be?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions