buildozer -v android debug - issues

218 views
Skip to first unread message

Marcello Musarra

unread,
Jun 17, 2020, 9:19:25 AM6/17/20
to Kivy users support
I am having issues to debug apk using kivy and buildozer. My app uses matplotlib and its backend from garden as well as graph. I have main.py and main.kv
Please advise if there is any easiest and comfortable way to use interactive and self-updated (by user input change) math charts.

Help to solve the issues is much appreciated.

running
buildozer -v android debug

When I leave
# (list) Garden requirements
garden_requirements = graph,matplotlib

I get this error

Failed building wheel for Kivy-Garden
  Running setup.py clean for Kivy-Garden
Failed to build Kivy-Garden
Installing collected packages: chardet, idna, urllib3, certifi, requests, Kivy-Garden
  Running setup.py install for Kivy-Garden: started
    Running setup.py install for Kivy-Garden: finished with status 'done'
Successfully installed Kivy-Garden-0.1.1 certifi-2020.4.5.2 chardet-3.0.4 idna-2.9 requests-2.23.0 urllib3-1.25.9
# Create directory /home/musarra/Desktop/musarrapc/docs/pyproj/yfacereal/.buildozer/libs
# Install garden package graph in buildozer_dir
# Run 'garden install --app graph'
# Cwd /home/musarra/Desktop/musarrapc/docs/pyproj/yfacereal/.buildozer
Downloading http://github.com/kivy-garden/garden.graph/archive/master.zip ...
Traceback (most recent call last):
  File "/home/musarra/Desktop/musarrapc/docs/pyproj/yfacereal/.buildozer/venv/bin/garden", line 189, in <module>
    GardenTool().main(sys.argv[1:])
  File "/home/musarra/Desktop/musarrapc/docs/pyproj/yfacereal/.buildozer/venv/bin/garden", line 71, in main
    options.func()
  File "/home/musarra/Desktop/musarrapc/docs/pyproj/yfacereal/.buildozer/venv/bin/garden", line 109, in cmd_install
    fd = self.download(opts.package)
  File "/home/musarra/Desktop/musarrapc/docs/pyproj/yfacereal/.buildozer/venv/bin/garden", line 170, in download
    data += buf
TypeError: must be str, not bytes
# Command failed: garden install --app graph


When I leave
# (list) Garden requirements
#garden_requirements = graph,matplotlib

[INFO]:    Prebuilding kivy for arm64-v8a
[INFO]:    kivy has no prebuild_arm64_v8a, skipping
[INFO]:    Prebuilding matplotlib for arm64-v8a
[INFO]:    Downloading jquery-ui for matplatlib web backend
[INFO]:    Will download into /home/musarra/Desktop/musarrapc/docs/pyproj/yfacereal/.buildozer/android/platform/build-arm64-v8a/build/other_builds/matplotlib/arm64-v8a__ndk_target_21/matplotlib/p4a_files
[INFO]:    Downloading matplotlib from https://jqueryui.com/resources/download/jquery-ui-1.12.1.zip
Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/musarra/Desktop/musarrapc/docs/pyproj/yfacereal/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1259, in <module>
    main()
  File "/home/musarra/Desktop/musarrapc/docs/pyproj/yfacereal/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
    ToolchainCL()
  File "/home/musarra/Desktop/musarrapc/docs/pyproj/yfacereal/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 708, in __init__
    getattr(self, command)(args)
  File "/home/musarra/Desktop/musarrapc/docs/pyproj/yfacereal/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 153, in wrapper_func
    build_dist_from_args(ctx, dist, args)
  File "/home/musarra/Desktop/musarrapc/docs/pyproj/yfacereal/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 215, in build_dist_from_args
    args, "ignore_setup_py", False
  File "/home/musarra/Desktop/musarrapc/docs/pyproj/yfacereal/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 569, in build_recipes
    recipe.prebuild_arch(arch)
  File "/home/musarra/Desktop/musarrapc/docs/pyproj/yfacereal/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/matplotlib/__init__.py", line 104, in prebuild_arch
    self.download_web_backend_dependencies(arch)
  File "/home/musarra/Desktop/musarrapc/docs/pyproj/yfacereal/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/matplotlib/__init__.py", line 93, in download_web_backend_dependencies
    self.download_file(url, target_file)
  File "/home/musarra/Desktop/musarrapc/docs/pyproj/yfacereal/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 196, in download_file
    urlretrieve(url, target, report_hook)
  File "/usr/lib/python3.6/urllib/request.py", line 248, in urlretrieve
    with contextlib.closing(urlopen(url, data)) as fp:
  File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.6/urllib/request.py", line 532, in open
    response = meth(req, response)
  File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib/python3.6/urllib/request.py", line 570, in error
    return self._call_chain(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default
    raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden
Download failed retrying in a second...Download failed retrying in a second...Download failed retrying in a second...Download failed retrying in a second...# Command failed: /usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=ufaceapp --bootstrap=sdl2 --requirements=python3,kivy,numpy,matplotlib --arch arm64-v8a --copy-libs --color=always --storage-dir="/home/musarra/Desktop/musarrapc/docs/pyproj/yfacereal/.buildozer/android/platform/build-arm64-v8a" --ndk-api=21


Below my buildozer.spec.

[app]

# (str) Title of your application
title = Uface

# (str) Package name
package.name = ufaceapp

# (str) Package domain (needed for android/ios packaging)
package.domain = mmeng.org

# (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, ttf

# (list) List of inclusions using pattern matching
#source.include_patterns = assets/*,images/*.png

# (list) Source files to exclude (let empty to not exclude anything)
#source.exclude_exts = spec

# (list) List of directory to exclude (let empty to not exclude anything)
#source.exclude_dirs = tests, bin

# (list) List of exclusions using pattern matching
#source.exclude_patterns = license,images/*/*.jpg

# (str) Application versioning (method 1)
version = 0.25

# (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 = graph,matplotlib

# (str) Presplash of the application
#presplash.filename = %(source.dir)s/data/presplash.png

# (str) Icon of the application
icon.filename = t.png

# (str) Supported orientation (one of landscape, sensorLandscape, portrait or all)
#orientation = all

# (list) List of service to declare
#services = NAME:ENTRYPOINT_TO_PY,NAME2:ENTRYPOINT2_TO_PY

#
# OSX Specific
#

#
 author = Copyright © 2019 by Marcello Musarra

# change the major version of python used by the app
osx.python_version = 3

# Kivy version to use
osx.kivy_version = 1.11.1

#
# Android specific
#

# (bool) Indicate if the application should be fullscreen or not
fullscreen = 0

# (string) Presplash background color (for new android toolchain)
# Supported formats are: #RRGGBB #AARRGGBB or one of the following names:
# red, blue, green, black, white, gray, cyan, magenta, yellow, lightgray,
# darkgray, grey, lightgrey, darkgrey, aqua, fuchsia, lime, maroon, navy,
# olive, purple, silver, teal.
#android.presplash_color = #FFFFFF

# (list) Permissions
#android.permissions = INTERNET

# (int) Target Android API, should be as high as possible.
android.api = 28

# (int) Minimum API your APK will support.
#android.minapi = 21

# (int) Android SDK version to use
#android.sdk = 20

# (str) Android NDK version to use
#android.ndk = 19b

# (int) Android NDK API to use. This is the minimum API your app will support, it should usually match android.minapi.
#android.ndk_api = 21

# (bool) Use --private data storage (True) or --dir public storage (False)
#android.private_storage = True

# (str) Android NDK directory (if empty, it will be automatically downloaded.)
#android.ndk_path =

# (str) Android SDK directory (if empty, it will be automatically downloaded.)
#android.sdk_path =

# (str) ANT directory (if empty, it will be automatically downloaded.)
#android.ant_path =

# (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 = False

# (str) Android entry point, default is ok for Kivy-based app
#android.entrypoint = org.renpy.android.PythonActivity

# (str) Android app theme, default is ok for Kivy-based app
# android.apptheme = "@android:style/Theme.NoTitleBar"

# (list) Pattern to whitelist for the whole project
#android.whitelist =

# (str) Path to a custom whitelist file
#android.whitelist_src =

# (str) Path to a custom blacklist file
#android.blacklist_src =

# (list) List of Java .jar files to add to the libs so that pyjnius can access
# their classes. Don't add jars that you do not need, since extra jars can slow
# down the build process. Allows wildcards matching, for example:
# OUYA-ODK/libs/*.jar
#android.add_jars = foo.jar,bar.jar,path/to/more/*.jar

# (list) List of Java files to add to the android project (can be java or a
# directory containing the files)
#android.add_src =

# (list) Android AAR archives to add (currently works only with sdl2_gradle
# bootstrap)
#android.add_aars =

# (list) Gradle dependencies to add (currently works only with sdl2_gradle
# bootstrap)
#android.gradle_dependencies =

# (list) add java compile options
# this can for example be necessary when importing certain java libraries using the 'android.gradle_dependencies' option
# see https://developer.android.com/studio/write/java8-support for further information
# android.add_compile_options = "sourceCompatibility = 1.8", "targetCompatibility = 1.8"

# (list) Gradle repositories to add {can be necessary for some android.gradle_dependencies}
# please enclose in double quotes
# e.g. android.gradle_repositories = "maven { url 'https://kotlin.bintray.com/ktor' }"
#android.add_gradle_repositories =

# (list) packaging options to add
# see https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.PackagingOptions.html
# can be necessary to solve conflicts in gradle_dependencies
# please enclose in double quotes
# e.g. android.add_packaging_options = "exclude 'META-INF/common.kotlin_module'", "exclude 'META-INF/*.kotlin_module'"
#android.add_gradle_repositories =

# (list) Java classes to add as activities to the manifest.
#android.add_activities = com.example.ExampleActivity

# (str) OUYA Console category. Should be one of GAME or APP
# If you leave this blank, OUYA support will not be enabled
#android.ouya.category = GAME

# (str) Filename of OUYA Console icon. It must be a 732x412 png image.
#android.ouya.icon.filename = %(source.dir)s/data/ouya_icon.png

# (str) XML file to include as an intent filters in <activity> tag
#android.manifest.intent_filters =

# (str) launchMode to set for the main activity
#android.manifest.launch_mode = standard

# (list) Android additional libraries to copy into libs/armeabi
#android.add_libs_armeabi = libs/android/*.so
#android.add_libs_armeabi_v7a = libs/android-v7/*.so
#android.add_libs_arm64_v8a = libs/android-v8/*.so
#android.add_libs_x86 = libs/android-x86/*.so
#android.add_libs_mips = libs/android-mips/*.so

# (bool) Indicate whether the screen should stay on
# Don't forget to add the WAKE_LOCK permission if you set this to True
#android.wakelock = False

# (list) Android application meta-data to set (key=value format)
#android.meta_data =

# (list) Android library project to add (will be added in the
# project.properties automatically.)
#android.library_references =

# (list) Android shared libraries which will be added to AndroidManifest.xml using <uses-library> tag
#android.uses_library =

# (str) Android logcat filters to use
#android.logcat_filters = *:S python:D

# (bool) Copy library instead of making a libpymodules.so
#android.copy_libs = 1

# (str) The Android arch to build for, choices: armeabi-v7a, arm64-v8a, x86, x86_64
android.arch = arm64-v8a

# (int) overrides automatic versionCode computation (used in build.gradle)
# this is not the same as app version and should only be edited if you know what you're doing
# android.numeric_version = 1

#
# Python for android (p4a) specific
#

# (str) python-for-android fork to use, defaults to upstream (kivy)
#p4a.fork = kivy

# (str) python-for-android branch to use, defaults to master
p4a.branch = develop

# (str) python-for-android git clone directory (if empty, it will be automatically cloned from github)
#p4a.source_dir =

# (str) The directory in which python-for-android should look for your own build recipes (if any)
#p4a.local_recipes =

# (str) Filename to the hook for p4a
#p4a.hook =

# (str) Bootstrap to use for android builds
# p4a.bootstrap = sdl2

# (int) port number to specify an explicit --port= p4a argument (eg for bootstrap flask)
#p4a.port =


#
# iOS specific
#

# (str) Path to a custom kivy-ios folder
#ios.kivy_ios_dir = ../kivy-ios
# Alternately, specify the URL and branch of a git checkout:
ios.kivy_ios_url = https://github.com/kivy/kivy-ios
ios.kivy_ios_branch = master

# Another platform dependency: ios-deploy
# Uncomment to use a custom checkout
#ios.ios_deploy_dir = ../ios_deploy
# Or specify URL and branch
ios.ios_deploy_url = https://github.com/phonegap/ios-deploy
ios.ios_deploy_branch = 1.7.0

# (str) Name of the certificate to use for signing the debug version
# Get a list of available identities: buildozer ios list_identities
#ios.codesign.debug = "iPhone Developer: <lastname> <firstname> (<hexstring>)"

# (str) Name of the certificate to use for signing the release version
#ios.codesign.release = %(ios.codesign.debug)s


[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 = 1

# (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

#    -----------------------------------------------------------------------------
#    List as sections
#
#    You can define all the "list" as [section:key].
#    Each line will be considered as a option to the list.
#    Let's take [app] / source.exclude_patterns.
#    Instead of doing:
#
#[app]
#source.exclude_patterns = license,data/audio/*.wav,data/images/original/*
#
#    This can be translated into:
#
#[app:source.exclude_patterns]
#license
#data/audio/*.wav
#data/images/original/*
#


#    -----------------------------------------------------------------------------
#    Profiles
#
#    You can extend section / key with a profile
#    For example, you want to deploy a demo version of your application without
#    HD content. You could first change the title to add "(demo)" in the name
#    and extend the excluded directories to remove the HD content.
#
#[app@demo]
#title = My Application (demo)
#
#[app:source.exclude_patterns@demo]
#images/hd/*
#
#    Then, invoke the command line with the "demo" profile:
#
#buildozer --profile demo android debug

K leo

unread,
Jun 17, 2020, 9:24:51 AM6/17/20
to Kivy users support
Try set "android.permissions = INTERNET" in the spec file

Marcello Musarra

unread,
Jun 17, 2020, 9:29:40 AM6/17/20
to Kivy users support
just did it, same errors....

Robert Flatt

unread,
Jun 17, 2020, 3:09:43 PM6/17/20
to Kivy users support
The second one is:        sudo apt install libssl-dev
But is a recent change so perhaps nobody sent you the memo ;)

I'm not a garden user so I can't help with the other, but I know the structure of Garden changed a while back.
Check you are using a recent version of Buildozer.

Marcello Musarra

unread,
Jun 17, 2020, 3:27:59 PM6/17/20
to kivy-...@googlegroups.com
Hi Robert,

I have just done that and the same error persists.

I confirm that I have followed all procedures from https://buildozer.readthedocs.io/en/latest/installation.html for correct installation.

running the command sudo apt install libssl-dev, see the message below:

Reading package lists... Done
Building dependency tree      
Reading state information... Done
libssl-dev is already the newest version (1.1.1-1ubuntu2.1~18.04.6).
The following packages were automatically installed and are no longer required:
  linux-headers-4.15.0-101 linux-headers-4.15.0-101-generic
  linux-headers-4.15.0-99 linux-headers-4.15.0-99-generic
  linux-headers-5.3.0-46 linux-headers-5.3.0-46-generic linux-headers-5.3.0-51
  linux-headers-5.3.0-51-generic linux-image-4.15.0-101-generic
  linux-image-4.15.0-99-generic linux-image-5.3.0-46-generic
  linux-image-5.3.0-51-generic linux-modules-4.15.0-101-generic
  linux-modules-4.15.0-99-generic linux-modules-5.3.0-46-generic
  linux-modules-5.3.0-51-generic linux-modules-extra-4.15.0-101-generic
  linux-modules-extra-4.15.0-99-generic linux-modules-extra-5.3.0-46-generic
  linux-modules-extra-5.3.0-51-generic
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

when running
pip3 install --user --upgrade buildozer

Requirement already up-to-date: buildozer in ./.local/lib/python3.6/site-packages (1.2.0)
Requirement already satisfied, skipping upgrade: sh in /usr/local/lib/python3.6/dist-packages/sh-1.13.1-py3.6.egg (from buildozer) (1.13.1)
Requirement already satisfied, skipping upgrade: virtualenv in ./.local/lib/python3.6/site-packages (from buildozer) (20.0.22)
Requirement already satisfied, skipping upgrade: pexpect in /usr/lib/python3/dist-packages (from buildozer) (4.2.1)
Requirement already satisfied, skipping upgrade: six<2,>=1.9.0 in /usr/lib/python3/dist-packages (from virtualenv->buildozer) (1.11.0)
Requirement already satisfied, skipping upgrade: appdirs<2,>=1.4.3 in /usr/local/lib/python3.6/dist-packages/appdirs-1.4.4-py3.6.egg (from virtualenv->buildozer) (1.4.4)
Requirement already satisfied, skipping upgrade: filelock<4,>=3.0.0 in /usr/local/lib/python3.6/dist-packages/filelock-3.0.12-py3.6.egg (from virtualenv->buildozer) (3.0.12)
Requirement already satisfied, skipping upgrade: distlib<1,>=0.3.0 in /usr/local/lib/python3.6/dist-packages/distlib-0.3.0-py3.6.egg (from virtualenv->buildozer) (0.3.0)
Requirement already satisfied, skipping upgrade: importlib-metadata<2,>=0.12; python_version < "3.8" in ./.local/lib/python3.6/site-packages (from virtualenv->buildozer) (1.5.0)
Requirement already satisfied, skipping upgrade: importlib-resources>=1.0; python_version < "3.7" in /usr/local/lib/python3.6/dist-packages/importlib_resources-1.5.0-py3.6.egg (from virtualenv->buildozer) (1.5.0)
Requirement already satisfied, skipping upgrade: zipp>=0.5 in ./.local/lib/python3.6/site-packages (from importlib-metadata<2,>=0.12; python_version < "3.8"->virtualenv->buildozer) (2.2.0)

--
You received this message because you are subscribed to the Google Groups "Kivy users support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/5c027c5b-7d87-4138-ac2d-441d54650282o%40googlegroups.com.

Robert Flatt

unread,
Jun 17, 2020, 5:25:26 PM6/17/20
to Kivy users support
As I said earlier I am not a Garden user, all I can do is suggest things to look at.

Buildozer is latest,  but Garden is from 2013     
Successfully installed Kivy-Garden-0.1.1
Don't know why that would be.

To work around buildozer/garden issues you could copy    graph  to your app source directory and  in the app import from there in place of importing via garden.

Also I wonder about matplotlib,  perhaps the recipe would be a better choice on Android?

Good luck.
To unsubscribe from this group and stop receiving emails from it, send an email to kivy-...@googlegroups.com.

Marcello Musarra

unread,
Jun 17, 2020, 6:39:15 PM6/17/20
to kivy-...@googlegroups.com
Thanks for the idea, will try to clone from github graph and import from local to see if it works.

With respect to matplotlib, I did not understand what you meant. The app is indeed targetting android for now...


To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/8e9b58e4-749d-4e01-a092-1e4c0776e6c5o%40googlegroups.com.

Robert Flatt

unread,
Jun 17, 2020, 7:09:51 PM6/17/20
to Kivy users support
I just wonder if the matplotlib recipe (so requirements) would be a better choice that the garden matplotlib
I dont know the answer to that question.

Marcello Musarra

unread,
Jun 17, 2020, 8:05:31 PM6/17/20
to kivy-...@googlegroups.com
ok I see. Originally I set up the code this way because I thought there was no other way to use kivy with matplotlib backend FigureCanvasAgg, only through garden. But seems that things might have been updated. I'll check.

Get back soon. thanks 

To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/b79668ba-6725-4544-b0db-8401d2e882d0o%40googlegroups.com.

Marcello Musarra

unread,
Jun 18, 2020, 8:40:36 AM6/18/20
to kivy-...@googlegroups.com
Updates:

I managed to get rid of matplotlib and use just `graph` folder from my app root directory, it seemed to work.
However, trying to build the apk, other errors appeared as below...
I guess it is taking wrong architecture to build (buildozer spec - android.arch = arm64-v8a, no idea why) and not packaging as it should be.

# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Run 'dpkg --version'
# Cwd None
Debian 'dpkg' package management program version 1.19.0.5 (amd64).
This is free software; see the GNU General Public License version 2 or
later for copying conditions. There is NO warranty.
# Search for Git (git)
#  -> found at /usr/bin/git
# Search for Cython (cython)
#  -> found at /home/musarra/.local/bin/cython
# Search for Java compiler (javac)
#  -> found at /usr/lib/jvm/java-8-openjdk-amd64/bin/javac
# Search for Java keytool (keytool)
#  -> found at /usr/lib/jvm/java-11-openjdk-amd64/bin/keytool
# Install platform
# Run 'git config --get remote.origin.url'
# Cwd /home/musarra/Desktop/musarrapc/docs/pyproj/yfacereal/.buildozer/android/platform/python-for-android
https://github.com/kivy/python-for-android.git
# Run 'git branch -vv'
# Cwd /home/musarra/Desktop/musarrapc/docs/pyproj/yfacereal/.buildozer/android/platform/python-for-android
* develop 61be5d4c [origin/develop] Merge pull request #2236 from Swpolo/patch-1
# Run '/usr/bin/python3 -m pip install -q --user \'appdirs\' \'colorama>=0.3.3\' \'jinja2\' \'six\' \'enum34; python_version<"3.4"\' \'sh>=1.10; sys_platform!="nt"\' \'pep517<0.7.0"\' \'toml\''
# Cwd None
# Apache ANT found at /home/musarra/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/musarra/.buildozer/android/platform/android-sdk
# Recommended android's NDK version by p4a is: 19c
# Android NDK found at /home/musarra/.buildozer/android/platform/android-ndk-r19c
# Check application requirements
# Check garden requirements
# Compile platform
# Run '/usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=ufaceapp --bootstrap=sdl2 --requirements=python3,kivy,numpy #,matplotlib --arch arm64-v8a --copy-libs --color=always --storage-dir="/home/musarra/Desktop/musarrapc/docs/pyproj/yfacereal/.buildozer/android/platform/build-arm64-v8a" --ndk-api=21'
# Cwd /home/musarra/Desktop/musarrapc/docs/pyproj/yfacereal/.buildozer/android/platform/python-for-android
[INFO]:    Will compile for the following archs: armeabi-v7a
[INFO]:    Found Android API target in $ANDROIDAPI: 28
[INFO]:    Available Android APIs are (27, 28)
[INFO]:    Requested API target 28 is available, continuing.
[INFO]:    Found NDK dir in $ANDROIDNDK: /home/musarra/.buildozer/android/platform/android-ndk-r19c
[INFO]:    Found NDK version 19c
[WARNING]: NDK API target was not set manually, using the default of 21 = min(android-api=28, default ndk-api=21)
[INFO]:    ccache is missing, the build will not be optimized in the future.
[INFO]:    Found the following toolchain versions: ['4.9']
[INFO]:    Picking the latest gcc toolchain, here 4.9
[INFO]:    Of the existing distributions, the following meet the given requirements:
[INFO]:     ufaceapp: min API 21, includes recipes (hostpython3, libffi, openssl, sdl2_image, sdl2_mixer, sdl2_ttf, sqlite3, python3, sdl2, setuptools, cython, six, numpy, pyjnius, android, kivy, certifi), built for archs (armeabi-v7a)
[INFO]:    ufaceapp has compatible recipes, using this one

# Package the application

Traceback (most recent call last):
  File "/home/musarra/.local/bin/buildozer", line 8, in <module>
    sys.exit(main())
  File "/home/musarra/.local/lib/python3.6/site-packages/buildozer/scripts/client.py", line 13, in main
    Buildozer().run_command(sys.argv[1:])
  File "/home/musarra/.local/lib/python3.6/site-packages/buildozer/__init__.py", line 1047, in run_command
    self.target.run_commands(args)
  File "/home/musarra/.local/lib/python3.6/site-packages/buildozer/target.py", line 92, in run_commands
    func(args)
  File "/home/musarra/.local/lib/python3.6/site-packages/buildozer/target.py", line 104, in cmd_debug
    self.buildozer.build()
  File "/home/musarra/.local/lib/python3.6/site-packages/buildozer/__init__.py", line 205, in build
    self.target.build_package()
  File "/home/musarra/.local/lib/python3.6/site-packages/buildozer/targets/android.py", line 1014, in build_package
    self._update_libraries_references(dist_dir)
  File "/home/musarra/.local/lib/python3.6/site-packages/buildozer/targets/android.py", line 1254, in _update_libraries_references
    with io.open(project_fn, 'w', encoding='utf-8') as fd:
FileNotFoundError: [Errno 2] No such file or directory: '/home/musarra/Desktop/musarrapc/docs/pyproj/yfacereal/.buildozer/android/platform/build-arm64-v8a/dists/ufaceapp__arm64-v8a/project.properties'

Robert Flatt

unread,
Jun 18, 2020, 12:52:16 PM6/18/20
to Kivy users support
buildozer appclean
when switching from one processeor architecture to another

Marcello Musarra

unread,
Jun 18, 2020, 12:59:16 PM6/18/20
to kivy-...@googlegroups.com
Ok, did it, but still same issue...I have also tried manually deletin bin and .buildozer folder....same issue

To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/807da009-51d3-440b-b162-d5c712afca3bo%40googlegroups.com.

Robert Flatt

unread,
Jun 18, 2020, 5:26:42 PM6/18/20
to Kivy users support
no clue.

try recreating the .spec and changing nothing 
build
then step by step, make one change, clean, build, ........

Marcello Musarra

unread,
Jun 18, 2020, 5:29:59 PM6/18/20
to kivy-...@googlegroups.com
got it, will try that.

Thanks Robert !


To unsubscribe from this group and stop receiving emails from it, send an email to kivy-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kivy-users/36a5315a-9c3f-4be0-8f88-9136d3c9a1d3o%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages