/
Pythonアプリ起動失敗

Pythonアプリ起動失敗

Updated:Mar 8, 2022

質問

Pythonで作成したアプリを起動すると「executePython Error: Can't execute python code. (err=-1)」と表示され、起動できない。


回答

以下のような原因が考えられますので、ご確認ください。

 

  1. モジュールのimportに失敗している
    モジュールの不足が無いか、ファイルパスが正しいかをご確認ください。

  2. YUVの取得に失敗している
    コード内で取得するYUV解像度と設定解像度があっているかご確認ください。

  3. Pythonの構文エラーがある
    Pythonの構文エラーはコンパイル時にエラー表示されません。
    構文チェックツールなどを使用し、構文をご確認ください。
    https://docs.python.org/ja/3.7/library/py_compile.html
    https://docs.microsoft.com/ja-jp/visualstudio/python/linting-python-code?view=vs-2022

Related content

TCPでRTPパケットを送信する方法
TCPでRTPパケットを送信する方法
Read with this
Failure of opening Python app
Failure of opening Python app
More like this
i-PROカメラのVPNクライアント対応
i-PROカメラのVPNクライアント対応
Read with this
When launching the PS-API sample program "PlayLiveTestToolDLL.exe" downloaded from the i-PRO global site, the error "library error (VIDEO_ERROR_GEN_RTPRECEIVER_FILTER))" is displayed and the program cannot be executed.
When launching the PS-API sample program "PlayLiveTestToolDLL.exe" downloaded from the i-PRO global site, the error "library error (VIDEO_ERROR_GEN_RTPRECEIVER_FILTER))" is displayed and the program cannot be executed.
More like this
Pythonアプリの高速化
Pythonアプリの高速化
Read with this
OpenCVとADAMAPIの画像処理の違い
OpenCVとADAMAPIの画像処理の違い
Read with this