rechunker icon indicating copy to clipboard operation
rechunker copied to clipboard

Clarify xarray dependency

Open rabernat opened this issue 5 years ago • 2 comments

It is not clear right now whether xarray is required dependency for rechunker and if so, what versions are required. See this Discourse thread for context: https://discourse.pangeo.io/t/issues-pip-installing-rechunker-onto-hpc-conda-environment/1034

A user reported

ImportError: cannot import name 'encode_zarr_attr_value' from 'xarray.backends.zarr' (/scratch/aeb783/penv/lib/python3.8/site-packages/xarray/backends/zarr.py)

due to an incompatible xarray version.

rabernat avatar Nov 19 '20 16:11 rabernat

Looking at the code it seems it would be pretty simple to demote xarray to be an optional dependency of rechunker?

TomNicholas avatar Sep 12 '22 22:09 TomNicholas

I've opened a PR for this at #123.

tomwhite avatar Sep 13 '22 09:09 tomwhite