core-bioimage-io-python icon indicating copy to clipboard operation
core-bioimage-io-python copied to clipboard

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

Open oeway opened this issue 8 months ago • 2 comments

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

oeway avatar Mar 20 '25 21:03 oeway