-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
App crashing on startup- ImportError: dlopen failed: _imaging.so is 64-bit #1131
Comments
Thanks for the report, it sounds like the PIL recipe has a bug. |
Well it could have a bug indeed, but your
But pillow does not (yet) have a recipe, see #786. Edit:I could successfully test the PIL module on my install. Since you installed pillow once, you need to make sure it's completely cleared before trying again with PIL. I remember I had some issues with that where the previous pillow install was remaining. You could try to manually delete the Android application as well as running:
Before doing your build and deployment again, good luck :) |
Thanks @AndreMiras, I'll close this. If there are specific issues with the pil recipe, feel free to open a new issue about them. For what it's worth, I intend to look at fixing up the recipes after the next release. |
I've been trying to fix this error for a pretty long time. I did what you said and now my app is running on Android. Thank you @AndreMiras You are my personal jesus christ :) |
11-29 14:35:39.919 28341 28361 I python : Traceback (most recent call last): |
How to solve the question?I I haven't found a way to find it for a long time. |
@Subdue0 you need to add the exact variant that has a p4a recipe to your And try what @AndreMiras suggested above, which is:
Hope that helps. You can also drop by on the discord where we might be able to help you better |
@Jonast I have tried all of the above, but none of them can be solved. My p4a 's 'recipes' contains Pillow and pil, no pillow, and if i use 'pillow' in the requirements, it can be successfully packaged, but the APK cannot be run ('_imaging.so" is 64-bit instead of 32 -bit'), the other will have errors when packaging. |
On recent stable this might give you no recipe. That will obviously build but not anything useful (as evidenced by the error at runtime).
If you don't give us the detailed errors, nobody can help you 😢 |
[INFO]: Prebuilding sdl2 for armeabi-v7a RAN: /home/kivydev/andr/android-ndk-r16b/ndk-build V=1 APP_ABI=armeabi-v7a STDOUT: STDERR: Traceback (most recent call last): RAN: /home/kivydev/andr/android-ndk-r16b/ndk-build V=1 APP_ABI=armeabi-v7a STDOUT: STDERR: |
--dist_name py2dist --arch armeabi-v7a |
It appears as if (My spontaneous guess is that the Also what p4a version is this? Could you possibly try git master if this is the pypi or some other stable/older version to see if that changes anything? |
Just to clarify: with new ticket I mean create one here: https://github.com/kivy/python-for-android/issues/new you could title it |
EDIT: https://github.com/kivy/kivy/issues/4095 seems to be the same issue, but nobody has gotten an answer from there.
Hi, when I run an apk which has the pillow imported in it (from PIL import Image) it will crash on startup citing this, and force closing:
ImportError: dlopen failed: "/data/data/org.benjimaestro.hypertext/files/app/lib/python2.7/site-packages/PIL/_imaging.so" is 64-bit instead of 32-bit
My buildozer.spec is this:
The text was updated successfully, but these errors were encountered: