Add 'enable-ssl.patch' to Python2Recipe.patches#935
Add 'enable-ssl.patch' to Python2Recipe.patches#935PapaTutuWawa wants to merge 1 commit intokivy:masterfrom PapaTutuWawa:python2-ssl
Conversation
|
I was looking into this to understand it better, and I think this patch is maybe supposed to be unnecessary following https://github.com/kivy/python-for-android/pull/838/files , but I'm not really sure. I've never used openssl directly myself, so I'll try to test it just to be sure. |
|
Maybe this helps to reproduce it: If I try to import (python2) ssl or use a package that imports ssl, I always got the error that |
|
This is a possible fix for #850 I will try to check when i have time |
|
I tried this patch and got the same error (below) after the patch. E/dalvikvm( 3869): dlopen("/data/app-lib/com.masterpics.slideshow-1/libpython2.7.so") failed: Cannot load library: soinfo_link_image(linker.cpp:1635): could not load library "libssl1.0.2h.so" needed by "libpython2.7.so"; caused by load_library(linker.cpp:745): library "libssl1.0.2h.so" not found Android 4.2.2 generates this error but 4.4.2 does not generate this error. |
|
Are there any suggestions to fix this problem? I'm still getting the same error and can't find a solution online. |
|
@frankgould see this answer. Basically it means that 4.2 isn't able to load libs automatically, so we do it here instead. We should probably have a way how to include custom libs into that for loop too. |
|
Hi KeyWeeUsr, thanks for your quick response. I tried several different compiles with PythonUtil.java edited with the additional "load" code but these all errored out by not finding the names. So, I grep searched for libpythonXXX.so and found 5 copies of PythonUtil.java, some did not have the System.loadLibrary(lib), which I added and rebuilt. Now the error is "Cannot load library: find_library(linker.cpp:889): "/data/app-lib/com.masterpics.slideshow-1/libpython2.7.so" failed to load previously." I wasn't sure if it is helpful but below are recipes I am using. My buildozer.spec requirements are: Thanks again for your help. |
|
I was able to solve this using the information from the following link: |
|
I just used this to enable ssl in gevent (python 2). Otherwise it complains about missing _ssl |
|
This change did not fix the issue 850 for me. |
|
This is rather old and conflicting with recent p4a refactoring, e.g. #1537 |
This PR is supposed to fix the issue that ssl cannot be imported in python2
See issue #934