簡體   English   中英

Github python腳本掛起:“ WindowsError:[Error 2]系統找不到指定的文件”

[英]Github python script hanging: “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:\Python27\lib\site-packages\gittle\gittle.py", line 343, in push
return self.push_to(origin_uri, branch_name, progress)
File "C:\Python27\lib\site-packages\gittle\gittle.py", line 338, in push_to
progress=progress
File "C:\Python27\lib\site-packages\dulwich\client.py", line 440, in send_pack
proto, unused_can_read = self._connect('receive-pack', path)
File "C:\Python27\lib\site-packages\dulwich\client.py", line 893, in _connect
port=self.port, username=self.username)
File "C:\Python27\lib\site-packages\dulwich\client.py", line 758, in run_command
stdout=subprocess.PIPE)
File "C:\Python27\lib\subprocess.py", line 390, in __init__
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 640, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified

我的問題是我不確定腳本在哪里失敗。 向哪個文件表示“ WindowsError:[錯誤2]系統找不到指定的文件”? 我如何解決它? 謝謝!

該腳本調用gittle(高級python git庫),該腳本執行執行ssh並失敗的dulwich(低級python git wrapper)。 似乎ssh.exe不在您的PATH中。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM