-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unrecognized chunk manager dask - must be one of: [] #7856
Comments
cc @TomNicholas |
Our backends are stored in a dict like this: |
Hmm, it's acting as if dask is not installed/importable. Any idea what's different about your setup vs the xarray CI? Yes daskmanager is also registered via a different entry point, but that should already be set up to happen by default. To see which chunk managers it can find you can call from xarray.core.parallelcompat import list_chunkmanagers
list_chunkmanagers() I expect it will return an empty list in your case, but that's the code we should be trying to debug on your system. |
The CI recreates its entire environment all the time and I don't? from xarray.core.parallelcompat import list_chunkmanagers
list_chunkmanagers()
Out[1]: {} |
Yes, but I'm wondering what functional difference is that making here? Have you tried doing the local pip install of the xarray dev version again? I.e. |
Nope, I have not tried that. I suspect things will just self heal then considering the CI without understanding the root cause. Looking at the backends; we initialize a dict here: xarray/xarray/backends/common.py Line 435 in d8ec3a3
Stores each of our entrypoints like this: xarray/xarray/backends/h5netcdf_.py Line 438 in d8ec3a3
Then we append the local and other entrypoints together here: xarray/xarray/backends/plugins.py Lines 106 to 116 in d8ec3a3
But xarray/xarray/core/parallelcompat.py Lines 48 to 62 in d8ec3a3
Why do the backends use the |
The only reason I didn't separate the chunkmanager entry points into local and other entry points was simplicity of code. I didn't realise that might make a difference when it came to whether or not you have to pip install - I assumed that adding a new type of entry point would require re-installing no matter how I implemented it. If that's not the case perhaps we should adjust it (and re-release). |
Solution for those who just found this issue:Just re-install xarray. @Illviljan I brought this up in the xarray team call today and we decided that since this only affects people who have previously cloned the xarray repository, are using a development install, and then updated by pulling changes from main; this problem only affects maybe ~10-20 people worldwide, all of whom are developers who are equipped to quickly solve it. I'm going to add a note into the what's new entry for this version now - if you think we need to do more then let me know. EDIT: I added a note to whatsnew in 69445c6, and updated the release notes. |
Same issue here. I installed xarray with conda/mamba (not a dev install).
Edit: downgrading to 2023.4.0 solved the issue. |
how did you set up your environment? This works for me: mamba create -n test python=3.11 xarray dask netcdf4 pooch ipython
mamba activate test
ipython xr.tutorial.open_dataset("rasm", chunks={}) Interestingly enough, though, is that you should only see this with |
Same issue here. Setup with |
Hello everyone, I'm still stumbling up with this issue one year after. I'm using PyInsaller to create a binary from a library, but once created, it doesn't work (it occurs the problem reported here). |
Same issue here in 2024, freshly installed OSX environment with xarray in it. conda install -c conda-forge dask doesn't fix it conda install -c conda-forge xarray thereafter doesn't reinstall (maybe I need to specify a particular xarray version perhaps?) Or restart Jupyter, or restart the computer, or ... or... ? I know, nobody's job to educate me, but this issue seemed to perhaps need another mention here in late 2024 |
What happened?
I have just updated my development branch of xarray to latest main. No other changes.
When using
.chunk()
on a Variable xarray crashes.What did you expect to happen?
No crash
Minimal Complete Verifiable Example
MVCE confirmation
Relevant log output
Anything else we need to know?
Likely from #7019.
Environment
xr.show_versions()
C:\Users\J.W\anaconda3\envs\xarray-tests\lib\site-packages_distutils_hack_init_.py:33: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
INSTALLED VERSIONS
commit: None
python: 3.10.6 | packaged by conda-forge | (main, Aug 22 2022, 20:30:19) [MSC v.1929 64 bit (AMD64)]
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
byteorder: little
LC_ALL: None
LANG: en
LOCALE: ('Swedish_Sweden', '1252')
libhdf5: 1.12.2
libnetcdf: 4.8.1
xarray: 2022.9.1.dev266+gbd01f9cc.d20221006
pandas: 1.5.2
numpy: 1.23.5
scipy: 1.9.3
netCDF4: 1.6.0
pydap: installed
h5netcdf: 1.0.2
h5py: 3.7.0
Nio: None
zarr: 2.13.2
cftime: 1.6.2
nc_time_axis: 1.4.1
PseudoNetCDF: 3.2.2
iris: 3.3.0
bottleneck: 1.3.5
dask: 2022.9.2
distributed: 2022.9.2
matplotlib: 3.6.2
cartopy: 0.21.0
seaborn: 0.13.0.dev0
numbagg: 0.2.1
fsspec: 2022.10.0
cupy: None
pint: 0.19.2
sparse: 0.13.0
flox: 999
numpy_groupies: 0.9.14+22.g19c7601
setuptools: 65.5.1
pip: 22.3.1
conda: None
pytest: 7.2.0
mypy: 1.2.0
IPython: 7.33.0
sphinx: 5.3.0
The text was updated successfully, but these errors were encountered: