gpt4 book ai didi

git-p4 : No such file or directory

转载 作者:行者123 更新时间:2023-12-01 20:03:55 24 4
gpt4 key购买 nike

我尝试在 Linux 上使用 git-p4 并将 git-p4.py 添加到我的 .gitconfig 中。但是,在克隆时,我收到此错误:

math@math:/mnt/d$ git p4 clone //depot/path/main@all
Importing from //depot/path/main@all into main
Reinitialized existing Git repository in /mnt/d/main/.git/
Traceback (most recent call last):
File "/home/math/bin/git-p4.py", line 3703, in <module>
main()
File "/home/math/bin/git-p4.py", line 3697, in main
if not cmd.run(args):
File "/home/math/bin/git-p4.py", line 3571, in run
if not P4Sync.run(self, depotPaths):
File "/home/math/bin/git-p4.py", line 3411, in run
changes = p4ChangesForPaths(self.depotPaths, self.changeRange, self.changes_block_size)
File "/home/math/bin/git-p4.py", line 807, in p4ChangesForPaths
changeEnd = p4_last_change()
File "/home/math/bin/git-p4.py", line 266, in p4_last_change
results = p4CmdList(["changes", "-m", "1"])
File "/home/math/bin/git-p4.py", line 492, in p4CmdList
stdout=subprocess.PIPE)
File "/usr/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1343, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

什么目录或文件应该存在?我设置了以下环境变量:P4HOST、P4PASSWD、P4PORT、P4USER。

最佳答案

现在也遇到了同样的问题。是的,@BryanPendleton 是对的:您只需将 p4 添加到您的 $PATH 中。

关于git-p4 : No such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46366081/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com