Data Processor: Give instructions to the users when the dependencies doesn't match (#19416)

This commit is contained in:
thomas chaton 2024-02-06 09:36:49 +00:00 committed by GitHub
parent 7a56ac5182
commit 285da64386
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -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