Skip to content

Overlapping outs paths #2984

@anferico

Description

@anferico

I'm getting a quite confusing error when trying to call dvc run

ERROR: failed to run command - Paths for outs:                          
'data'('data.dvc')
'data/prepared/prepared_data.csv'('data_preparation.dvc')
overlap. To avoid unpredictable behaviour, rerun command with non overlapping outs paths.


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

Here are the steps to reproduce the issue:

  1. Create a new directory myproj, then call git init and dvc initinside of it
  2. Create a new directory data and put some data in it. The structure of my data directory is as follows:
data
|___ raw
        |___ dir1
                |___ file1
                ...
                |___ fileN
        |___ dir2
                |___ file1
                ...
                |___ fileN
  1. Run dvc add data to track the directory using dvc
  2. Create a new file called myscript.py within the myproj directory which does some preprocessing of the data
  3. Run the following command:
dvc run -d data/raw -d myscript.py -o data/prepared/prepared_data.csv -f data_preparation.dvc python3 myscript.py
  1. Bump into the error message that I've mentioned

DVC version (i.e. dvc --version): 0.77.3

Platform: KDE neon 5.17

Method of installation: DEB(Linux)

Metadata

Metadata

Assignees

No one assigned

    Labels

    awaiting responsewe are waiting for your reply, please respond! :)questionI have a question?

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions