python-for-android
python-for-android copied to clipboard
Problem with local install x86
What device(s) are you experiencing the problem on?
Asus Fonepad 7 ME372CG with x86 Intel Atom Z2560
What OS version are you running on the device?
android 5.0
What version of the product are you using?
SL4A-r6.2.0-x86
PythonForAndroid-debug-r26.apk,
python_r29_x86.zip, python_r29.zip, python_extras_r29.zip, python_scripts_r26.zip
What steps will reproduce the problem?
I correct install sl4a and PythonForAndroid.
Copy 4 zip files to /storage/emulated/0/com.googlecode.pythonforandroid/
Press Local Install - Py4A was shutdown.
Delete python_r29.zip, press local install - Py4A say Bin: 0 Extra: 29 Scripts: 26
Press Run Loacal Install - Py4A say "Instalation failed"
Restore python_r29.zip, delete python_r29_x86.zip, press Local install - Bin: 29 Extra: 29 Scripts: 26
Press Run Loacal Install - Py4A say "Instalation failed"
What is the expected output? What do you see instead?
expected: installing r29 zip's
see: stop running or instalation failed
Thank you detailed reporting @unwellcome . I found the problem in the local installation with x86 (and mips) platform.
- renaming python_r29_x86.zip to pyrhon_r29.zip .
- try again local install.
I think it would be a workaround.
problem is in here PythonMain.java:
if (fname.getName().startsWith(pfxPython + sfxPythonBin)) {
Log.i("found for bin: " + fname.getName());
itps.add(fname);
might be
if (fname.getName().startsWith(pfxPython + sfxPythonBin) &&
fname.getName().endsWIth(mDescriptor.getPlatformString() + ".zip")) {
Log.i("found for bin: " + fname.getName());
itps.add(fname);
Unfortunately I have not work for python4android long time, so new version (apk) will not be released soon.