iterative / katacoda-scenarios

Interactive Katacoda Scenarios
https://www.katacoda.com/dvc
2 stars 11 forks source link

Scenario Initialisation Failure (Outdated usage of dvc run) #18

Closed suryaavala closed 3 years ago

suryaavala commented 3 years ago

Issue

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.

Example: refer to line #56 in Pipeline Preparation Script

dvc run \
       -f prepare.dvc \
       -d src/prepare.py \
       -d data/data.xml \
       -o data/prepared \
       python \
           src/prepare.py \
           data/data.xml

According to Getting Started Docs, this should have been

dvc run \
       -n prepare \
       -p prepare.seed,prepare.split \
       -d src/prepare.py \
       -d data/data.xml \
       -o data/prepared \
       python \
           src/prepare.py \
           data/data.xml

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

  1. Pipelines
    
    ### 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


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

suryaavala commented 3 years ago

closed by #19