Failure of opening Python app
Updated:Apr 12, 2022
Question
An error message “executePython Error: Can't execute python code. (err=-1)” appears and cannot get it started when opening an app created with Python.
Answer
Possible cause are as follows.
Module import failure
Check if the module is sufficient or the file path is correct.YUV retrieval failure
Please confirm that YUV resolution that will be retrieved within the code and the specified resolution coincide.Python syntax error
Python syntax error cannot not be displayed as error during compiling. Please review the syntax using syntax checking tool or equivalent.
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