From f15082c90180a38e485d7362162f05a7e4a6b147 Mon Sep 17 00:00:00 2001 From: Julius Busecke Date: Wed, 31 Jul 2024 19:52:23 -0400 Subject: [PATCH] Increased verbosity for Value Error raised if backend not installed (#9294) --- xarray/backends/plugins.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/xarray/backends/plugins.py b/xarray/backends/plugins.py index a62ca6c9862..f4890015040 100644 --- a/xarray/backends/plugins.py +++ b/xarray/backends/plugins.py @@ -204,6 +204,9 @@ def get_backend(engine: str | type[BackendEntrypoint]) -> BackendEntrypoint: if engine not in engines: raise ValueError( f"unrecognized engine {engine} must be one of: {list(engines)}" + "To install additional dependencies, see:\n" + "https://docs.xarray.dev/en/stable/user-guide/io.html \n" + "https://docs.xarray.dev/en/stable/getting-started-guide/installing.html" ) backend = engines[engine] elif isinstance(engine, type) and issubclass(engine, BackendEntrypoint):