kivy -> android apk with buildozer

149 views
Skip to first unread message

Ilhom Axmedov

unread,
Jan 17, 2025, 4:04:14 PM1/17/25
to Kivy users support
PLease help!












[DEBUG]
: autoreconf: error: autopoint failed with exit status: 2 Exception in thread background thread for pid 24516: Traceback (most recent call last): File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner self.run() File "/usr/lib/python3.11/threading.py", line 982, in run self._target(*self._args, **self._kwargs) File "/root/.local/lib/python3.11/site-packages/sh.py", line 1641, in wrap fn(*rgs, **kwargs) File "/root/.local/lib/python3.11/site-packages/sh.py", line 2569, in background_thread handle_exit_code(exit_code) File "/root/.local/lib/python3.11/site-packages/sh.py", line 2269, in fn return self.command.handle_command_exit_code(exit_code) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/.local/lib/python3.11/site-packages/sh.py", line 869, in handle_command_exit_code raise exc sh.ErrorReturnCode_2: RAN: /usr/bin/autoreconf -vif STDOUT: autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: running: autopoint --force Can't exec "autopoint": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 293. autoreconf: error: autopoint failed with exit status: 2 STDERR: Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "/content/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1256, in <module> 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 685, in __init__ getattr(self, command)(args) File "/content/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 104, in wrapper_func build_dist_from_args(ctx, dist, args) File "/content/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 163, in build_dist_from_args build_recipes(build_order, python_modules, ctx, File "/content/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 504, in build_recipes recipe.build_arch(arch) File "/content/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/liblzma/__init__.py", line 24, in build_arch shprint(sh.Command('autoreconf'), '-vif', _env=env) File "/content/.buildozer/android/platform/python-for-android/pythonforandroid/logger.py", line 167, in shprint for line in output: File "/root/.local/lib/python3.11/site-packages/sh.py", line 915, in next self.wait() File "/root/.local/lib/python3.11/site-packages/sh.py", line 845, in wait self.handle_command_exit_code(exit_code) File "/root/.local/lib/python3.11/site-packages/sh.py", line 869, in handle_command_exit_code raise exc sh.ErrorReturnCode_2: RAN: /usr/bin/autoreconf -vif STDOUT: autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: running: autopoint --force Can't exec "autopoint": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 293. autoreconf: error: autopoint failed with exit status: 2 STDERR: # Command failed: ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=myapp', '--bootstrap=sdl2', '--requirements=python3,kivy,tensorflow,pandas,numpy,matplotlib,pillow', '--arch=arm64-v8a', '--arch=armeabi-v7a', '--copy-libs', '--color=always', '--storage-dir=/content/.buildozer/android/platform/build-arm64-v8a_armeabi-v7a', '--ndk-api=21', '--ignore-setup-py', '--debug'] # ENVIRONMENT: # SHELL = '/bin/bash' # NV_LIBCUBLAS_VERSION = '12.2.5.6-1' # NVIDIA_VISIBLE_DEVICES = 'all' # COLAB_JUPYTER_TRANSPORT = 'ipc' # NV_NVML_DEV_VERSION = '12.2.140-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.19.3-1+cuda12.2' # NV_LIBNCCL_DEV_PACKAGE_VERSION = '2.19.3-1' # VM_GCE_METADATA_HOST = '169.254.169.253' # HOSTNAME = 'a4a3f960fa19' # LANGUAGE = 'en_US' # TBE_RUNTIME_ADDR = '172.28.0.1:8011' # COLAB_TPU_1VM = '' # GCE_METADATA_TIMEOUT = '3' # NVIDIA_REQUIRE_CUDA = ('cuda>=12.2 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>=525,driver<526 ' 'brand=unknown,driver>=525,driver<526 brand=nvidia,driver>=525,driver<526 ' 'brand=nvidiartx,driver>=525,driver<526 brand=geforce,driver>=525,driver<526 ' 'brand=geforcertx,driver>=525,driver<526 brand=quadro,driver>=525,driver<526 ' 'brand=quadrortx,driver>=525,driver<526 brand=titan,driver>=525,driver<526 ' 'brand=titanrtx,driver>=525,driver<526') # NV_LIBCUBLAS_DEV_PACKAGE = 'libcublas-dev-12-2=12.2.5.6-1' # NV_NVTX_VERSION = '12.2.140-1' # COLAB_JUPYTER_IP = '172.28.0.12' # NV_CUDA_CUDART_DEV_VERSION = '12.2.140-1' # NV_LIBCUSPARSE_VERSION = '12.1.2.141-1' # COLAB_LANGUAGE_SERVER_PROXY_ROOT_URL = 'http://172.28.0.1:8013/' # NV_LIBNPP_VERSION = '12.2.1.4-1' # NCCL_VERSION = '2.19.3-1' # KMP_LISTEN_PORT = '6000' # TF_FORCE_GPU_ALLOW_GROWTH = 'true' # ENV = '/root/.bashrc' # PWD = '/content' # COLAB_LANGUAGE_SERVER_PROXY_REQUEST_TIMEOUT = '30s' # TBE_EPHEM_CREDS_ADDR = '172.28.0.1:8009' # TBE_CREDS_ADDR = '172.28.0.1:8008' # NV_CUDNN_PACKAGE = 'libcudnn8=8.9.6.50-1+cuda12.2' # NVIDIA_DRIVER_CAPABILITIES = 'compute,utility' # COLAB_JUPYTER_TOKEN = '' # LAST_FORCED_REBUILD = '20250106' # NV_NVPROF_DEV_PACKAGE = 'cuda-nvprof-12-2=12.2.142-1' # NV_LIBNPP_PACKAGE = 'libnpp-12-2=12.2.1.4-1' # NV_LIBNCCL_DEV_PACKAGE_NAME = 'libnccl-dev' # TCLLIBPATH = '/usr/share/tcltk/tcllib1.20' # NV_LIBCUBLAS_DEV_VERSION = '12.2.5.6-1' # COLAB_KERNEL_MANAGER_PROXY_HOST = '172.28.0.12' # NVIDIA_PRODUCT_NAME = 'CUDA' # NV_LIBCUBLAS_DEV_PACKAGE_NAME = 'libcublas-dev-12-2' # USE_AUTH_EPHEM = '1' # NV_CUDA_CUDART_VERSION = '12.2.140-1' # COLAB_WARMUP_DEFAULTS = '1' # HOME = '/root' # LANG = 'en_US.UTF-8' # COLUMNS = '100' # CUDA_VERSION = '12.2.2' # CLOUDSDK_CONFIG = '/content/.config' # NV_LIBCUBLAS_PACKAGE = 'libcublas-12-2=12.2.5.6-1' # NV_CUDA_NSIGHT_COMPUTE_DEV_PACKAGE = 'cuda-nsight-compute-12-2=12.2.2-1' # COLAB_RELEASE_TAG = 'release-colab_20250116-060142_RC00' # PYDEVD_USE_FRAME_EVAL = 'NO' # KMP_TARGET_PORT = '9000' # CLICOLOR = '1' # KMP_EXTRA_ARGS = ('--logtostderr --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-2l0fldpp9kmpi ' '--tunnel_background_save_delay=10s ' '--tunnel_periodic_background_save_frequency=30m0s ' '--enable_output_coalescing=true --output_coalescing_required=true ' '--enable_kernel_event_logging=true') # NV_LIBNPP_DEV_PACKAGE = 'libnpp-dev-12-2=12.2.1.4-1' # COLAB_LANGUAGE_SERVER_PROXY_LSP_DIRS = '/datalab/web/pyright/typeshed-fallback/stdlib,/usr/local/lib/python3.10/dist-packages' # NV_LIBCUBLAS_PACKAGE_NAME = 'libcublas-12-2' # COLAB_KERNEL_MANAGER_PROXY_PORT = '6000' # CLOUDSDK_PYTHON = 'python3' # NV_LIBNPP_DEV_VERSION = '12.2.1.4-1' # ENABLE_DIRECTORYPREFETCHER = '1' # NO_GCE_CHECK = 'False' # JPY_PARENT_PID = '91' # PYTHONPATH = '/env/python' # TERM = 'xterm-color' # NV_LIBCUSPARSE_DEV_VERSION = '12.1.2.141-1' # GIT_PAGER = 'cat' # LIBRARY_PATH = '/usr/local/cuda/lib64/stubs' # NV_CUDNN_VERSION = '8.9.6.50' # SHLVL = '0' # PAGER = 'cat' # COLAB_LANGUAGE_SERVER_PROXY = '/usr/colab/bin/language_service' # NV_CUDA_LIB_VERSION = '12.2.2-1' # NVARCH = 'x86_64' # NV_CUDNN_PACKAGE_DEV = 'libcudnn8-dev=8.9.6.50-1+cuda12.2' # NV_CUDA_COMPAT_PACKAGE = 'cuda-compat-12-2' # MPLBACKEND = 'module://ipykernel.pylab.backend_inline' # NV_LIBNCCL_PACKAGE = 'libnccl2=2.19.3-1+cuda12.2' # LD_LIBRARY_PATH = '/usr/local/nvidia/lib:/usr/local/nvidia/lib64' # COLAB_GPU = '' # GCS_READ_CACHE_BLOCK_SIZE_MB = '16' # NV_CUDA_NSIGHT_COMPUTE_VERSION = '12.2.2-1' # NV_NVPROF_VERSION = '12.2.142-1' # LC_ALL = 'en_US.UTF-8' # COLAB_FILE_HANDLER_ADDR = 'localhost:3453' # 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.19.3-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 = '31' # 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

berk berk

unread,
Jan 19, 2025, 6:37:06 PM1/19/25
to Kivy users support
problem here:

STDOUT: autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: running: autopoint --force Can't exec "autopoint": No such file or directory at /usr/share/autoconf/Autom4te/FileUtils.pm line 293. autoreconf: error: autopoint failed with exit status: 2
solution: https://stackoverflow.com/questions/72555674/failed-to-run-autopoint-no-such-file-or-directory

it suggest to upload 'gettext' packet. 
  > sudo apt install gettext  

18 Ocak 2025 Cumartesi tarihinde saat 00:04:14 UTC+3 itibarıyla ilhomaxme...@gmail.com şunları yazdı:

Ilhom Axmedov

unread,
Jan 20, 2025, 1:30:52 PM1/20/25
to Kivy users support

with introduction https://github.com/Android-for-Python/c4k_tflite_example/blob/main/README.md i build apk file fo image classification but app did not work in android mobile. could anyone help what is problem ?  may it didn't work for using tensorflow model not tflite model or for window shape program or for size of program
понедельник, 20 января 2025 г. в 04:37:06 UTC+5, cing...@gmail.com:
ResNet_kivymd.py
buildozer.spec

berk berk

unread,
Jan 20, 2025, 4:56:50 PM1/20/25
to Kivy users support
a quick respond; I looked your 'requirements' in your buildozer.spec, and i compared requirements in link that you sent. 
HERE:
in your: 
requirements = python3,kivy,tensorflow,numpy,tflite-runtime,kivymd,pillow

in https://github.com/Android-for-Python/c4k_tflite_example/blob/main/README.md#android :
requirements = python3,kivy,camera4kivy,gestures4kivy,numpy,tflite-runtime
you see that's not same. Also if you are face to 'launch-crash' please look at 'ADB - SCRCPY'. This shows what went wrong when your app launch. (you can watch a few youtube videos about it.) And you'll see clear clarification what went wrong on your app.



Ilhom Axmedov

unread,
Jan 21, 2025, 2:47:07 AM1/21/25
to kivy-...@googlegroups.com

i not use this libraries camera4kivy,gestures4kivy in code for this reason i write python3,kivy,tensorflow,numpy,tflite-runtime,kivymd,pillow . And here tflite-runtime not used in code but i add it in requirements


вт, 21 янв. 2025 г., 04:56 berk berk <cing...@gmail.com>:
--
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 visit https://groups.google.com/d/msgid/kivy-users/b83b712d-f404-4690-be6e-79b7a51f34e8n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages