# 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 # WARNING: Config token app android.sdk is deprecated and ignored, but you set value 30 # 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 /usr/local/bin/cython # Search for Java compiler (javac) # -> found at /usr/lib/jvm/java-11-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 /content/.buildozer/android/platform/python-for-android https://github.com/kivy/python-for-android.git # Run ['git', 'branch', '-vv'] # Cwd /content/.buildozer/android/platform/python-for-android * develop f7ba0122 [origin/develop] fix #2768 smallIconName null can t be compared to String (#2769) # Run ['/usr/bin/python3', '-m', 'pip', 'install', '-q', '--user', 'appdirs', 'colorama>=0.3.3', 'jinja2', 'sh>=1.10, <2.0; sys_platform!="nt"', 'pep517', 'toml', 'packaging'] # Cwd None # 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: 25b # Android NDK found at /root/.buildozer/android/platform/android-ndk-r25b # Run ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'aab', '-h', '--color=always', '--storage-dir=/content/.buildozer/android/platform/build-armeabi-v7a', '--ndk-api=25', '--ignore-setup-py', '--debug'] # Cwd /content/.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. [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: /root/.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 ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=myapp', '--bootstrap=sdl2', '--requirements=python3,kivy,android,pytube,plyer,pyjnius,kivmob,jnius,future,ffpyplayer,libshine,libx264,ffpyplayer_codecs,Pillow,pyffmpeg,liblzma,opencv,requests,urllib3,chardet,idna,youtube_search', '--arch=armeabi-v7a', '--copy-libs', '--color=always', '--storage-dir=/content/.buildozer/android/platform/build-armeabi-v7a', '--ndk-api=25', '--ignore-setup-py', '--debug'] # Cwd /content/.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. [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]: Will compile for the following archs: armeabi-v7a [INFO]: Found Android API target in $ANDROIDAPI: 33 [INFO]: Available Android APIs are (33) [INFO]: Requested API target 33 is available, continuing. [INFO]: Found NDK dir in $ANDROIDNDK: /root/.buildozer/android/platform/android-ndk-r25b [INFO]: Found NDK version 25b [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. [DEBUG]: All possible dists: [] [DEBUG]: Dist matching name and arch: [] [DEBUG]: Dist matching ndk_api and recipe: [] [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: ['chardet', 'freetype', 'future', 'hostpython3', 'idna', 'jnius', 'jpeg', 'kivmob', 'libffi', 'liblzma', 'libshine', 'libvpx', 'libx264', 'openssl', 'plyer', 'png', 'pyffmpeg', 'pytube', 'requests', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'urllib3', 'youtube_search', 'ffpyplayer_codecs', 'python3', 'sdl2', 'ffmpeg', 'setuptools', 'cython', 'ffpyplayer', 'pillow', 'six', 'numpy', 'pyjnius', 'android', 'kivy', 'opencv'] [INFO]: The selected bootstrap is sdl2 [INFO]: # Creating dist with sdl2 bootstrap [INFO]: Dist will have name myapp and requirements (python3, kivy, android, pytube, plyer, pyjnius, kivmob, jnius, future, ffpyplayer, libshine, libx264, ffpyplayer_codecs, Pillow, pyffmpeg, liblzma, opencv, requests, urllib3, chardet, idna, youtube_search) [INFO]: Dist contains the following requirements as recipes: ['freetype', 'hostpython3', 'jpeg', 'libffi', 'liblzma', 'libshine', 'libvpx', 'libx264', 'openssl', 'png', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'ffpyplayer_codecs', 'python3', 'sdl2', 'ffmpeg', 'setuptools', 'cython', 'ffpyplayer', 'pillow', 'six', 'numpy', 'pyjnius', 'android', 'kivy', 'opencv'] [INFO]: Dist will also contain modules (urllib3, chardet, plyer, pyffmpeg, youtube_search, jnius, idna, pytube, kivmob, certifi, requests, future) installed from pip [INFO]: Dist will be build in mode debug [INFO]: -> directory context /content/.buildozer/android/platform/build-armeabi-v7a/build/bootstrap_builds/sdl2 [INFO]: <- directory context /content/.buildozer/android/platform/python-for-android [INFO]: Recipe build order is ['freetype', 'hostpython3', 'jpeg', 'libffi', 'liblzma', 'libshine', 'libvpx', 'libx264', 'openssl', 'png', 'sdl2_image', 'sdl2_mixer', 'sdl2_ttf', 'sqlite3', 'ffpyplayer_codecs', 'python3', 'sdl2', 'ffmpeg', 'setuptools', 'cython', 'ffpyplayer', 'pillow', 'six', 'numpy', 'pyjnius', 'android', 'kivy', 'opencv'] [INFO]: The requirements (certifi, chardet, future, idna, jnius, kivmob, plyer, pyffmpeg, pytube, requests, urllib3, youtube_search) were not found as recipes, they will be installed with pip. [INFO]: # Downloading recipes [INFO]: Downloading freetype [DEBUG]: -> running mkdir -p /content/.buildozer/android/platform/build-armeabi-v7a/packages/freetype [INFO]: -> directory context /content/.buildozer/android/platform/build-armeabi-v7a/packages/freetype [DEBUG]: -> running basename http://download.savannah.gnu.org/releases/freetype/freetype-2.10.1.tar.gz [DEBUG]: freetype-2.10.1.tar.gz [DEBUG]: Downloading freetype from http://download.savannah.gnu.org/releases/freetype/freetype-2.10.1.tar.gz [DEBUG]: -> running rm -f .mark-freetype-2.10.1.tar.gz [INFO]: Downloading freetype from http://download.savannah.gnu.org/releases/freetype/freetype-2.10.1.tar.gz Traceback (most recent call last): File "/usr/lib/python3.9/urllib/request.py", line 1346, in do_open h.request(req.get_method(), req.selector, req.data, headers, File "/usr/lib/python3.9/http/client.py", line 1285, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1331, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1280, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib/python3.9/http/client.py", line 1040, in _send_output self.send(msg) File "/usr/lib/python3.9/http/client.py", line 980, in send self.connect() File "/usr/lib/python3.9/http/client.py", line 946, in connect self.sock = self._create_connection( File "/usr/lib/python3.9/socket.py", line 823, in create_connection for res in getaddrinfo(host, port, 0, SOCK_STREAM): File "/usr/lib/python3.9/socket.py", line 954, in getaddrinfo for res in _socket.getaddrinfo(host, port, family, type, proto, flags): socket.gaierror: [Errno -3] Temporary failure in name resolution During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/content/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1312, in main() File "/content/.buildozer/android/platform/python-for-android/pythonforandroid/entrypoints.py", line 18, in main ToolchainCL() File "/content/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 734, in __init__ getattr(self, command)(args) File "/content/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 153, in wrapper_func build_dist_from_args(ctx, dist, args) File "/content/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 212, in build_dist_from_args build_recipes(build_order, python_modules, ctx, File "/content/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 482, in build_recipes recipe.download_if_necessary() File "/content/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 348, in download_if_necessary self.download() File "/content/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 398, in download self.download_file(self.versioned_url, filename) File "/content/.buildozer/android/platform/python-for-android/pythonforandroid/recipe.py", line 202, in download_file urlretrieve(url, target, report_hook) File "/usr/lib/python3.9/urllib/request.py", line 239, in urlretrieve with contextlib.closing(urlopen(url, data)) as fp: File "/usr/lib/python3.9/urllib/request.py", line 214, in urlopen return opener.open(url, data, timeout) File "/usr/lib/python3.9/urllib/request.py", line 517, in open response = self._open(req, data) File "/usr/lib/python3.9/urllib/request.py", line 534, in _open result = self._call_chain(self.handle_open, protocol, protocol + File "/usr/lib/python3.9/urllib/request.py", line 494, in _call_chain result = func(*args) File "/usr/lib/python3.9/urllib/request.py", line 1375, in http_open return self.do_open(http.client.HTTPConnection, req) File "/usr/lib/python3.9/urllib/request.py", line 1349, in do_open raise URLError(err) urllib.error.URLError: Download failed: ; retrying in 1 second(s)...Download failed: ; retrying in 2 second(s)...Download failed: ; retrying in 4 second(s)...Download failed: ; retrying in 8 second(s)...# Command failed: ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=myapp', '--bootstrap=sdl2', '--requirements=python3,kivy,android,pytube,plyer,pyjnius,kivmob,jnius,future,ffpyplayer,libshine,libx264,ffpyplayer_codecs,Pillow,pyffmpeg,liblzma,opencv,requests,urllib3,chardet,idna,youtube_search', '--arch=armeabi-v7a', '--copy-libs', '--color=always', '--storage-dir=/content/.buildozer/android/platform/build-armeabi-v7a', '--ndk-api=25', '--ignore-setup-py', '--debug'] # ENVIRONMENT: # SHELL = '/bin/bash' # NV_LIBCUBLAS_VERSION = '11.11.3.6-1' # NVIDIA_VISIBLE_DEVICES = 'all' # COLAB_JUPYTER_TRANSPORT = 'ipc' # NV_NVML_DEV_VERSION = '11.8.86-1' # NV_CUDNN_PACKAGE_NAME = 'libcudnn8' # CGROUP_MEMORY_EVENTS = '/sys/fs/cgroup/memory.events /var/colab/cgroup/jupyter-children/memory.events' # NV_LIBNCCL_DEV_PACKAGE = 'libnccl-dev=2.16.2-1+cuda11.8' # NV_LIBNCCL_DEV_PACKAGE_VERSION = '2.16.2-1' # VM_GCE_METADATA_HOST = '169.254.169.253' # HOSTNAME = '1fe12d5c80ba' # TBE_RUNTIME_ADDR = '172.28.0.1:8011' # GCE_METADATA_TIMEOUT = '3' # NVIDIA_REQUIRE_CUDA = ('cuda>=11.8 brand=tesla,driver>=450,driver<451 ' 'brand=tesla,driver>=470,driver<471 brand=unknown,driver>=470,driver<471 ' 'brand=nvidia,driver>=470,driver<471 brand=nvidiartx,driver>=470,driver<471 ' 'brand=geforce,driver>=470,driver<471 brand=geforcertx,driver>=470,driver<471 ' 'brand=quadro,driver>=470,driver<471 brand=quadrortx,driver>=470,driver<471 ' 'brand=titan,driver>=470,driver<471 brand=titanrtx,driver>=470,driver<471 ' 'brand=tesla,driver>=510,driver<511 brand=unknown,driver>=510,driver<511 ' 'brand=nvidia,driver>=510,driver<511 brand=nvidiartx,driver>=510,driver<511 ' 'brand=geforce,driver>=510,driver<511 brand=geforcertx,driver>=510,driver<511 ' 'brand=quadro,driver>=510,driver<511 brand=quadrortx,driver>=510,driver<511 ' 'brand=titan,driver>=510,driver<511 brand=titanrtx,driver>=510,driver<511 ' 'brand=tesla,driver>=515,driver<516 brand=unknown,driver>=515,driver<516 ' 'brand=nvidia,driver>=515,driver<516 brand=nvidiartx,driver>=515,driver<516 ' 'brand=geforce,driver>=515,driver<516 brand=geforcertx,driver>=515,driver<516 ' 'brand=quadro,driver>=515,driver<516 brand=quadrortx,driver>=515,driver<516 ' 'brand=titan,driver>=515,driver<516 brand=titanrtx,driver>=515,driver<516') # NV_LIBCUBLAS_DEV_PACKAGE = 'libcublas-dev-11-8=11.11.3.6-1' # NV_NVTX_VERSION = '11.8.86-1' # COLAB_JUPYTER_IP = '172.28.0.12' # NV_CUDA_CUDART_DEV_VERSION = '11.8.89-1' # NV_LIBCUSPARSE_VERSION = '11.7.5.86-1' # NV_LIBNPP_VERSION = '11.8.0.86-1' # NCCL_VERSION = '2.16.2-1' # KMP_LISTEN_PORT = '6000' # TF_FORCE_GPU_ALLOW_GROWTH = 'true' # ENV = '/root/.bashrc' # PWD = '/content' # TBE_EPHEM_CREDS_ADDR = '172.28.0.1:8009' # TBE_CREDS_ADDR = '172.28.0.1:8008' # NV_CUDNN_PACKAGE = 'libcudnn8=8.7.0.84-1+cuda11.8' # NVIDIA_DRIVER_CAPABILITIES = 'compute,utility' # LAST_FORCED_REBUILD = '20230321' # NV_NVPROF_DEV_PACKAGE = 'cuda-nvprof-11-8=11.8.87-1' # NV_LIBNPP_PACKAGE = 'libnpp-11-8=11.8.0.86-1' # NV_LIBNCCL_DEV_PACKAGE_NAME = 'libnccl-dev' # TCLLIBPATH = '/usr/share/tcltk/tcllib1.20' # NV_LIBCUBLAS_DEV_VERSION = '11.11.3.6-1' # COLAB_KERNEL_MANAGER_PROXY_HOST = '172.28.0.12' # NVIDIA_PRODUCT_NAME = 'CUDA' # NV_LIBCUBLAS_DEV_PACKAGE_NAME = 'libcublas-dev-11-8' # USE_AUTH_EPHEM = '1' # NV_CUDA_CUDART_VERSION = '11.8.89-1' # HOME = '/root' # LANG = 'en_US.UTF-8' # CUDA_VERSION = '11.8.0' # CLOUDSDK_CONFIG = '/content/.config' # NV_LIBCUBLAS_PACKAGE = 'libcublas-11-8=11.11.3.6-1' # COLAB_RELEASE_TAG = 'release-colab-20230323-060210-RC02' # PYDEVD_USE_FRAME_EVAL = 'NO' # KMP_TARGET_PORT = '9000' # CLICOLOR = '1' # KMP_EXTRA_ARGS = ('--listen_host=172.28.0.12 --target_host=172.28.0.12 ' '--tunnel_background_save_url=https://colab.research.google.com/tun/m/cc48301118ce562b961b3c22d803539adc1e0c19/m-s-284a5mrxbk7e6 ' '--tunnel_background_save_delay=10s ' '--tunnel_periodic_background_save_frequency=30m0s ' '--enable_output_coalescing=true --output_coalescing_required=true') # NV_LIBNPP_DEV_PACKAGE = 'libnpp-dev-11-8=11.8.0.86-1' # NV_LIBCUBLAS_PACKAGE_NAME = 'libcublas-11-8' # COLAB_KERNEL_MANAGER_PROXY_PORT = '6000' # CLOUDSDK_PYTHON = 'python3' # NV_LIBNPP_DEV_VERSION = '11.8.0.86-1' # ENABLE_DIRECTORYPREFETCHER = '1' # NO_GCE_CHECK = 'False' # JPY_PARENT_PID = '78' # PYTHONPATH = '/env/python' # TERM = 'xterm-color' # SETUPTOOLS_USE_DISTUTILS = 'stdlib' # NV_LIBCUSPARSE_DEV_VERSION = '11.7.5.86-1' # GIT_PAGER = 'cat' # LIBRARY_PATH = '/usr/local/cuda/lib64/stubs' # NV_CUDNN_VERSION = '8.7.0.84' # SHLVL = '0' # PAGER = 'cat' # NV_CUDA_LIB_VERSION = '11.8.0-1' # NVARCH = 'x86_64' # NV_CUDNN_PACKAGE_DEV = 'libcudnn8-dev=8.7.0.84-1+cuda11.8' # NV_CUDA_COMPAT_PACKAGE = 'cuda-compat-11-8' # MPLBACKEND = 'module://ipykernel.pylab.backend_inline' # NV_LIBNCCL_PACKAGE = 'libnccl2=2.16.2-1+cuda11.8' # LD_LIBRARY_PATH = '/usr/local/nvidia/lib:/usr/local/nvidia/lib64' # COLAB_GPU = '' # GCS_READ_CACHE_BLOCK_SIZE_MB = '16' # NV_NVPROF_VERSION = '11.8.87-1' # PATH = '/root/.buildozer/android/platform/apache-ant-1.9.4/bin:/opt/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/tools/node/bin:/tools/google-cloud-sdk/bin' # NV_LIBNCCL_PACKAGE_NAME = 'libnccl2' # COLAB_DEBUG_ADAPTER_MUX_PATH = '/usr/local/bin/dap_multiplexer' # NV_LIBNCCL_PACKAGE_VERSION = '2.16.2-1' # PYTHONWARNINGS = 'ignore:::pip._internal.cli.base_command' # DEBIAN_FRONTEND = 'noninteractive' # COLAB_BACKEND_VERSION = 'next' # OLDPWD = '/' # _ = '/usr/local/bin/buildozer' # PACKAGES_PATH = '/root/.buildozer/android/packages' # ANDROIDSDK = '/root/.buildozer/android/platform/android-sdk' # ANDROIDNDK = '/root/.buildozer/android/platform/android-ndk-r25b' # ANDROIDAPI = '33' # ANDROIDMINAPI = '25' # # 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