dvc.org: get-started: dvc run: command not found on Windows

I have been working through the getting started portion of this project but have run into a snap at this part

I have setup the data and src tree as described:

.
├── data
│   ├── data.xml
│   └── data.xml.dvc
├── requirements.txt
└── src
    ├── evaluate.py
    ├── featurization.py
    ├── prepare.py
    └── train.py

but when I run:

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

I get:

Running command:
        python ./src/prepare.py ./data/data.xml
The system cannot find the path specified.
ERROR: failed to run command - stage 'prepare.dvc' cmd python ./src/prepare.py ./data/data.xml failed

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

But I am able to run the following successfully

python src/prepare.py data/data.xml

I am not sure what exactly is wrong here. Thanks for any help

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 2
  • Comments: 22 (13 by maintainers)

Most upvoted comments

@elepherai glad that it helped. Closing it for now since it looks like it’s not a DVC problem.

@SpicySyntax that’s interesting. It looks like it’s running the command, the issue is happening somewhere inside? I’m not sure yet and I don’t know how to reproduce it.

Btw, it looks like conda is not activated. Can you try to run conda activate?

Also, can you try to remove data.dvc and run dvc add data.xml? To see if it creates the file at all. To make sure that’s all related to running the command.

@erarunn Have you tried to install a different DVC version to see if it fixes the problem? If you still have trouble, could you create a new issue in https://github.com/iterative/dvc/issues? It will be more visible than posting here.