question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

numpy recipe bug arm64-v8a

See original GitHub issue

Versions

  • 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:

  1. 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
  2. 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:39 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
inclementcommented, Jun 26, 2019

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.

0reactions
DerRiedicommented, May 25, 2020

This does not work for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

NumPy 1.21.1 Release Notes
The NumPy 1.21.1 is maintenance release that fixes bugs discovered after the 1.21.0 release and updates OpenBLAS to v0.3.17 to deal with problems...
Read more >
Buildozer(Conda Python3 Environment) + kivy, numpy, scipy ...
I saw that there are plenty of recipes already available in python-for-android (p4a) and my understanding is that buildozer is working with this...
Read more >
Frequently Asked Questions - SciPy
What is SciPy? SciPy is a set of open source (BSD licensed) scientific and numerical tools for Python. It currently supports special functions,...
Read more >
4.5. Understanding the internals of NumPy to avoid ...
In this recipe, we will see how to avoid unnecessary array copies in order ... Knowing this subtlety of NumPy can help you...
Read more >
How to print the full numpy array without truncating? - ProjectPro
Table of Contents. Recipe Objective. Step 1 - Import library; Step 2 - Take Sample array; Step 3 - Print final Result Sample_array_2...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found