Dvc: Exception is raised when adding the same data again

Created on 6 Feb 2019  路  3Comments  路  Source: iterative/dvc

DVC version: 0.24.3

Steps to reproduce:

echo 'test' > foo
dvc add foo
dvc add foo

Output:
```Debug: UPDATE state_info SET count = 13 WHERE rowid = 1

Error: unexpected error - 'NoneType' object has no attribute 'dump'

Traceback (most recent call last):
File "/Users/ivan/Projects/cookiecutter-data-science/dvc/.venv/lib/python2.7/site-packages/dvc/main.py", line 30, in main
ret = cmd.run_cmd()
File "/Users/ivan/Projects/cookiecutter-data-science/dvc/.venv/lib/python2.7/site-packages/dvc/command/base.py", line 50, in run_cmd
return self.run()
File "/Users/ivan/Projects/cookiecutter-data-science/dvc/.venv/lib/python2.7/site-packages/dvc/command/add.py", line 10, in run
self.project.add(target, recursive=self.args.recursive)
File "/Users/ivan/Projects/cookiecutter-data-science/dvc/.venv/lib/python2.7/site-packages/dvc/project.py", line 226, in add
stage.dump()

AttributeError: 'NoneType' object has no attribute 'dump'

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

bug

Most helpful comment

Hi @anotherbugmaster !

Fix is ready https://github.com/iterative/dvc/pull/1583 . We'll merge and release it ASAP.

Thanks for the feedback :slightly_smiling_face:

All 3 comments

Hi guys, just encountered the same issue.

Hi @anotherbugmaster !

Fix is ready https://github.com/iterative/dvc/pull/1583 . We'll merge and release it ASAP.

Thanks for the feedback :slightly_smiling_face:

:rocket:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jorgeorpinel picture jorgeorpinel  路  3Comments

shcheklein picture shcheklein  路  3Comments

ghost picture ghost  路  3Comments

anotherbugmaster picture anotherbugmaster  路  3Comments

analystanand picture analystanand  路  3Comments