Github python脚本挂起:"WindowsError: [Error 2] The system cannot find the file specified"



我正在运行一个python脚本,该脚本从数据库中导出xml,将记录转换为PDF,然后尝试将xml和pdf文件上传到github存储库。导出和 pdf 转换工作正常,但该过程随后挂起并输出以下错误消息:

Traceback (most recent call last):
File "asExportIncremental.py", line 394, in <module>
main()
File "asExportIncremental.py", line 320, in main
gitPush()
File "asExportIncremental.py", line 308, in gitPush
repo.push()
File "C:Python27libsite-packagesgittlegittle.py", line 343, in push
return self.push_to(origin_uri, branch_name, progress)
File "C:Python27libsite-packagesgittlegittle.py", line 338, in push_to
progress=progress
File "C:Python27libsite-packagesdulwichclient.py", line 440, in send_pack
proto, unused_can_read = self._connect('receive-pack', path)
File "C:Python27libsite-packagesdulwichclient.py", line 893, in _connect
port=self.port, username=self.username)
File "C:Python27libsite-packagesdulwichclient.py", line 758, in run_command
stdout=subprocess.PIPE)
File "C:Python27libsubprocess.py", line 390, in __init__
errread, errwrite)
File "C:Python27libsubprocess.py", line 640, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

我的问题是我不确定脚本在哪里失败。"Windows错误:[错误2]系统找不到指定的文件"指的是哪个文件?我该如何解决?谢谢!

该脚本调用 gittle(高级 python git 库(,它执行运行 ssh 并失败的 dulwich(低级 python git 包装器(。似乎ssh.exe不在你的路径中。

相关内容

最新更新