Scenarios Pipelines and Experiments and Metrics are not being initialized properly (see Output below) due to outdated use of dvc run command, especially with the use of -f flag.
Go through these scenarios and update them if they have diverged from the Getting Started Docs
(I am happy to make these changes and submit a PR - started working on it already)
Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help!
~/example-get-started$ git add data/.gitignore prepare.dvc
fatal: pathspec 'prepare.dvc' did not match any files
~/example-get-started$ git commit -m "Create data preparation stage"
On branch master
Untracked files:
params.yaml
nothing added to commit but untracked files present
2. [Experiments and Metrics](https://katacoda.com/dvc/courses/get-started/experiments)
Stage: prepare.dvc
~/example-get-started$ dvc run -f prepare.dvc -d src/prepare.py -d data/data.xml -o data/prepared python src/prepare.py data/data.xml
ERROR: -n|--name is required
Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help!
~/example-get-started$ git add data/.gitignore prepare.dvc
fatal: pathspec 'prepare.dvc' did not match any files
~/example-get-started$ git commit -m "Create data preparation stage"
On branch master
Untracked files:
params.yaml
nothing added to commit but untracked files present
~/example-get-started$ dvc push -q
Stage: featurize.dvc
~/example-get-started$ dvc run -f featurize.dvc -d src/featurization.py -d data/prepared -o data/features python src/featurization.py data/prepared data/features
ERROR: -n|--name is required
Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help!
~/example-get-started$ git add data/.gitignore featurize.dvc
fatal: pathspec 'featurize.dvc' did not match any files
Stage: train.dvc
~/example-get-started$ dvc run -f train.dvc -d src/train.py -d data/features -o model.pkl python src/train.py data/features model.pkl
ERROR: -n|--name is required
Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help!
~/example-get-started$ git add .gitignore train.dvc
fatal: pathspec 'train.dvc' did not match any files
~/example-get-started$ git commit -m "Create featurization and training stages"
On branch master
Untracked files:
params.yaml
nothing added to commit but untracked files present
Issue
Scenarios
Pipelines
andExperiments and Metrics
are not being initialized properly (see Output below) due to outdated use ofdvc run
command, especially with the use of-f
flag.Example: refer to line #56 in Pipeline Preparation Script
According to Getting Started Docs, this should have been
Fix
Go through these scenarios and update them if they have diverged from the Getting Started Docs (I am happy to make these changes and submit a PR - started working on it already)
Terminal Output from Katacoda
Having any troubles? Hit us up at https://dvc.org/support, we are always happy to help! ~/example-get-started$ git add data/.gitignore prepare.dvc fatal: pathspec 'prepare.dvc' did not match any files ~/example-get-started$ git commit -m "Create data preparation stage" On branch master Untracked files: params.yaml
nothing added to commit but untracked files present
Stage: prepare.dvc
~/example-get-started$ dvc run -f prepare.dvc -d src/prepare.py -d data/data.xml -o data/prepared python src/prepare.py data/data.xml ERROR:
-n|--name
is requiredHaving any troubles? Hit us up at https://dvc.org/support, we are always happy to help! ~/example-get-started$ git add data/.gitignore prepare.dvc fatal: pathspec 'prepare.dvc' did not match any files ~/example-get-started$ git commit -m "Create data preparation stage" On branch master Untracked files: params.yaml
nothing added to commit but untracked files present ~/example-get-started$ dvc push -q
Stage: featurize.dvc
~/example-get-started$ dvc run -f featurize.dvc -d src/featurization.py -d data/prepared -o data/features python src/featurization.py data/prepared data/features ERROR:
-n|--name
is requiredHaving any troubles? Hit us up at https://dvc.org/support, we are always happy to help! ~/example-get-started$ git add data/.gitignore featurize.dvc fatal: pathspec 'featurize.dvc' did not match any files
Stage: train.dvc
~/example-get-started$ dvc run -f train.dvc -d src/train.py -d data/features -o model.pkl python src/train.py data/features model.pkl ERROR:
-n|--name
is requiredHaving any troubles? Hit us up at https://dvc.org/support, we are always happy to help! ~/example-get-started$ git add .gitignore train.dvc fatal: pathspec 'train.dvc' did not match any files ~/example-get-started$ git commit -m "Create featurization and training stages" On branch master Untracked files: params.yaml
nothing added to commit but untracked files present