Skip to content

Cannot import name '_selector_policy' from 'fsspec.asyn' #422

@AlexandrePradeilles

Description

@AlexandrePradeilles

Recently, fsspec removed _selector_policy here: fsspec/filesystem_spec@01ecda4
This causes an import error in my case when running a dvc exp push
Packages versions (simple uv lock and sync to install them with no special constraints on versions):
dvc 3.61.0
scmrepo 3.3.11
fsspec 2025.7.0

It seems that just like in their PR, it's possible to not use _selector_policy anymore in the get_loop function in async.py.
At least in my case simply removing it did the trick.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions