Data Processor: Give instructions to the users when the dependencies doesn't match (#19416)
This commit is contained in:
parent
7a56ac5182
commit
285da64386
|
@ -61,7 +61,9 @@ class Cache:
|
||||||
raise ModuleNotFoundError("PyTorch version 2.1 or higher is required to use the cache.")
|
raise ModuleNotFoundError("PyTorch version 2.1 or higher is required to use the cache.")
|
||||||
|
|
||||||
if not _LIGHTNING_CLOUD_LATEST:
|
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)
|
input_dir = _resolve_dir(input_dir)
|
||||||
self._cache_dir = input_dir.path
|
self._cache_dir = input_dir.path
|
||||||
|
|
Loading…
Reference in New Issue