"Error: Failed to pull data from the cloud" when pulled data is a directory
See original GitHub issueWhen pulling data from remote storage, I execute the following command:
dvc pull train.dvc
with content of the file: train.dvc
cmd: python train.py
deps:
- md5: 454410a0e96e7c268914287865e94bbc
path: data/dataset.csv
md5: c1b4f121d34f4dbd426089bbbec26d3c
outs:
- cache: true
md5: 9f1f44cc23e76e794f7423d4a76147a3.dir
path: outputs/models/
Then obtain the following error:
[##############################] 100% Collecting information
[##############################] 100% outputs/models
[##############################] 100% Collecting information
(1/3): [##############################] 100% outputs/models/task_a.pkl
(2/3): [##############################] 100% outputs/models/task_b.pkl
(3/3): [##############################] 100% outputs/models/task_c.pkl
Checking out ' outputs/models' with cache '9f1f44cc23e76e794f7423d4a76147a3.dir'.
Linking directory 'outputs/models'.
Error: Failed to pull data from the cloud: stat: path should be string, bytes, os.PathLike or integer, not NoneType
It seems that it happens because of the output of train.dvc
is a directory. It works fine when it’s a file.
some infos: dvc==0.21.0 installed with pip macOS 10.14
Issue Analytics
- State:
- Created 5 years ago
- Comments:18 (7 by maintainers)
Top Results From Across the Web
ERROR: failed to pull data from the cloud - Questions - DVC
I'm not sure what's happening, but you could try a few things: Update the command to dvc pull -v to get verbose output....
Read more >Getting this weird error when trying to run DVC pull
No changes. ERROR: failed to pull data from the cloud - Checkout failed for following targets: head_test_file.csv Did you forget to fetch?
Read more >"Failed to create database '..\data\connections ... - ERROR
log we find the following error: Caused by: ERROR XBM0A: The database directory 'C:\Program Files\Informatica Cloud Secure Agent\apps ...
Read more >Known Issues for Oracle Transactional Business Intelligence
Unable to Delete the Custom Folder After Upgrade ... existing report, you see an error message similar to Unable to retrieve metadata from...
Read more >Troubleshooting errors with Docker commands when using ...
You may receive the error Filesystem verification failed when using the docker pull command to pull an image from an Amazon ECR repository...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@efiop , Seems like the issue might be because unintentionally my Mac system create an empty file called
Icon
and DVC was tracking that butgdrive
failed to track it as it was empty & hence duringdvc pull
DVC could not pull the Icon file as it was not in my gdrive remote. Let me test this and see if I am correct.Thanks to @mroutis for a lightning fast ⚡ fix! 0.21.2 is out, please upgrade. 🎉