question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Error: Failed to pull data from the cloud" when pulled data is a directory

See original GitHub issue

When 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:closed
  • Created 5 years ago
  • Comments:18 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
imflash217commented, Jul 16, 2020

@efiop , Seems like the issue might be because unintentionally my Mac system create an empty file called Icon and DVC was tracking that but gdrive failed to track it as it was empty & hence during dvc 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.

2reactions
efiopcommented, Nov 28, 2018

Thanks to @mroutis for a lightning fast ⚡ fix! 0.21.2 is out, please upgrade. 🎉

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found