Skip to content

RuntimeError: Attempting to use an asynchronous Client in a synchronous context of dask.compute #1016

@GaetanLepage

Description

@GaetanLepage

Describe the issue:

When bumping dask to 2025.3.0, almost all tests in those files

tests/model_selection/test_incremental.py
tests/model_selection/test_successive_halving.py
tests/model_selection/test_hyperband.py

sarted failing with:

RuntimeError: Attempting to use an asynchronous Client in a synchronous context of `dask.compute`

Minimal Complete Verifiable Example:

$ pytest

Anything else we need to know?:

Environment:

  • Dask version: 2025.3.0
  • Python version: 3.12
  • Operating System: NixOS
  • Install method (conda, pip, source): nix

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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