numpy recipe bug arm64-v8a
See original GitHub issueVersions
- Python: 3
- OS: linux
- Kivy: 1.11
- Cython: not sure
Description
// REPLACE ME: What are you trying to get done, what has happened, what went wrong, and what did you expect?
Google Play does not support 32 bit libraries and the armeabi-v7a cannot be used. This means the apk I created and worked for months could not be uploaded. I tried to fix that issue changing the architecture to 64 bit arm64-v8a. Problem is that I have numpy in requirements and it has an issue with the recipe. The apk get’s built but crashes immediately, it never opens.
I am not expert programmer but my suggestions to solve/check the issue looking to numpy recipe are:
- this url = ‘https://pypi.python.org/packages/source.....etc’ does not exist. I would replace for https://pypi.org/simple/numpy/numpy-1.16.4.zip instead
- in recipe, version = ‘1.15.1’. In numpy website, version = 1.16.4
I built a very simple HelloWorld app in kivy to demonstrate this issue below.
Command:
buildozer android debug
Logs
06/18 23:34:21: Launching hwtest-0.1-debug $ adb shell am start -n “org.test.hwtest/org.kivy.android.PythonActivity” -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Client not ready yet…Waiting for process to come online Waiting for process to come online Capturing and displaying logcat messages from application. This behavior can be disabled in the “Logcat output” section of the “Debugger” settings page. I/python: [INFO ] [Factory ] 184 symbols loaded I/python: [INFO ] [Image ] Providers: img_tex, img_dds, img_sdl2, img_gif (img_pil, img_ffpyplayer ignored) I/python: Traceback (most recent call last): File “/home/musarra/Documents/pyprojects/helloworld/.buildozer/android/platform/build/build/python-installs/hwtest/numpy/core/init.py”, line 16, in <module> I/python: ImportError: dlopen failed: cannot locate symbol “__fixunstfsi” referenced by “/data/data/org.test.hwtest/files/app/_python_bundle/site-packages/numpy/core/multiarray.so”…
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/musarra/Documents/pyprojects/helloworld/.buildozer/android/app/main.py", line 3, in <module>
I/python: File “/home/musarra/Documents/pyprojects/helloworld/.buildozer/android/platform/build/build/python-installs/hwtest/numpy/init.py”, line 142, in <module>
File “/home/musarra/Documents/pyprojects/helloworld/.buildozer/android/platform/build/build/python-installs/hwtest/numpy/add_newdocs.py”, line 13, in <module>
File “/home/musarra/Documents/pyprojects/helloworld/.buildozer/android/platform/build/build/python-installs/hwtest/numpy/lib/init.py”, line 8, in <module>
I/python: File “/home/musarra/Documents/pyprojects/helloworld/.buildozer/android/platform/build/build/python-installs/hwtest/numpy/lib/type_check.py”, line 11, in <module>
File “/home/musarra/Documents/pyprojects/helloworld/.buildozer/android/platform/build/build/python-installs/hwtest/numpy/core/init.py”, line 26, in <module>
ImportError:
I/python: Importing the multiarray numpy extension module failed. Most
likely you are trying to import a failed build of numpy.
If you’re working with a numpy git repo, try git clean -xdf
(removes all
files not under version control). Otherwise reinstall numpy.
Original error was: dlopen failed: cannot locate symbol "__fixunstfsi" referenced by "/data/data/org.test.hwtest/files/app/_python_bundle/site-packages/numpy/core/multiarray.so"...
Python for android ended.
W/IPCThreadState: Calling IPCThreadState::self() during shutdown is dangerous, expect a crash. W/org.test.hwtes: 0xebadde09 skipped times: 0 A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x184 in tid 26345 (org.test.hwtest), pid 26345 (org.test.hwtest) Application terminated.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:39 (17 by maintainers)
Top GitHub Comments
I got 1.16.4 working and seems to run fine under armeabi-v7a and arm64-v8a. PR at #1892 for reference but it’s in an untidy half-finished state right now. I’ll finish it within the next few days.
This does not work for me