Skip to content

Commit 285da64

Browse files
authored
Data Processor: Give instructions to the users when the dependencies doesn't match (#19416)
1 parent 7a56ac5 commit 285da64

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lightning/data/streaming/cache.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ def __init__(
6161
raise ModuleNotFoundError("PyTorch version 2.1 or higher is required to use the cache.")
6262

6363
if not _LIGHTNING_CLOUD_LATEST:
64-
raise ModuleNotFoundError("Lightning Cloud latest is required to use the cache.")
64+
raise ModuleNotFoundError(
65+
"The `lightning-cloud` package in your environement is out-dated."
66+
" Run: `pip install -U lightning-cloud` to resolve this.")
6567

6668
input_dir = _resolve_dir(input_dir)
6769
self._cache_dir = input_dir.path

0 commit comments

Comments
 (0)