From c84d5d78e6203dcd586e745dd18505b9b5ee6b88 Mon Sep 17 00:00:00 2001 From: Thomas Nicholas Date: Wed, 5 Jul 2023 15:31:58 -0400 Subject: [PATCH 1/2] add package name to error message --- xarray/core/parallelcompat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xarray/core/parallelcompat.py b/xarray/core/parallelcompat.py index 4df4ff235c6..58c102ba284 100644 --- a/xarray/core/parallelcompat.py +++ b/xarray/core/parallelcompat.py @@ -132,8 +132,9 @@ def get_chunked_array_type(*args) -> ChunkManagerEntrypoint: if chunkmanager.is_chunked_array(chunked_arr) ] if not selected: + possible_missing_package_name = type(chunked_arr).__module__.split(".")[0] raise TypeError( - f"Could not find a Chunk Manager which recognises type {type(chunked_arr)}" + f"Could not find a Chunk Manager which recognises type {type(chunked_arr)}. Try installing the {possible_missing_package_name} package." ) elif len(selected) >= 2: raise TypeError(f"Multiple ChunkManagers recognise type {type(chunked_arr)}") From 2a8552687eada16f8aee60763dfa166780be1558 Mon Sep 17 00:00:00 2001 From: Thomas Nicholas Date: Wed, 5 Jul 2023 15:36:47 -0400 Subject: [PATCH 2/2] whatsnew --- doc/whats-new.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/whats-new.rst b/doc/whats-new.rst index 1667fd2fb9c..e103f9109d4 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -43,7 +43,8 @@ Documentation - Added examples to docstrings of :py:meth:`Dataset.isel`, :py:meth:`Dataset.reduce`, :py:meth:`Dataset.argmin`, :py:meth:`Dataset.argmax` (:issue:`6793`, :pull:`7881`) By `Harshitha `_ . - +- Error message when dask not installed clarified - now suggests user installs dask. + (:issue:`7962`, :pull:`7963`) By `Tom Nicholas `_. Internal Changes ~~~~~~~~~~~~~~~~