【问题标题】:Getting this weird error when trying to run DVC pull尝试运行 DVC pull 时出现这个奇怪的错误
【发布时间】:2020-03-26 17:43:36
【问题描述】:

我是使用 DVC 的新手,只是在探索它。我正在尝试从我团队中的另一个人推送的 s3 中提取数据。但是我收到了这个错误:

WARNING: Some of the cache files do not exist neither locally nor on remote. Missing cache files:
name: head_test_file.csv, md5: 45db668193ba44228d61115b1d0304fe
WARNING: Cache '45db668193ba44228d61115b1d0304fe' not found. File 'head_test_file.csv' won't be created.
No changes.
ERROR: failed to pull data from the cloud - Checkout failed for following targets:
head_test_file.csv
Did you forget to fetch?

【问题讨论】:

  • 仅供参考:可以尝试pip install dvc[gs] 而不是pip install dvc

标签: dvc


【解决方案1】:

我的错。我跑了dvc add,但我错过了跑dvc push。运行此修复它。

当我运行dvc add 时,它执行了create my_file.csv.dvc 文件,但没有被推送。因此,当我试图拉它时,它看到了 .dvc 文件但感到困惑。

这是一个简单的解决方案,但我花了一段时间才弄清楚。由于这是一个新工具,因此请提出并回答我自己的问题,以防万一其他人犯了同样的错误。

【讨论】:

    【解决方案2】:

    您可能想要运行 dvc install,它会安装一个 Git 挂钩以在 git push 之后自动执行 dvc push(:

    推送:在使用 git push 将更改发布到 Git 远程时,很容易忘记 dvc push 命令对于将 DVC 跟踪的新的或更新的数据文件和目录上传到远程存储是必需的。

    这个钩子会自动执行 dvc 推送。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-31
      • 1970-01-01
      • 2015-12-21
      • 1970-01-01
      • 2023-03-07
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多