New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dvc plots show: paths relative to dvc.yaml
instead of $PWD
in version 2.12.1 and 2.13.0
#8003
Comments
$PWD
) in version 2.13.0dvc.yaml
instead of $PWD
in version 2.13.0
dvc.yaml
instead of $PWD
in version 2.13.0dvc.yaml
instead of $PWD
in version 2.12.1 and 2.13.0
@tibor-mach not sure which one causes it, but I think its the latter. |
@tibor-mach can you check if #8004 fixes the problem? (if its possible for you to install from branch) |
@pared (obtained from your branch, installation by pip
|
@pared Hi, how's the progress on this one? |
Hi @tibor-mach! Should be fixed in next release |
Bug Report
Description
In the new release
2.13.0
,dvc plots show
(or diff) does not work with a setup when thedvc.yaml
file is not in the root directory and when the data (for plots) are on a different path relative to the root.For example with a repo structure like this
where
and
where in each dvc.yaml file and each stage we have
(i.e. the working directory is the root of the repo)
you get the following warning when calling
dvc plots show
and similarly with other pipelines and plots. The issue is clearly that dvc seems to use the path to the corresponding
dvc.yaml
as the working directory (as the path above is indeed not in the workspace since thedata
directory is in the root directory)Reproduce
dvc.yaml
in a different directory than the root and outputs in yet another directory.dvc.yaml
, the cause might also theoretically come from templating, so try something likewhere the params.yaml should be in the same directory as the dvc.yaml and contain the following:
dvc repro
to create the precision_recall_curve.csv in the first placedvc plots show
ordvc plots diff
Expected
The behaviour of dvc up till
2.12.0
where the plot paths are found correctly and relative to the$PWD
instead of the directory where the corespondingdvc.yaml
is located.Environment information
Output of
dvc doctor
:Additional Information (if any):
The new version of
dvc
has two new dependencies:dvc-data-0.0.23
dvc-objects-0.0.23
I am not sure if either of these two could be the cause, but they were both bumped from version
0.0.16
indvc 2.13.0
The text was updated successfully, but these errors were encountered: