(ClockApp) gikpro@gikpro-PC:~/PycharmProjects/ClockApp$ buildozer -v android debug
# Check configuration tokens
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Search for Git (git)
# -> found at /usr/bin/git
# Search for Cython (cython)
# -> found at /home/gikpro/.local/share/virtualenvs/ClockApp-_k3u2tLx/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-8-openjdk-amd64/jre/bin/keytool
# Install platform
# Run ['git', 'config', '--get', 'remote.origin.url']
# Cwd /home/gikpro/PycharmProjects/ClockApp/.buildozer/android/platform/python-for-android
https://github.com/kivy/python-for-android.git# Run ['git', 'branch', '-vv']
# Cwd /home/gikpro/PycharmProjects/ClockApp/.buildozer/android/platform/python-for-android
* master cc6481b0 [origin/master] Merge pull request #2718 from kivy/release-2022.12.20
# Run ['/home/gikpro/.local/share/virtualenvs/ClockApp-_k3u2tLx/bin/python', '-m', 'pip', 'install', '-q', 'appdirs', 'colorama>=0.3.3', 'jinja2', 'sh>=1.10; sys_platform!="nt"', 'pep517', 'toml', 'packaging']
# Cwd None
[notice] A new release of pip available: 22.2.2 -> 23.0.1
[notice] To update, run: pip install --upgrade pip
# Apache ANT found at /home/gikpro/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /home/gikpro/.buildozer/android/platform/android-sdk
# Recommended android's NDK version by p4a is: 25b
# Android NDK found at /home/gikpro/.buildozer/android/platform/android-ndk-r25b
# Run ['/home/gikpro/.local/share/virtualenvs/ClockApp-_k3u2tLx/bin/python', '-m', 'pythonforandroid.toolchain', 'aab', '-h', '--color=always', '--storage-dir=/home/gikpro/PycharmProjects/ClockApp/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']
# Cwd /home/gikpro/PycharmProjects/ClockApp/.buildozer/android/platform/python-for-android
[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet.
[WARNING]: Please report any issues to the python-for-android issue tracker.
/home/gikpro/PycharmProjects/ClockApp/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py:59: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(cur_ver) < LooseVersion(version):
[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet.
[WARNING]: Please report any issues to the python-for-android issue tracker.
usage: toolchain.py aab [-h] [--debug] [--color {always,never,auto}]
[--sdk-dir SDK_DIR] [--ndk-dir NDK_DIR]
[--android-api ANDROID_API]
[--ndk-version NDK_VERSION] [--ndk-api NDK_API]
[--symlink-bootstrap-files]
[--storage-dir STORAGE_DIR] [--arch ARCH]
[--dist-name DIST_NAME] [--requirements REQUIREMENTS]
[--recipe-blacklist RECIPE_BLACKLIST]
[--blacklist-requirements BLACKLIST_REQUIREMENTS]
[--bootstrap BOOTSTRAP] [--hook HOOK] [--force-build]
[--no-force-build] [--require-perfect-match]
[--no-require-perfect-match] [--allow-replace-dist]
[--no-allow-replace-dist]
[--local-recipes LOCAL_RECIPES]
[--activity-class-name ACTIVITY_CLASS_NAME]
[--service-class-name SERVICE_CLASS_NAME]
[--java-build-tool {auto,ant,gradle}] [--copy-libs]
[--no-copy-libs] [--add-asset ASSETS]
[--add-resource RESOURCES] [--private PRIVATE]
[--use-setup-py] [--ignore-setup-py] [--release]
[--with-debug-symbols] [--keystore KEYSTORE]
[--signkey SIGNKEY] [--keystorepw KEYSTOREPW]
[--signkeypw SIGNKEYPW]
optional arguments:
-h, --help show this help message and exit
--debug Display debug output and all build info
--color {always,never,auto}
Enable or disable color output (default enabled on
tty)
--sdk-dir SDK_DIR, --sdk_dir SDK_DIR
The filepath where the Android SDK is installed
--ndk-dir NDK_DIR, --ndk_dir NDK_DIR
The filepath where the Android NDK is installed
--android-api ANDROID_API, --android_api ANDROID_API
The Android API level to build against defaults to 33
if not specified.
--ndk-version NDK_VERSION, --ndk_version NDK_VERSION
DEPRECATED: the NDK version is now found automatically
or not at all.
--ndk-api NDK_API The Android API level to compile against. This should
be your *minimal supported* API, not normally the same
as your --android-api. Defaults to min(ANDROID_API,
21) if not specified.
--symlink-bootstrap-files, --ssymlink_bootstrap_files
If True, symlinks the bootstrap files creation. This
is useful for development only, it could also cause
weird problems.
--storage-dir STORAGE_DIR
Primary storage directory for downloads and builds
(default: /home/gikpro/.local/share/python-for-
android)
--arch ARCH The archs to build for.
--dist-name DIST_NAME, --dist_name DIST_NAME
The name of the distribution to use or create
--requirements REQUIREMENTS
Dependencies of your app, should be recipe names or
Python modules. NOT NECESSARY if you are using Python
3 with --use-setup-py
--recipe-blacklist RECIPE_BLACKLIST
Blacklist an internal recipe from use. Allows
disabling Python 3 core modules to save size
--blacklist-requirements BLACKLIST_REQUIREMENTS
Blacklist an internal recipe from use. Allows
disabling Python 3 core modules to save size
--bootstrap BOOTSTRAP
The bootstrap to build with. Leave unset to choose
automatically.
--hook HOOK Filename to a module that contains python-for-android
hooks
--local-recipes LOCAL_RECIPES, --local_recipes LOCAL_RECIPES
Directory to look for local recipes
--activity-class-name ACTIVITY_CLASS_NAME
The full java class name of the main activity
--service-class-name SERVICE_CLASS_NAME
Full java package name of the PythonService class
--java-build-tool {auto,ant,gradle}
The java build tool to use when packaging the APK,
defaults to automatically selecting an appropriate
tool.
--add-asset ASSETS Put this in the assets folder in the apk.
--add-resource RESOURCES
Put this in the res folder in the apk.
--private PRIVATE the directory with the app source code files
(containing your main.py entrypoint)
--use-setup-py Process the setup.py of a project if present.
(Experimental!
--ignore-setup-py Don't run the setup.py of a project if present. This
may be required if the setup.py is not designed to
work inside p4a (e.g. by installing dependencies that
won't work or aren't desired on Android
--release Build your app as a non-debug release build. (Disables
gdb debugging among other things)
--with-debug-symbols Will keep debug symbols from `.so` files.
--keystore KEYSTORE Keystore for JAR signing key, will use jarsigner
default if not specified (release build only)
--signkey SIGNKEY Key alias to sign PARSER_APK. with (release build
only)
--keystorepw KEYSTOREPW
Password for keystore
--signkeypw SIGNKEYPW
Password for key alias
Whether to force compilation of a new distribution
--force-build
--no-force-build (this is the default)
--require-perfect-match
--no-require-perfect-match
(this is the default)
--allow-replace-dist (this is the default)
--no-allow-replace-dist
--copy-libs
--no-copy-libs (this is the default)
# Check application requirements
# Compile platform
# Run ['/home/gikpro/.local/share/virtualenvs/ClockApp-_k3u2tLx/bin/python', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=clockkivymd', '--bootstrap=sdl2', '--requirements=python3==3.8.10,hostpython3==3.8.10,kivy==2.1.0,kivymd==1.1.1,sdl2_ttf==2.0.15,pillow', '--arch=arm64-v8a', '--arch=armeabi-v7a', '--copy-libs', '--color=always', '--storage-dir=/home/gikpro/PycharmProjects/ClockApp/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']
# Cwd /home/gikpro/PycharmProjects/ClockApp/.buildozer/android/platform/python-for-android
[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet.
[WARNING]: Please report any issues to the python-for-android issue tracker.
/home/gikpro/PycharmProjects/ClockApp/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py:59: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(cur_ver) < LooseVersion(version):
[WARNING]: prerequisites.py is experimental and does not support all prerequisites yet.
[WARNING]: Please report any issues to the python-for-android issue tracker.
[INFO]: Recipe python3: version "3.8.10" requested
[INFO]: Recipe hostpython3: version "3.8.10" requested
[INFO]: Recipe kivy: version "2.1.0" requested
[INFO]: Recipe kivymd: version "1.1.1" requested
[INFO]: Recipe sdl2_ttf: version "2.0.15" requested
[INFO]: Will compile for the following archs: arm64-v8a, armeabi-v7a
[INFO]: Found Android API target in $ANDROIDAPI: 32
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/gikpro/PycharmProjects/ClockApp/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1312, in <module>
main()
File "/home/gikpro/PycharmProjects/ClockApp/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
ToolchainCL()
File "/home/gikpro/PycharmProjects/ClockApp/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 734, in __init__
getattr(self, command)(args)
File "/home/gikpro/PycharmProjects/ClockApp/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 143, in wrapper_func
ctx.prepare_build_environment(user_sdk_dir=self.sdk_dir,
File "/home/gikpro/PycharmProjects/ClockApp/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 273, in prepare_build_environment
apis = get_available_apis(self.sdk_dir)
File "/home/gikpro/PycharmProjects/ClockApp/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 47, in get_available_apis
targets = get_targets(sdk_dir)
File "/home/gikpro/PycharmProjects/ClockApp/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 35, in get_targets
targets = avdmanager('list', 'target').stdout.decode('utf-8').split('\n')
AttributeError: 'str' object has no attribute 'stdout'
# Command failed: ['/home/gikpro/.local/share/virtualenvs/ClockApp-_k3u2tLx/bin/python', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=clockkivymd', '--bootstrap=sdl2', '--requirements=python3==3.8.10,hostpython3==3.8.10,kivy==2.1.0,kivymd==1.1.1,sdl2_ttf==2.0.15,pillow', '--arch=arm64-v8a', '--arch=armeabi-v7a', '--copy-libs', '--color=always', '--storage-dir=/home/gikpro/PycharmProjects/ClockApp/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug']
# ENVIRONMENT:
# SHELL = '/bin/bash'
# SESSION_MANAGER = 'local/gikpro-PC:@/tmp/.ICE-unix/1079,unix/gikpro-PC:/tmp/.ICE-unix/1079'
# QT_ACCESSIBILITY = '1'
# COLORTERM = 'truecolor'
# XDG_CONFIG_DIRS = '/etc/xdg/xdg-xubuntu:/etc/xdg:/etc/xdg'
# XDG_SESSION_PATH = '/org/freedesktop/DisplayManager/Session0'
# XDG_MENU_PREFIX = 'xfce-'
# TERM_PROGRAM_VERSION = '1.76.2'
# CLUTTER_BACKEND = 'x11'
# LANGUAGE = 'en_US'
# LC_ADDRESS = 'ht_HT'
# LC_NAME = 'ht_HT'
# SSH_AUTH_SOCK = '/run/user/1000/keyring/ssh'
# SQLALCHEMY_WARN_20 = '1'
# DESKTOP_SESSION = 'xubuntu'
# LC_MONETARY = 'ht_HT'
# SSH_AGENT_PID = '1222'
# XDG_SEAT = 'seat0'
# PWD = '/home/gikpro/PycharmProjects/ClockApp'
# XDG_SESSION_DESKTOP = 'xubuntu'
# LOGNAME = 'gikpro'
# QT_QPA_PLATFORMTHEME = 'gtk2'
# XDG_SESSION_TYPE = 'x11'
# GPG_AGENT_INFO = '/run/user/1000/gnupg/S.gpg-agent:0:1'
# XAUTHORITY = '/home/gikpro/.Xauthority'
# VSCODE_GIT_ASKPASS_NODE = '/usr/share/code/code'
# XDG_GREETER_DATA_DIR = '/var/lib/lightdm-data/gikpro'
# GDM_LANG = 'en_US'
# HOME = '/home/gikpro'
# LC_PAPER = 'ht_HT'
# LANG = 'en_US.UTF-8'
# LS_COLORS = 'rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=00:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arc=01;31:*.arj=01;31:*.taz=01;31:*.lha=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.tzo=01;31:*.t7z=01;31:*.zip=01;31:*.z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=01;31:*.zst=01;31:*.tzst=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.alz=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.cab=01;31:*.wim=01;31:*.swm=01;31:*.dwm=01;31:*.esd=01;31:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:'
# XDG_CURRENT_DESKTOP = 'XFCE'
# VIRTUAL_ENV = '/home/gikpro/.local/share/virtualenvs/ClockApp-_k3u2tLx'
# APP_ENV = 'development'
# GIT_ASKPASS = '/usr/share/code/resources/app/extensions/git/dist/askpass.sh'
# XDG_SEAT_PATH = '/org/freedesktop/DisplayManager/Seat0'
# PIPENV_IGNORE_VIRTUALENVS = '1'
# CHROME_DESKTOP = 'code-url-handler.desktop'
# VSCODE_GIT_ASKPASS_EXTRA_ARGS = '--ms-enable-electron-run-as-node'
# LESSCLOSE = '/usr/bin/lesspipe %s %s'
# XDG_SESSION_CLASS = 'user'
# TERM = 'xterm-256color'
# LC_IDENTIFICATION = 'ht_HT'
# GTK_OVERLAY_SCROLLING = '0'
# LESSOPEN = '| /usr/bin/lesspipe %s'
# USER = 'gikpro'
# VSCODE_GIT_IPC_HANDLE = '/run/user/1000/vscode-git-7f8dbb5288.sock'
# DISPLAY = ':0.0'
# SHLVL = '1'
# LC_TELEPHONE = 'ht_HT'
# LC_MEASUREMENT = 'ht_HT'
# XDG_VTNR = '7'
# XDG_SESSION_ID = 'c2'
# PIPENV_DEFAULT_PYTHON_VERSION = '3.8'
# XDG_RUNTIME_DIR = '/run/user/1000'
# PS1 = ('\\[\x1b]633;A\x07\\](ClockApp) \\[\x1b]633;A\x07\\]\\[\\e]0;\\u@\\h: '
'\\w\\a\\]${debian_chroot:+($debian_chroot)}\\[\\033[01;32m\\]\\u@\\h\\[\\033[00m\\]:\\[\\033[01;34m\\]\\w\\[\\033[00m\\]\\$ '
'\\[\x1b]633;B\x07\\]\\[\x1b]633;B\x07\\]')
# LC_TIME = 'ht_HT'
# VSCODE_GIT_ASKPASS_MAIN = '/usr/share/code/resources/app/extensions/git/dist/askpass-main.js'
# XDG_DATA_DIRS = '/usr/share/xfce4:/usr/share/xubuntu:/usr/local/share:/usr/share:/var/lib/snapd/desktop:/usr/share'
# GDK_BACKEND = 'x11'
# PATH = '/home/gikpro/.buildozer/android/platform/apache-ant-1.9.4/bin:/home/gikpro/.local/share/virtualenvs/ClockApp-_k3u2tLx/bin:/home/gikpro/.local/bin:/home/gikpro/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/gikpro/.local/bin/:/home/gikpro/.local/bin/'
# GDMSESSION = 'xubuntu'
# ORIGINAL_XDG_CURRENT_DESKTOP = 'XFCE'
# DBUS_SESSION_BUS_ADDRESS = 'unix:path=/run/user/1000/bus'
# FLASK_ENV = 'development'
# LC_NUMERIC = 'ht_HT'
# TERM_PROGRAM = 'vscode'
# _ = '/home/gikpro/.local/share/virtualenvs/ClockApp-_k3u2tLx/bin/buildozer'
# PACKAGES_PATH = '/home/gikpro/.buildozer/android/packages'
# ANDROIDSDK = '/home/gikpro/.buildozer/android/platform/android-sdk'
# ANDROIDNDK = '/home/gikpro/.buildozer/android/platform/android-ndk-r25b'
# ANDROIDAPI = '32'
# ANDROIDMINAPI = '21'
#
# Buildozer failed to execute the last command
# The error might be hidden in the log above this error
# Please read the full log, and search for it before
# raising an issue with buildozer itself.
# In case of a bug report, please add a full log with log_level = 2