[root@vcontroller Python]# /usr/local/python38/bin/buildozer android debug deploy run
# Check configuration tokens
Buildozer is running as root!
This is not recommended, and may lead to problems later.
Are you sure you want to continue [y/n]? y
# Ensure build layout
# Check configuration tokens
# Preparing build
# Check requirements for android
# Run 'dpkg --version'
# Cwd None
/bin/sh: dpkg: command not found
# Search for Git (git)
# -> found at /usr/bin/git
# Search for Cython (cython)
# -> found at /usr/local/bin/cython
# Search for Java compiler (javac)
# -> found at /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.282.b08-1.el7_9.x86_64/bin/javac
# Search for Java keytool (keytool)
# -> found at /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.282.b08-1.el7_9.x86_64/jre/bin/keytool
# Install platform
# Run 'git config --get remote.origin.url'
# Cwd /root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android
https://github.com/kivy/python-for-android.git
# Run 'git branch -vv'
# Cwd /root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android
* master 5a94d07 [origin/master] Merge pull request #2244 from Chronolife-team/native_services_upstream
# Run '/usr/local/python38/bin/python3.8 -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
WARNING: You are using pip version 19.2.3, however version 21.0 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
# Apache ANT found at /root/.buildozer/android/platform/apache-ant-1.9.4
# Android SDK found at /root/.buildozer/android/platform/android-sdk
# Recommended android's NDK version by p4a is: 19c
# Android NDK found at /root/.buildozer/android/platform/android-ndk-r19c
# Check application requirements
# Check garden requirements
# Compile platform
# Run '/usr/local/python38/bin/python3.8 -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python3,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir="/root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21'
# Cwd /root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android
/root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py:84: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import imp
[INFO]: Will compile for the following archs: armeabi-v7a
[INFO]: Found Android API target in $ANDROIDAPI: 27
[INFO]: Available Android APIs are (27)
[INFO]: Requested API target 27 is available, continuing.
[INFO]: Found NDK dir in $ANDROIDNDK: /root/.buildozer/android/platform/android-ndk-r19c
[INFO]: Found NDK version 19c
[INFO]: Getting NDK API version (i.e. minimum supported API) from user argument
[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
[WARNING]: Missing executable: automake is not installed
[WARNING]: Missing executable: libtoolize is not installed
[WARNING]: Missing executable: bzip2 is not installed
[INFO]: No existing dists meet the given requirements!
[INFO]: No dist exists that meets your requirements, so one will be built.
[INFO]: Found a single valid recipe set: ['hostpython3', 'libffi', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'setuptools', 'six', 'pyjnius', 'android', 'kivy']
[INFO]: The selected bootstrap is sdl2
[INFO]: # Creating dist with sdl2 bootstrap
[INFO]: Dist will have name myapp and requirements (python3, kivy)
[INFO]: Dist contains the following requirements as recipes: ['hostpython3', 'libffi', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'setuptools', 'six', 'pyjnius', 'android', 'kivy']
[INFO]: Dist will also contain modules (certifi) installed from pip
[INFO]: Dist will be build in mode debug
[INFO]: -> directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2
[INFO]: <- directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android
[INFO]: Recipe build order is ['hostpython3', 'libffi', 'openssl', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'python3', 'sdl2', 'setuptools', 'six', 'pyjnius', 'android', 'kivy']
[INFO]: The requirements (certifi) were not found as recipes, they will be installed with pip.
[INFO]: # Downloading recipes
[INFO]: Downloading hostpython3
[INFO]: -> running mkdir -p /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/hostpython3
[INFO]: -> directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/hostpython3
[INFO]: -> running basename https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
[INFO]: hostpython3 download already cached, skipping
[INFO]: <- directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android
[INFO]: Downloading libffi
[INFO]: -> running mkdir -p /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/libffi
[INFO]: -> directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/libffi
[INFO]: -> running basename https://github.com/libffi/libffi/archive/8fa8837.tar.gz
[INFO]: libffi download already cached, skipping
[INFO]: <- directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android
[INFO]: Downloading openssl
[INFO]: -> running mkdir -p /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/openssl
[INFO]: -> directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/openssl
[INFO]: -> running basename https://www.openssl.org/source/openssl-1.1.1f.tar.gz
[INFO]: openssl download already cached, skipping
[INFO]: <- directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android
[INFO]: Downloading sdl2_image
[INFO]: -> running mkdir -p /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2_image
[INFO]: -> directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2_image
[INFO]: -> running basename https://www.libsdl.org/projects/SDL_image/release/SDL2_image-2.0.4.tar.gz
[INFO]: sdl2_image download already cached, skipping
[INFO]: <- directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android
[INFO]: Downloading sdl2_mixer
[INFO]: -> running mkdir -p /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2_mixer
[INFO]: -> directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2_mixer
[INFO]: -> running basename https://www.libsdl.org/projects/SDL_mixer/release/SDL2_mixer-2.0.4.tar.gz
[INFO]: sdl2_mixer download already cached, skipping
[INFO]: <- directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android
[INFO]: Downloading sdl2_ttf
[INFO]: -> running mkdir -p /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2_ttf
[INFO]: -> directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2_ttf
[INFO]: -> running basename https://www.libsdl.org/projects/SDL_ttf/release/SDL2_ttf-2.0.14.tar.gz
[INFO]: sdl2_ttf download already cached, skipping
[INFO]: <- directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android
[INFO]: Downloading sqlite3
[INFO]: -> running mkdir -p /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/sqlite3
[INFO]: -> directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/sqlite3
[INFO]: -> running basename https://www.sqlite.org/2016/sqlite-amalgamation-3150100.zip
[INFO]: sqlite3 download already cached, skipping
[INFO]: <- directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android
[INFO]: Downloading python3
[INFO]: -> running mkdir -p /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/python3
[INFO]: -> directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/python3
[INFO]: -> running basename https://www.python.org/ftp/python/3.8.1/Python-3.8.1.tgz
[INFO]: python3 download already cached, skipping
[INFO]: <- directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android
[INFO]: Downloading sdl2
[INFO]: -> running mkdir -p /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2
[INFO]: -> directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/sdl2
[INFO]: -> running basename https://www.libsdl.org/release/SDL2-2.0.9.tar.gz
[INFO]: sdl2 download already cached, skipping
[INFO]: <- directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android
[INFO]: Downloading setuptools
[INFO]: -> running mkdir -p /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/setuptools
[INFO]: -> directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/setuptools
[INFO]: -> running basename https://pypi.python.org/packages/source/s/setuptools/setuptools-40.9.0.zip
[INFO]: setuptools download already cached, skipping
[INFO]: <- directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android
[INFO]: Downloading six
[INFO]: -> running mkdir -p /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/six
[INFO]: -> directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/six
[INFO]: -> running basename https://pypi.python.org/packages/source/s/six/six-1.10.0.tar.gz
[INFO]: six download already cached, skipping
[INFO]: <- directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android
[INFO]: Downloading pyjnius
[INFO]: -> running mkdir -p /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/pyjnius
[INFO]: -> directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/pyjnius
[INFO]: -> running basename https://github.com/kivy/pyjnius/archive/1.2.1.zip
[INFO]: pyjnius download already cached, skipping
[INFO]: <- directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android
[INFO]: Downloading android
[INFO]: Skipping android download as no URL is set
[INFO]: Downloading kivy
[INFO]: -> running mkdir -p /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/kivy
[INFO]: -> directory context /root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a/packages/kivy
[INFO]: -> running basename https://github.com/kivy/kivy/archive/1.11.1.zip
[INFO]: -> running rm 1.11.1.zip
[INFO]: -> running rm -f .mark-1.11.1.zip
[INFO]: Downloading kivy from https://github.com/kivy/kivy/archive/1.11.1.zip
Traceback (most recent call last):
File "/usr/local/python38/lib/python3.8/http/client.py", line 551, in _get_chunk_left
chunk_left = self._read_next_chunk_size()
File "/usr/local/python38/lib/python3.8/http/client.py", line 518, in _read_next_chunk_size
return int(line, 16)
ValueError: invalid literal for int() with base 16: b''
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/python38/lib/python3.8/http/client.py", line 583, in _readinto_chunked
chunk_left = self._get_chunk_left()
File "/usr/local/python38/lib/python3.8/http/client.py", line 553, in _get_chunk_left
raise IncompleteRead(b'')
http.client.IncompleteRead: IncompleteRead(0 bytes read)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/python38/lib/python3.8/runpy.py", line 193, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/local/python38/lib/python3.8/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1260, in <module>
main()
File "/root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main
ToolchainCL()
File "/root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 709, in __init__
getattr(self, command)(args)
File "/root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 154, in wrapper_func
build_dist_from_args(ctx, dist, args)
File "/root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 213, in build_dist_from_args
build_recipes(build_order, python_modules, ctx,
File "/root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 555, in build_recipes
recipe.download_if_necessary()
File "/root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 347, in download_if_necessary
self.download()
File "/root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 393, in download
self.download_file(self.versioned_url, filename)
File "/root/Barcode-Scanner/Python/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 208, in download_file
urlretrieve(url, target, report_hook)
File "/usr/local/python38/lib/python3.8/urllib/request.py", line 1820, in retrieve
block = fp.read(bs)
File "/usr/local/python38/lib/python3.8/tempfile.py", line 474, in func_wrapper
return func(*args, **kwargs)
File "/usr/local/python38/lib/python3.8/http/client.py", line 454, in read
n = self.readinto(b)
File "/usr/local/python38/lib/python3.8/http/client.py", line 488, in readinto
return self._readinto_chunked(b)
File "/usr/local/python38/lib/python3.8/http/client.py", line 599, in _readinto_chunked
raise IncompleteRead(bytes(b[0:total_bytes]))
http.client.IncompleteRead: IncompleteRead(7188 bytes read)
# Command failed: /usr/local/python38/bin/python3.8 -m pythonforandroid.toolchain create --dist_name=myapp --bootstrap=sdl2 --requirements=python3,kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir="/root/Barcode-Scanner/Python/.buildozer/android/platform/build-armeabi-v7a" --ndk-api=21
# ENVIRONMENT:
# XDG_SESSION_ID = '2726'
# HOSTNAME = 'vcontroller'
# SELINUX_ROLE_REQUESTED = ''
# ANDROID_HOME = '/root'
# TERM = 'xterm'
# SHELL = '/bin/bash'
# HISTSIZE = '1000'
# SSH_CLIENT = '172.25.46.3 52501 22'
# SELINUX_USE_CURRENT_RANGE = ''
# OLDPWD = '/root/Barcode-Scanner'
# SSH_TTY = '/dev/pts/0'
# USER = 'root'
# 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=01;05;37;41: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:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lrz=01;31:*.lz=01;31:*.lzo=01;31:*.xz=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:*.jpg=01;35:*.jpeg=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:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36:'
# MAIL = '/var/spool/mail/root'
# PATH = '/root/.buildozer/android/platform/apache-ant-1.9.4/bin:/root/tools:/root/tools/bin:/root/platform-tools:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/root/bin:/sbin'
# PWD = '/root/Barcode-Scanner/Python'
# LANG = 'en_US.UTF-8'
# SELINUX_LEVEL_REQUESTED = ''
# HISTCONTROL = 'ignoredups'
# SHLVL = '1'
# HOME = '/root'
# LOGNAME = 'root'
# SSH_CONNECTION = '172.25.46.3 52501 172.18.46.90 22'
# LESSOPEN = '||/usr/bin/lesspipe.sh %s'
# XDG_RUNTIME_DIR = '/run/user/0'
# _ = '/usr/local/python38/bin/buildozer'
# PACKAGES_PATH = '/root/.buildozer/android/packages'
# ANDROIDSDK = '/root/.buildozer/android/platform/android-sdk'
# ANDROIDNDK = '/root/.buildozer/android/platform/android-ndk-r19c'
# ANDROIDAPI = '27'
# 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