Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to find libpython2.7.so on older versions of Android #645

Closed
kmonson opened this issue Feb 16, 2016 · 10 comments · Fixed by #649
Closed

Unable to find libpython2.7.so on older versions of Android #645

kmonson opened this issue Feb 16, 2016 · 10 comments · Fixed by #649

Comments

@kmonson
Copy link
Contributor

kmonson commented Feb 16, 2016

When I try to run my APK on older versions of Android (<4.x) I'm getting a crash with this error: "Cannot load library: link_image[1936]: 106 could not load needed library 'libpython2.7.so' for 'libmain.so' (load_library[1091]: Library 'libpython2.7.so' not found)"

I'm using the new python-for-android toolchain and buildozer master both checked out a few days ago.

I get a popup on the device that says it's an "SDL Error"

logcat: http://pastebin.com/f3zg91ja
buildozer spec: http://pastebin.com/WCbU96TM
buidozer log: http://pastebin.com/negsytP7

Tested on a Kindle Fire HD (3.x fails), LG Volt (4.4 Works), and a Samsung phone running Android 2.3.x (fails).

Both failing devices worked before I switched to the new toolchain.

@kived
Copy link
Contributor

kived commented Feb 18, 2016

Did you install the new app over an old version? Try clearing the app data from Settings->Applications, then uninstall and reinstall the app.

@bcm0
Copy link

bcm0 commented Feb 18, 2016

Unfortunately that didn't help.
On Android 4.0.4 I get the same popup "SDL Error".
"System.err(11317): Cannot load library: link_image[1965]: 4423 could not load needed library 'libpython2.7.so' for 'libmain.so' (load_library[1120]: Library 'libpython2.7.so' not found)"

@kmonson
Copy link
Contributor Author

kmonson commented Feb 18, 2016

I tried that as well and it didn't help.

On Thu, Feb 18, 2016 at 12:29 PM, nokianhunter notifications@github.com
wrote:

Unfortunately that didn't help.


Reply to this email directly or view it on GitHub
#645 (comment)
.

@kived
Copy link
Contributor

kived commented Feb 18, 2016

@kmonson Please try with this testing branch on my fork: https://github.com/kived/python-for-android/tree/fix-libs-pre-kitkat

@kmonson
Copy link
Contributor Author

kmonson commented Feb 19, 2016

Sure thing. I try to get to it tonight.

On Thu, Feb 18, 2016 at 3:22 PM, Ryan Pessa notifications@github.com
wrote:

@kmonson https://github.com/kmonson Please try with this testing branch
on my fork:
https://github.com/kived/python-for-android/tree/fix-libs-pre-kitkat


Reply to this email directly or view it on GitHub
#645 (comment)
.

@kmonson
Copy link
Contributor Author

kmonson commented Feb 19, 2016

You, sir, are a gentleman and a scholar.

It now works on my Kindle HD. It will be some time before I can try it on Android 2.3 but I'm guessing it will work there as well. If it does not I will let you know.

@bcm0
Copy link

bcm0 commented Feb 19, 2016

Thank you very much. Now it works on Android 4.0.4.
Had to delete my temporary files in "~/.local/share/python-for-android" first.

@kmonson
Copy link
Contributor Author

kmonson commented Feb 22, 2016

I was able to load it onto android 2.3 and it worked.

@dfrison01
Copy link

Hi!
I really am a noob on this. So would greatly appreciate any help:
I'm trying to apply @kived 's "fix-libs-pre-kitkat" repo (by cloning it and setting buildozer "p4a.source_dir" to the downloaded/extracted folder), yet I get a strange error that I can not understand when trying to "buildozer android update" or "buildozer android debug". As follows:

'''
Install platform
Run 'pip install -q --user '
Cwd None
ERROR: You must give at least one requirement to install (see "pip help install")
Command failed: pip install -q --user
'''

Any suggestions? Trying to compile for Android 4.0.4 (buildozer 0.34, sdk20 with api 19, py2.7 and crystax)
Thx guys!

@JorgeFrasson
Copy link

I have the same problem.. anyone??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants