-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
A: data-syncRelated to dvc get/fetch/import/pull/pushRelated to dvc get/fetch/import/pull/pushbugDid we break something?Did we break something?
Description
Bug Report
Description
If you've installed DVC via pip without the remote support you need (for example S3), the error message is very unclear.
Reproduce
- Setup fresh repo &
pip install dvc[s3] - Copy dataset.zip to repo
dvc init&dvc add dataset.zip- Setup remote &
dvc push - Move to fresh python environment
pip install dvc- Clone repo
dvc pull -v
Expected
I would've expected an error message saying something like: "the remote type (s3) is not supported in your dvc installation".
Instead you get the following output:
$ dvc pull -v
2021-10-26 10:35:07,698 DEBUG: failed to pull cache for 'models'
2021-10-26 10:35:07,699 DEBUG: failed to pull cache for 'data/evaluation'
2021-10-26 10:35:08,269 WARNING: No file hash info found for 'data/evaluation'. It won't be created.
2021-10-26 10:35:08,304 WARNING: No file hash info found for 'models'. It won't be created.
2 files failed
2021-10-26 10:35:08,326 ERROR: failed to pull data from the cloud - Checkout failed for following targets:
data/evaluation
models
Is your cache up to date?
<https://error.dvc.org/missing-files>
Took me a couple hours to figure it out I had to reinstall dvc with s3 support enabled 😅
Environment information
Output of dvc doctor:
$ dvc doctor
DVC version: 2.8.2 (pip)
---------------------------------
Platform: Python 3.9.7 on Linux-4.14.246-187.474.amzn2.x86_64-x86_64-with-glibc2.31
Supports:
webhdfs (fsspec = 2021.10.1),
http (aiohttp = 3.7.4.post0, aiohttp-retry = 2.4.5),
https (aiohttp = 3.7.4.post0, aiohttp-retry = 2.4.5),
Cache types: hardlink, symlink
Cache directory: nfs4 on xxxxxx.efs.eu-west-1.amazonaws.com:/data-pvc
Caches: local
Remotes: s3
Workspace directory: nfs4 on xxxxx.efs.eu-west-1.amazonaws.com:/data-pvc
Repo: dvc, gitshcheklein
Metadata
Metadata
Assignees
Labels
A: data-syncRelated to dvc get/fetch/import/pull/pushRelated to dvc get/fetch/import/pull/pushbugDid we break something?Did we break something?