You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I understood it correctly, Dask is not currently a dependency because it is needed only if chunking is explicitly required. Unfortunately, it looks like no check is performed when chunks is passed, leading to an error message like this:
---------------------------------------------------------------------------ModuleNotFoundErrorTraceback (mostrecentcalllast)
[...]
~\miniconda3\envs\env\lib\site-packages\rioxarray\_io.pyinopen_rasterio(filename, parse_coordinates, chunks, cache, lock, masked, mask_and_scale, variable, group, default_name, **open_kwargs)
863864ifchunksisnotNone:
-->865result=_prepare_dask(result, riods, filename, chunks)
866867# Make the file closeable~\miniconda3\envs\env\lib\site-packages\rioxarray\_io.pyin_prepare_dask(result, riods, filename, chunks)
573 """
574# pylint: disable=import-outside-toplevel-->575fromdask.baseimporttokenize576577# augment the token with the file modification timeModuleNotFoundError: Nomodulenamed'dask'
Probably an explicit check (try-except?) on dask could be added to improve the error message?
We encountered this "problem" in bopen/xarray-sentinel/issues/50, and we could wrap rioxarray error message there, but we feel this could be a better place to put such check. If wanted/appreciated, I am willing to submit a PR.
The text was updated successfully, but these errors were encountered:
If I understood it correctly, Dask is not currently a dependency because it is needed only if chunking is explicitly required. Unfortunately, it looks like no check is performed when
chunks
is passed, leading to an error message like this:Probably an explicit check (try-except?) on dask could be added to improve the error message?
We encountered this "problem" in bopen/xarray-sentinel/issues/50, and we could wrap rioxarray error message there, but we feel this could be a better place to put such check. If wanted/appreciated, I am willing to submit a PR.
The text was updated successfully, but these errors were encountered: