我正在Windows 7上使用mingw32
关注有关tutorial的Data Version Control。
当我尝试使用run时,我得到一个非常奇怪的错误:
$ dvc run -v echo "hello"
Debug: updater is not old enough to check for updates
Debug: PRAGMA user_version;
Debug: fetched: [(2,)]
Debug: CREATE TABLE IF NOT EXISTS state (inode INTEGER PRIMARY KEY, mtime TEXT NOT NULL, md5 TEXT NOT NULL, timestamp TEXT NOT NULL)
Debug: CREATE TABLE IF NOT EXISTS state_info (count INTEGER)
Debug: CREATE TABLE IF NOT EXISTS link_state (path TEXT PRIMARY KEY, inode INTEGER NOT NULL, mtime TEXT NOT NULL)
Debug: INSERT OR IGNORE INTO state_info (count) SELECT 0 WHERE NOT EXISTS (SELECT * FROM state_info)
Debug: PRAGMA user_version = 2;
Running command:
echo hello
/c: /c: Is a directory
Debug: SELECT count from state_info WHERE rowid=1
Debug: fetched: [(1,)]
Debug: UPDATE state_info SET count = 1 WHERE rowid = 1
Error: Traceback (most recent call last):
File "dvc\command\run.py", line 18, in run
File "dvc\project.py", line 265, in run
File "dvc\stage.py", line 435, in run
StageCmdFailedError: Stage 'Dvcfile' cmd echo hello failed
Error: Failed to run command: Stage 'Dvcfile' cmd echo hello failed
问题:
/c: /c: Is a directory
来自哪里?我该如何解决?我的发现
$ type echo
echo is a shell builtin
我也尝试了
exit
和cd
,但是遇到了同样的错误。 dvc
标志的--no-exec
可以正常工作,但是以后再使用repro
执行时,也会出现相同的错误。 最佳答案
我是dvc开发人员之一。类似的错误已影响在cygwin上运行的dvc。我们已经在0.20.0
中发布了针对它的修复程序。请升级。