Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
spjuhel opened this issue Sep 26, 2024 · 1 comment · Fixed by conda-forge/climada-feedstock#14

Comments

@spjuhel
Copy link
Collaborator

spjuhel commented Sep 26, 2024

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?

@emanuel-schmid
Copy link
Collaborator

@spjuhel thanks for reporting the issue! Nasty one, as it is apparently OS dependent.

We run the very same test to reproduce it on Linux on a daily base: https://ied-wcr-jenkins.ethz.ch/job/conda-forge_installation/
I.g. sucessfully.

However I can reproduce the behavior on Windows 10, expanding the incompatibility to dask 2024.1 (which is the version pinned to climada 5.0.0)

Upgrading to dask >= 2024.5 is no problem and already the requirement in the develop branch.

But for climada installation working out of the box on Windows, we'll need a new build on conda-forge. I'll try and make one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants