dvc checkout without cache: confusing warnings

Created on 5 Sep 2019  路  3Comments  路  Source: iterative/dvc

Version 0.58.1

$ git clone https://github.com/iterative/example-get-started
$ cd example-get-started
$ git checkout -b mybranch 6-featurization
Switched to a new branch 'mybranch'
$ dvc checkout
ERROR: failed to download '.dvc/cache/33/38d2c21bdb521cda0ba4add89e1cb0.dir' to '../../../../var/folders/hq/h82mgrhx37nc89_1rcg6gm280000gn/T/tmp1rw0hv0c' - [Errno 2] No such file or directory: '/Users/dmitry/src/example-get-started/.dvc/cache/33/38d2c21bdb521cda0ba4add89e1cb0.dir'

Having any troubles?. Hit us up at https://dvc.org/support, we are always happy to help!
ERROR: Failed to load dir cache '.dvc/cache/33/38d2c21bdb521cda0ba4add89e1cb0.dir' - Expecting value: line 1 column 1 (char 0)

Having any troubles?. Hit us up at https://dvc.org/support, we are always happy to help!
WARNING: Cache '3338d2c21bdb521cda0ba4add89e1cb0.dir' not found. File 'data/features' won't be created.
ERROR: failed to download '.dvc/cache/33/38d2c21bdb521cda0ba4add89e1cb0.dir' to '../../../../var/folders/hq/h82mgrhx37nc89_1rcg6gm280000gn/T/tmpnnu4ga3u' - [Errno 2] No such file or directory: '/Users/dmitry/src/example-get-started/.dvc/cache/33/38d2c21bdb521cda0ba4add89e1cb0.dir'

Having any troubles?. Hit us up at https://dvc.org/support, we are always happy to help!
ERROR: Failed to load dir cache '.dvc/cache/33/38d2c21bdb521cda0ba4add89e1cb0.dir' - Expecting value: line 1 column 1 (char 0)

Having any troubles?. Hit us up at https://dvc.org/support, we are always happy to help!

Problems:

  1. "failed to download"? it does not seem like a download problem.
  2. why it shows a temporary path ../../../../var/folders/hq/h82mgrhx37nc89_1rcg6gm280000gn/T/tmp1rw0hv0c?
  3. Having any troubles?. Hit us up at https://dvc.org/support 4 times!
  4. "Having any troubles?." A dot after ?.
  5. "Failed to load dir cache '.dvc/cache/33/38d2c21bdb521cda0ba4add89e1cb0.dir' - Expecting value: line 1 column 1 (char 0)" not clear what it is about and why dvc is trying to do something with this dir if we already got an error message.

EDIT:

  1. No such file or directory: '/Users/dmitry/src/example-get-started/.dvc/cache/33/38d2c21bdb521cda0ba4add89e1cb0.dir' we probably should not output full paths - no value.
bug c13-half-a-week p1-important research ui

All 3 comments

Minimal example script

#!/bin/bash

rm -rf repo repo_remote storage repo_local
mkdir repo_remote storage 

cd repo_remote
git init --bare

cd ..

git clone repo_remote repo_local
cd repo_local

dvc init -q
dvc remote add -d storage ../storage

mkdir data
echo content >> data/content
dvc add data

git add -A
git commit -am "init"
git tag 1.0
git push origin master
git push --tags

cd ..
git clone repo_remote repo
cd repo
git checkout -b mybranch 1.0

dvc checkout

@dmpetrov

"failed to download"? it does not seem like a download problem.

and

why it shows a temporary path ../../../../var/folders/hq/h82mgrhx37nc89_1rcg6gm280000gn/T/tmp1rw0hv0c

Actually, it is download problem, mostly due to fact that remote/base has generic logic for loading dir cache for all remote types (that assumes downloading). Created issue to deal with that: #2513

@pared that's exactly the same problem we discussed with @mroutis recently. Separation of UI/UX (in out case command output) logic from the actual business logic. I haven't found any good example so far in terms how it can be implemented though.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jorgeorpinel picture jorgeorpinel  路  3Comments

dmpetrov picture dmpetrov  路  3Comments

shcheklein picture shcheklein  路  3Comments

analystanand picture analystanand  路  3Comments

tc-ying picture tc-ying  路  3Comments