I’ve recently been trying to use the rechunker package on my institution’s HPC cluster, but am running into some issues. I’ve pip installed the rechunker package onto my conda environment on the cluster, but when I try to import the package I get the following error:
In[1]: import rechunker
Out[1]: ImportError: cannot import name 'encode_zarr_attr_value' from 'xarray.backends.zarr' (/scratch/aeb783/penv/lib/python3.8/site-packages/xarray/backends/zarr.py)
Here my conda environment is located at /scratch/aeb783/penv, and I’ve hidden the callback stack for brevity (though I would be willing to share it if it would be useful).
On the other hand, when I try to pip install rechunker onto my local machine, I have no issues importing the rechunker package and it seems to be working as intended.
I don’t understand why this error is occurring on the HPC cluster. Any ideas for how I can resolve this and get rechunker going on the HPC cluster?
It might also be specific to the version of xarray installed. rechunker doesn’t specify a minimum required version, but perhaps should if things like encode_zarr_attr_value aren’t present in older versions of xarray.