You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public String getEntryPoint(String search_dir) { /* Get the main file (.pyc|.pyo|.py) depending on if we * have a compiled version or not. */ List<String> entryPoints = new ArrayList<String>(); entryPoints.add("main.pyo"); // python 2 compiled files entryPoints.add("main.pyc"); // python 3 compiled files for (String value : entryPoints) { File mainFile = new File(search_dir + "/" + value); if (mainFile.exists()) { return value; } } return "main.py"; }
Judging from the code above, there should be only one entrypoint file existed in the private.mp3 archive. However, for the current build, both "main.pyc" and "main.py" were stored in the private.mp3 archive. This caused the enviroment variable 'ANDROID_ENTRYPOINT': 'main.pyo' and it complains "Entrypoint have an invalid extension (must be .py or .pyc/.pyo), abort.", thus the program won't start.
tar tf apk/assets/private.mp3 | head main.pyc main.pyo _python_bundle/ _python_bundle/stdlib.zip _python_bundle/site-packages/ _python_bundle/site-packages/jnius_config.pyc _python_bundle/site-packages/six.pyc _python_bundle/site-packages/easy_install.pyc _python_bundle/site-packages/usr/local/
Activity
inclement commentedon Oct 13, 2019
That's interesting and unintended. Not sure what's going on. What happens if you delete both the pyc and pyo and run python-for-android again?
linuxrootok commentedon Jan 12, 2023
same here,and then I rebuild , it works well.So perhaps,you can delete the pyc and pyo files and rebuild,I think it will be okay!
misl6 commentedon Jan 15, 2023
Hi @linuxrootok !
Since support for
pyofiles (and Python 2) has been removed, can you please post the full log of the issue you encountered?Julian-O commentedon Nov 19, 2023
Closing as Can't Repro.