python-3.xgitpipelinedvc

DVC error : scmrepo.exceptions.SCMError: Empty git repo


I tried initializing DVC and was getting this error . I am not using GIT actively to track anything although git is initialised . I am trying to create some plots

from dvclive import Live
live = Live("evaluation2/metrics") 

enter image description here

does anyone have any idea on this . I am new to DVC so might be very silly issue.


Solution

  • It's a known issue / limitation that is being worked on at the moment:

    The simplest workaround is to create at least a single commit in the repository before running it.