zyp@zyp-OptiPlex-3020:~/workspace_zyp/项目/code$ repo init -u ssh://zhuyp0808@192.168.1.140:29453/MD1/manifest -b n-8960-dev
Permission denied (publickey).
Traceback (most recent call last):
File "/home/zyp/workspace_zyp/项目/code/.repo/repo/main.py", line 414, in <module>
_Main(sys.argv[1:])
File "/home/zyp/workspace_zyp/项目/code/.repo/repo/main.py", line 390, in _Main
result = repo._Run(argv) or 0
File "/home/zyp/workspace_zyp/项目/code/.repo/repo/main.py", line 138, in _Run
result = cmd.Execute(copts, cargs)
File "/home/zyp/workspace_zyp/项目/code/.repo/repo/subcmds/init.py", line 347, in Execute
self._SyncManifest(opt)
File "/home/zyp/workspace_zyp/项目/code/.repo/repo/subcmds/init.py", line 189, in _SyncManifest
if not m.Sync_NetworkHalf(is_new=is_new):
File "/home/zyp/workspace_zyp/项目/code/.repo/repo/project.py", line 1011, in Sync_NetworkHalf
no_tags=no_tags):
File "/home/zyp/workspace_zyp/项目/code/.repo/repo/project.py", line 1673, in _RemoteFetch
ret = GitCommand(self, cmd, bare=True, ssh_proxy=ssh_proxy).Wait()
File "/home/zyp/workspace_zyp/项目/code/.repo/repo/git_command.py", line 150, in __init__
_setenv(env, 'GIT_SSH', _ssh_proxy())
File "/home/zyp/workspace_zyp/项目/code/.repo/repo/git_command.py", line 120, in _setenv
env[name] = value.encode()
Permission denied (publickey).
Traceback (most recent call last):
File "/home/zyp/workspace_zyp/项目/code/.repo/repo/main.py", line 414, in <module>
_Main(sys.argv[1:])
File "/home/zyp/workspace_zyp/项目/code/.repo/repo/main.py", line 390, in _Main
result = repo._Run(argv) or 0
File "/home/zyp/workspace_zyp/项目/code/.repo/repo/main.py", line 138, in _Run
result = cmd.Execute(copts, cargs)
File "/home/zyp/workspace_zyp/项目/code/.repo/repo/subcmds/init.py", line 347, in Execute
self._SyncManifest(opt)
File "/home/zyp/workspace_zyp/项目/code/.repo/repo/subcmds/init.py", line 189, in _SyncManifest
if not m.Sync_NetworkHalf(is_new=is_new):
File "/home/zyp/workspace_zyp/项目/code/.repo/repo/project.py", line 1011, in Sync_NetworkHalf
no_tags=no_tags):
File "/home/zyp/workspace_zyp/项目/code/.repo/repo/project.py", line 1673, in _RemoteFetch
ret = GitCommand(self, cmd, bare=True, ssh_proxy=ssh_proxy).Wait()
File "/home/zyp/workspace_zyp/项目/code/.repo/repo/git_command.py", line 150, in __init__
_setenv(env, 'GIT_SSH', _ssh_proxy())
File "/home/zyp/workspace_zyp/项目/code/.repo/repo/git_command.py", line 120, in _setenv
env[name] = value.encode()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 26: ordinal not in range(128)
出现这个错误的原因是当前路径中包含的汉字,将当前路径下的"项目"文件夹改为"project"即可,至于为什么会出现这种情况,目前还不清楚。