From 285da643863835dbcacb6e1689f3db63f9222393 Mon Sep 17 00:00:00 2001 From: thomas chaton Date: Tue, 6 Feb 2024 09:36:49 +0000 Subject: [PATCH] Data Processor: Give instructions to the users when the dependencies doesn't match (#19416) --- src/lightning/data/streaming/cache.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lightning/data/streaming/cache.py b/src/lightning/data/streaming/cache.py index 3f6138886e..667409c81b 100644 --- a/src/lightning/data/streaming/cache.py +++ b/src/lightning/data/streaming/cache.py @@ -61,7 +61,9 @@ class Cache: raise ModuleNotFoundError("PyTorch version 2.1 or higher is required to use the cache.") if not _LIGHTNING_CLOUD_LATEST: - raise ModuleNotFoundError("Lightning Cloud latest is required to use the cache.") + raise ModuleNotFoundError( + "The `lightning-cloud` package in your environement is out-dated." + " Run: `pip install -U lightning-cloud` to resolve this.") input_dir = _resolve_dir(input_dir) self._cache_dir = input_dir.path