Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Updated:

質問

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

  • No labels