Как устранить ошибку buildozer при преобразовании .py в .apk? [закрыто]Android

Форум для тех, кто программирует под Android
Ответить
Anonymous
 Как устранить ошибку buildozer при преобразовании .py в .apk? [закрыто]

Сообщение Anonymous »

Я пытался преобразовать файл .py в файл .apk и столкнулся с некоторыми ошибками. Код ниже — это код, который я запустил перед преобразованием файла. Я делал это в Google Colab

Код: Выделить всё

!pip install buildozer

!pip install cython==0.29.19

!sudo apt-get install -y \
python3-pip \
build-essential \
git \
python3 \
python3-dev \
ffmpeg \
libsdl2-dev \
libsdl2-image-dev \
libsdl2-mixer-dev \
libsdl2-ttf-dev \
libportmidi-dev \
libswscale-dev \
libavformat-dev \
libavcodec-dev \
zlib1g-dev

!sudo apt-get install -y \
libgstreamer1.0 \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-good

!sudo apt-get install build-essential libsqlite3-dev sqlite3 bzip2 libbz2-dev zlib1g-dev libssl-dev openssl libgdbm-dev libgdbm-compat-dev liblzma-dev libreadline-dev libncursesw5-dev libffi-dev uuid-dev libffi6

!sudo apt-get install libffi-dev

!buildozer init

После того, как я выполнил эти команды, я отредактировал файл buildozer.spec.
Итак, теперь, когда я запустил !buildozer -v android debug , это был журнал ниже с ошибкой внизу.

Код: Выделить всё

STDOUT:
autoreconf: export WARNINGS=
autoreconf: Entering directory '.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: configure.ac: not using Intltool
autoreconf: configure.ac: not using Gtkdoc
autoreconf: running: /usr/bin/autoconf
configure.ac:8: warning: The macro `AC_CANONICAL_SYSTEM' is obsolete.
configure.ac:8: You should run autoupdate.
./lib/autoconf/general.m4:2081: AC_CANONICAL_SYSTEM is expanded from...
configure.ac:8: the top level
configure.ac:74: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:74: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
acinclude.m4:3: AC_FUNC_MMAP_BLACKLIST is expanded from...
configure.ac:74: the top level
configure.ac:91: warning: The macro `AC_HEADER_STDC' is obsolete.
configure.ac:91: You should run autoupdate.
./lib/autoconf/headers.m4:704: AC_HEADER_STDC is expanded from...
configure.ac:91: the top level
configure.ac:118: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:118: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
m4/asmcfi.m4:1: GCC_AS_CFI_PSEUDO_OP is expanded from...
configure.ac:118: the top level
configure.ac:122: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:122: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
configure.ac:122: the top level
configure.ac:138: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:138: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
configure.ac:138: the top level
configure.ac:185: warning: The macro `AC_TRY_COMPILE' is obsolete.
configure.ac:185: You should run autoupdate.
./lib/autoconf/general.m4:2847: AC_TRY_COMPILE is expanded from...
lib/m4sugar/m4sh.m4:692: _AS_IF_ELSE is expanded from...
lib/m4sugar/m4sh.m4:699: AS_IF is expanded from...
./lib/autoconf/general.m4:2249: AC_CACHE_VAL is expanded from...
./lib/autoconf/general.m4:2270: AC_CACHE_CHECK is expanded from...
configure.ac:185: the top level
configure.ac:215: warning: _LT_CMD_GLOBAL_SYMBOLS is m4_require'd but not m4_defun'd
aclocal.m4:778: LT_SYS_SYMBOL_USCORE is expanded from...
configure.ac:215: the top level
configure.ac:310: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:310: You should run autoupdate.
./lib/autoconf/general.m4:204:  AC_HELP_STRING is expanded from...
configure.ac:310: the top level
configure.ac:418: warning: The macro `AC_HELP_STRING' is obsolete.
configure.ac:418: You should run autoupdate.
./lib/autoconf/general.m4:204: AC_HELP_STRING is expanded from...
acinclude.m4:353: LIBFFI_ENABLE_SYMVERS is expanded from...
configure.ac:418: the top level
configure.ac:418: warning: AC_PROG_LD is m4_require'd but not m4_defun'd
acinclude.m4:251: LIBFFI_CHECK_LINKER_FEATURES is expanded from...
acinclude.m4:353: LIBFFI_ENABLE_SYMVERS is expanded from...
configure.ac:418: the top level
configure.ac:418: warning: The macro `AC_TRY_RUN' is obsolete.
configure.ac:418: You should run autoupdate.
./lib/autoconf/general.m4:2997: AC_TRY_RUN is expanded from...
acinclude.m4:251: LIBFFI_CHECK_LINKER_FEATURES is expanded from...
acinclude.m4:353: LIBFFI_ENABLE_SYMVERS is expanded from...
configure.ac:418: the top level
configure.ac:418: warning: The macro `AC_TRY_LINK' is obsolete.
configure.ac:418: You should run autoupdate.
./lib/autoconf/general.m4:2920: AC_TRY_LINK is expanded from...
acinclude.m4:353: LIBFFI_ENABLE_SYMVERS is expanded from...
configure.ac:418: the top level
configure.ac:41: error: possibly undefined macro: AC_PROG_LIBTOOL
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure:8578: error: possibly undefined macro: AC_PROG_LD
autoreconf: error: /usr/bin/autoconf failed with exit status: 1

STDERR:

# Command failed:  ['/usr/bin/python3', '-m', 'pythonforandroid.toolchain', 'create', '--dist_name=myapp', '--bootstrap=sdl2', '--requirements=python3,kivy,kivymd,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',  ' - - d e b u g ' ] < b r   / > #   E N V I R O N M E N T : < b r   / > #           S H E L L   =   ' / b i n / b a s h ' < b r   / > #           N V _ L I B C U B L A S _ V E R S I O N   =   ' 1 2 . 2 . 5 . 6 - 1 ' < b r   / > #           N V I D I A _ V I S I B L E _ D E V I C E S   =   ' a l l ' < b r   / > #           C O L A B _ J U P Y T E R _ T R A N S P O R T   =   ' i p c ' < b r   / > #           N V _ N V M L _ D E V _ V E R S I O N   =   ' 1 2 . 2 . 1 4 0 - 1 ' < b r   / > #           N V _ C U D N N _ P A C K A G E _ N A M E   =   ' l i b c u d n n 8 ' < b r   / > #           C G R O U P _ M E M O R Y _ E V E N T S   =   ' / s y s / f s / c g r o u p / m e m o r y . e v e n t s   / v a r / c o l a b / c g r o u p / j u p y t e r - c h i l d r e n / m e m o r y . e v e n t s ' < b r   / > #           N V _ L I B N C C L _ D E V _ P A C K A G E   =   ' l i b n c c l - d e v = 2 . 1 9 . 3 - 1 + c u d a 1 2 . 2 ' < b r   / > #           N V _ L I B N C C L _ D E V _ P A C K A G E _ V E R S I O N   =   ' 2 . 1 9 . 3 - 1 ' < b r   / > #           V M _ G C E _ M E T A D A T A _ H O S T   =   ' 1 6 9 . 2 5 4 . 1 6 9 . 2 5 3 ' < b r   / > #           H O S T N A M E   =   ' 7 4 9 c 4 5 4 e e 1 2 4 ' < b r   / > #           L A N G U A G E   =   ' e n _ U S ' < b r   / > #           T B E _ R U N T I M E _ A D D R   =   ' 1 7 2 . 2 8 . 0 . 1 : 8 0 1 1 ' < b r   / > #           C O L A B _ T P U _ 1 V M   =   ' ' < b r   / > #           G C E _ M E T A D A T A _ T I M E O U T   =   ' 3 ' < b r   / > #           N V I D I A _ R E Q U I R E _ C U D A   =   ( ' c u d a & g t ; = 1 2 . 2   b r a n d = t e s l a , d r i v e r & g t ; = 4 7 0 , d r i v e r & l t ; 4 7 1   ' < b r   / >   ' b r a n d = u n k n o w n , d r i v e r & g t ; = 4 7 0 , d r i v e r & l t ; 4 7 1   b r a n d = n v i d i a , d r i v e r & g t ; = 4 7 0 , d r i v e r & l t ; 4 7 1   ' < b r   / >   ' b r a n d = n v i d i a r t x , d r i v e r & g t ; = 4 7 0 , d r i v e r & l t ; 4 7 1   b r a n d = g e f o r c e , d r i v e r & g t ; = 4 7 0 , d r i v e r & l t ; 4 7 1   ' < b r   / >   ' b r a n d = g e f o r c e r t x , d r i v e r & g t ; = 4 7 0 , d r i v e r & l t ; 4 7 1   b r a n d = q u a d r o , d r i v e r & g t ; = 4 7 0 , d r i v e r & l t ; 4 7 1   ' < b r   / >   ' b r a n d = q u a d r o r t x , d r i v e r & g t ; = 4 7 0 , d r i v e r & l t ; 4 7 1   b r a n d = t i t a n , d r i v e r & g t ; = 4 7 0 , d r i v e r & l t ; 4 7 1   ' < b r   / >   ' b r a n d = t i t a n r t x , d r i v e r & g t ; = 4 7 0 , d r i v e r & l t ; 4 7 1   b r a n d = t e s l a , d r i v e r & g t ; = 5 2 5 , d r i v e r & l t ; 5 2 6   ' < b r   / >   ' b r a n d = u n k n o w n , d r i v e r & g t ; = 5 2 5 , d r i v e r & l t ; 5 2 6   b r a n d = n v i d i a , d r i v e r & g t ; = 5 2 5 , d r i v e r & l t ; 5 2 6   ' < b r   / >   ' b r a n d = n v i d i a r t x , d r i v e r & g t ; = 5 2 5 , d r i v e r & l t ; 5 2 6   b r a n d = g e f o r c e , d r i v e r & g t ; = 5 2 5 , d r i v e r & l t ; 5 2 6   ' < b r   / >   ' b r a n d = g e f o r c e r t x , d r i v e r & g t ; = 5 2 5 , d r i v e r & l t ; 5 2 6   b r a n d = q u a d r o , d r i v e r & g t ; = 5 2 5 , d r i v e r & l t ; 5 2 6   ' < b r   / >   ' b r a n d = q u a d r o r t x , d r i v e r & g t ; = 5 2 5 , d r i v e r & l t ; 5 2 6   b r a n d = t i t a n , d r i v e r & g t ; = 5 2 5 , d r i v e r & l t ; 5 2 6   ' < b r   / >   ' b r a n d = t i t a n r t x , d r i v e r & g t ; = 5 2 5 , d r i v e r & l t ; 5 2 6 ' ) < b r   / > #           N V _ L I B C U B L A S _ D E V _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'
#     TBE_EPHEM_CREDS_ADDR = '172.28.0.1:8009'
#     COLAB_LANGUAGE_SERVER_PROXY_REQUEST_TIMEOUT = '30s'
#     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 = '20240627'
#     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_20240711-060152_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-2v31ve1examkw '
'--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-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 = '82'
#     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'
#     COLAB_CUSTOMIZE_FOR_VM_TYPE = '1'
#     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**
Если у кого-нибудь есть решение, дайте мне знать.
Заранее спасибо,
Такит

Подробнее здесь: https://stackoverflow.com/questions/787 ... -py-to-apk
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Android»