-
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
Prebuilt python does not contain binaries for any architecture. #1254
Comments
So the actual issue is that you're using a beta crystax NDK whose folder structure is different to the released version, and is not understood by p4a? |
Yep, the last non beta release of crystax ndk (10.3.2) date is august 2016 and doesn't support ssl with python3. Honestly I'm kind of lost, I'm not even sure if I should post here. |
python-for-android does not currently support the beta versions of the crystax NDK, although it probably wouldn't be hard to add this support. There's a PR at #1195 that adds openssl for python3 by building it ourselves. |
I saw this one and thought I would try it if the rest doesn't work. By the way, if someone wonders what happens when reorganizing the structure folder of b917 to have it working with p4a when building python3.5. The building seems to work, the app is made and launched on the phone but it crashes with a fatal signal 11 sigsegv error, it seems sdl2 has a problem, maybe an other bootstrap like pygame could work, I didn't try. EDIT: Let me kiss you!!!!! I followed your advice and it finally works, Crystax offi 10.3.2 with 3 files modded to get ssl working with python3. I've been on it for 3 days! |
@Abysselene could you elaborate on the 3 files that needed modification. Thanks in advance. Are you referring to the #1195 posted above by @inclement. |
Yes, I didn't do it neatly by pulling this or that because there were few changes and I was afraid to mess with git commands so what I did is this: EDIT: In requirements, openssl no longer necessary. I tried and did a clean, no problem since p4a compiles py3crystax correctly with ssl included now. |
Hello, I have a problem and I can't find a solution on internet BUT I may have found why I got this problem and wish to know your thoughts.
First I explain shortly what I'm doing and why:
I need to build a python/kivy app for android with ssl activated and python3.
To make my app I followed the kivy guide and installed crystax Ndk but their version of python has not been built after ssl so even if I add openssl as a requirement it still doesn't exists in python.
I found on a forum someone saying that the last non official versions of crystax https://dl.crystax.net/ have ssl integrated so I gave it a try.
Unfortunately I always get the error :
I need armeabi-v7a for my phone but whatever I was frustrated to have nothing working and decided to try the other archs.
I have the same error for each arch as if none was present. I looked for the error on internet and found this page:
https://github.com/kivy/python-for-android/blob/master/pythonforandroid/recipes/python3crystax/__init__.py
and if we look how the code searches for the archs, it goes to
crystax-ndk-10.3.2/sources/python/3.5/libs
but in the beta versions of crystax I can see that it's different, the folders are in
crystax-ndk-10.3.2/sources/python/3.5/shared
If I compare the android.mk of those 2 versions, the offi and the beta we can see the difference:
Offi:
Beta:
For now I intend to give it a try by moving the files and renaming folders in the beta version to get it to build but I was wondering if there is somewhere a p4a version which works with this different structure when looking for an architecture given python3.5 binaries, I found nothing yet.
Maybe it could be interesting to edit the
__init__.py
file to have it looking for an other structure/other folders if it doesn't find what it's looking for?I'm looking for your thoughts about this problem.
The text was updated successfully, but these errors were encountered: