diff --git a/xarray/namedarray/parallelcompat.py b/xarray/namedarray/parallelcompat.py index cd57a8d4487..f7b9da9ba66 100644 --- a/xarray/namedarray/parallelcompat.py +++ b/xarray/namedarray/parallelcompat.py @@ -174,8 +174,14 @@ def get_chunked_array_type(*args: Any) -> ChunkManagerEntrypoint[Any]: if chunkmanager.is_chunked_array(chunked_arr) ] if not selected: + suggestion = "This is usually the result of a missing dependency." + if ( + maybe_lib := type(chunked_arr).__module__.split(".")[0] + ) in KNOWN_CHUNKMANAGERS: + suggestion = f"Please try installing {KNOWN_CHUNKMANAGERS[maybe_lib]!r}." raise TypeError( f"Could not find a Chunk Manager which recognises type {type(chunked_arr)}" + f" {suggestion}" ) elif len(selected) >= 2: raise TypeError(f"Multiple ChunkManagers recognise type {type(chunked_arr)}")