You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
What are you trying to get done
Create an APK with a Python Kivy app which includes, numpy and matplotlib module.
What has happened and What went wrong
Building process finished correctly (I have the APK).
Execution process ended before the app is fully loaded with error message:
ImportError: dlopen failed: cannot locate symbol "_ZNSt12length_errorD1Ev" referenced by "/data/data/org.test.kivy_plot/files/app/_python_bundle/site-packages/matplotlib/_path.so"...
buildozer.spec
[app]
# (str) Title of your application
title = Kivy Matplotlib
# (str) Package name
package.name = kivy_plot
# (str) Package domain (needed for android/ios packaging)
package.domain = org.test
# (str) Source code where the main.py live
source.dir = .
# (list) Source files to include (let empty to include all the files)
source.include_exts = py,png,jpg,kv,atlas
# (list) List of inclusions using pattern matching
#source.include_patterns = assets/*,images/*.png
# (str) Application versioning (method 1)
version = 1.0.0
# (str) Application versioning (method 2)
# version.regex = __version__ = ['"](.*)['"]
# version.filename = %(source.dir)s/main.py
# (list) Application requirements
# comma separated e.g. requirements = sqlite3,kivy
requirements = python3,kivy,numpy,matplotlib
# (str) Custom source folders for requirements
# Sets custom source for any requirements with recipes
# requirements.source.kivy = ../../kivy
# (list) Garden requirements
garden_requirements = matplotlib
# (str) Presplash of the application
#presplash.filename = %(source.dir)s/data/presplash.png
# (str) Icon of the application
#icon.filename = %(source.dir)s/data/icon.png
# (str) Supported orientation (one of landscape, sensorLandscape, portrait or all)
orientation = landscape
# (bool) Indicate if the application should be fullscreen or not
fullscreen = 0
# (string) Presplash background color (for new android toolchain)
android.presplash_color = #FFFFFF
# (list) Permissions
android.permissions = INTERNET,WRITE_EXTERNAL_STORAGE
# (int) Target Android API, should be as high as possible.
#android.api = 28
# (int) Minimum API your APK will support.
#android.minapi = 21
# (str) Android NDK version to use
android.ndk = 19c
# (bool) If True, then skip trying to update the Android sdk
# This can be useful to avoid excess Internet downloads or save time
# when an update is due and you just want to test/build your package
android.skip_update = False
# (bool) If True, then automatically accept SDK license
# agreements. This is intended for automation only. If set to False,
# the default, you will be shown the license when first running
# buildozer.
android.accept_sdk_license = True
# (str) Android logcat filters to use
android.logcat_filters = *:S python:D
# (str) The Android arch to build for, choices: armeabi-v7a, arm64-v8a, x86, x86_64
android.arch = armeabi-v7a
[buildozer]
# (int) Log level (0 = error only, 1 = info, 2 = debug (with command output))
log_level = 2
# (int) Display warning if buildozer is run as root (0 = False, 1 = True)
warn_on_root = 0
# (str) Path to build artifact storage, absolute or relative to spec file
build_dir = ./.buildozer
# (str) Path to build output (i.e. .apk, .ipa) storage
bin_dir = ./bin
I was able to solve my issue my changing the line 128 in the recipe.py by "need_stl_shared = True".
I'm sure it is not the best way, but I don't know how to change this feature in the matplotlib recipe.
Versions
Python: Python-3.7.1
OS: Ubuntu 18.04 (Docker from buildozer's repo
https://github.com/kivy/buildozer/blob/master/Dockerfile ).
Kivy: 1.11.1
python-for-android: release-2019.08.09
Description
What are you trying to get done
Create an APK with a Python Kivy app which includes, numpy and matplotlib module.
What has happened and What went wrong
Building process finished correctly (I have the APK).
Execution process ended before the app is fully loaded with error message:
ImportError: dlopen failed: cannot locate symbol "_ZNSt12length_errorD1Ev" referenced by "/data/data/org.test.kivy_plot/files/app/_python_bundle/site-packages/matplotlib/_path.so"...
buildozer.spec
main.py
log
The text was updated successfully, but these errors were encountered: