Skip to content

cannot import name 'ops' from 'xarray.core' #456

Open
@oeway

Description

@oeway

The new xarray version(2025.3.0) removed ops from their core, and it now cause this error:

20_578821_1/runtime_resources/pip/a5f1874eaf70cb0ae9ccdcf572824a4d19ad4882/virtualenv/lib/python3.11/site-packages/bioimageio/core/_magic_tensor_ops.py", line 9, in <module> from xarray.core import nputils, ops ImportError: cannot import name 'ops' from 'xarray.core' 

Pin the version fixes it:

pip install xarray==2025.1.2

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