# Upgrade to .60 produces .dvc file dependency error -- breaks pipeline

**URL:** <https://discuss.dvc.org/t/upgrade-to-60-produces-dvc-file-dependency-error-breaks-pipeline/230>\
**Category:** Questions\
**Created:** [September 25, 2019, 2:29pm UTC](https://discuss.dvc.org/t/upgrade-to-60-produces-dvc-file-dependency-error-breaks-pipeline/230 "2019-09-25T14:29:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jwelch](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@jwelch](https://discuss.dvc.org/u/jwelch)\
**Post date:** [September 25, 2019, 2:29pm UTC](https://discuss.dvc.org/t/upgrade-to-60-produces-dvc-file-dependency-error-breaks-pipeline/230/1 "2019-09-25T14:29:28Z")

</div>

I just upgraded to dvc 0.60.0 and when attempting to run the same commands I have run for ages I get the following error

Command run:  
`dvc run -f entropy_filter.dvc -d entropy_config.json -d ../../../scripts/entropy_filter.py -O junk_clusters.txt python ../../../scripts/entropy_filter.py entropy_config.json`

output  
`ERROR: run_model.dvc cannot be a dependency`

Note that the dependency to entropy\_filter.dvc stage (entropy\_config.json) is produced by run\_model.dvc.

I then attempted to rerun the base command to regenerate run\_model.dvc only to get the exact same error, that run\_model.dvc cannot be a dependency. I then attempted to remove run\_model.dvc and run the command again only to be given the same error. Finally I attempted a `dvc gc` which again gave the same error…

Only way to fix was to downgrade back to 59.2. Any suggestions on how I can change my pipeline to work with 0.60.0?

---

<div class="post-metadata">

**Author:** ![kupruser](https://avatars.discourse-cdn.com/v4/letter/k/e95f7d/32.png) [@kupruser](https://discuss.dvc.org/u/kupruser)\
**Post date:** [September 25, 2019, 3:20pm UTC](https://discuss.dvc.org/t/upgrade-to-60-produces-dvc-file-dependency-error-breaks-pipeline/230/2 "2019-09-25T15:20:18Z")

</div>

Hi @jwelch !

It seems like you have some dvcfile in your project that uses `run_model.dvc` as a direct dependency. Could you run `grep run_model.dvc -R ./ | grep "path:"` in the root of your project and show us the output?

NOTE: we do need to improve that error message so it says which stage it belongs to.

---

<div class="post-metadata">

**Author:** ![jwelch](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@jwelch](https://discuss.dvc.org/u/jwelch)\
**Post date:** [September 25, 2019, 5:23pm UTC](https://discuss.dvc.org/t/upgrade-to-60-produces-dvc-file-dependency-error-breaks-pipeline/230/3 "2019-09-25T17:23:25Z")

</div>

Hi @kupruser,

Thanks for the reply. Here is the output of the command when run on both run\_model.dvc and entropy\_filter.dvc

Run on run\_model.dvc

```auto
  path: ../../../scripts/ufcpc_main.py
  path: config.json
  path: ../../../data/all/level3filter/R50_wobt_level3_good_less-116-117-64.ds
  path: entropy_config.json

```

Run on entropy\_filter.dvc

```auto
  path: entropy_config.json
  path: ../../../scripts/entropy_filter.py
  path: junk_clusters.txt

```

---

<div class="post-metadata">

**Author:** ![kupruser](https://avatars.discourse-cdn.com/v4/letter/k/e95f7d/32.png) [@kupruser](https://discuss.dvc.org/u/kupruser)\
**Post date:** [September 25, 2019, 6:41pm UTC](https://discuss.dvc.org/t/upgrade-to-60-produces-dvc-file-dependency-error-breaks-pipeline/230/4 "2019-09-25T18:41:48Z")

</div>

@jwelch i think there is a misunderstanding. I was asking to run this specific command from your project’s root

```auto
grep run_model.dvc -R ./ | grep "path:"

```

it will go through your project looking for `run_model.dvc` being specified as a dependency or an output in any other dvcfiles. Please run it an share the output.

---

<div class="post-metadata">

**Author:** ![jwelch](https://avatars.discourse-cdn.com/v4/letter/j/b2d939/32.png) [@jwelch](https://discuss.dvc.org/u/jwelch)\
**Post date:** [September 26, 2019, 6:56pm UTC](https://discuss.dvc.org/t/upgrade-to-60-produces-dvc-file-dependency-error-breaks-pipeline/230/5 "2019-09-26T18:56:41Z")

</div>

@kupruser Ah my bad I did indeed misunderstand. Indeed you were correct that there was an old dvc file that had a dependency on another dvc file. I thought I had removed all such references but apparently missed one. Thanks again!

---

<div class="post-metadata">

**Author:** ![kupruser](https://avatars.discourse-cdn.com/v4/letter/k/e95f7d/32.png) [@kupruser](https://discuss.dvc.org/u/kupruser)\
**Post date:** [September 26, 2019, 8:45pm UTC](https://discuss.dvc.org/t/upgrade-to-60-produces-dvc-file-dependency-error-breaks-pipeline/230/6 "2019-09-26T20:45:34Z")

</div>

Sure! Glad to hear it works now 🙂 Please let us know if you have any questions;
