platypus python subprocess not working

Posted in :

在網路上也有遇到相同情況的人:

Creating an .app file using Platypus failing with subprocess
https://stackoverflow.com/questions/62843728/creating-an-app-file-using-platypus-failing-with-subprocess

透過在呼叫 process = subprocess.Popen() 增加 try catch 看有什麼錯誤訊息,結果測試結果是沒有,但如果檔案不存在 ,或路徑錯誤的話,可以 catch 到錯誤訊息,所以應該是 platypus 與python 在架構上有進行了調整,這個在各個不同的程式語言也都會遇到。

這個實測的結果,暫時是無解,弄了半天,就試不出解法。最後是跟 platypus 說bye bye,直接點執行檔,透過 shell 開出 python並使用 tkinter 顯示畫面,再使用 subprocess 就正常,但直接點 platypus 產生的 .app 就會無錯誤,且完全沒辦法去執行外部指令。

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *