@newakk80

Как исправить ошибку при компилции python скрипта в buildozer?

Здравствуйте. При запуске компиляции скрипта на python в buildozer, он выводит ошибку. При запуске используется команда buildozer android debug. Использую ubuntu 19.04. Вот ошибка:
Exception in thread background thread for pid 7628:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/usr/local/lib/python3.7/dist-packages/sh-1.12.14-py3.7.egg/sh.py", line 1540, in wrap
fn(*args, **kwargs)
File "/usr/local/lib/python3.7/dist-packages/sh-1.12.14-py3.7.egg/sh.py", line 2459, in background_thread
handle_exit_code(exit_code)
File "/usr/local/lib/python3.7/dist-packages/sh-1.12.14-py3.7.egg/sh.py", line 2157, in fn
return self.command.handle_command_exit_code(exit_code)
File "/usr/local/lib/python3.7/dist-packages/sh-1.12.14-py3.7.egg/sh.py", line 815, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_2:

RAN: /usr/bin/make build_libs

STDOUT:
/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
"-oMakefile" crypto/include/internal/bn_conf.h.in > crypto/include/internal/bn_conf.h
/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
"-oMakefile" crypto/include/internal/dso_conf.h.in > crypto/include/internal/dso_conf.h
/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
"-oMakefile" include/openssl/opensslconf.h.in > include/openssl/opensslconf.h
make depend && make _build_libs
make[1]: Entering directory '/home/coder/tic/.buildozer/android/platform/build/build/other_builds/openssl/armeabi-v7a__ndk_target_21/openssl1.1'
make[1]: Leaving directory '/home/coder/tic/.buildozer/android/platform/build/build/other_builds/openssl/armeabi-v7a__ndk_target_21/openssl1.1'
make[1]: Entering directory '/home/coder/tic/.buildozer/android/platform/build/build/other_builds/openssl/armeabi-v7a__ndk_target_21/openssl1.1'
/usr/bin/ccache /home/coder/.buildozer/android/platform/android-ndk-r17c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -DANDROID -fomit-frame-pointer -D__ANDROID_API__=21 -target armv7a-none-linux-androideabi -gcc-toolchain /home/coder/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -isystem /home/coder/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -I/home/coder/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/coder/.buildozer/android/platform/android-ndk-r17c/sysroot -I/home/coder/tic/.buildozer/android/platform/build/build/python-installs/tic_tac_toe/include/python3.7 -I. -Iinclude -fPIC -pthread -target armv7a-linux-androideabi -gcc-toolchain /home/coder/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/coder/.buildozer/android/platform/android-ndk-r17c/platforms/android-21/arch-arm -Wall -O3 -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-1.1\"" -D__ANDROID_API__=21 -isystem /home/coder/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -isystem /home/coder/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include -DNDEBUG -D__ANDROID_API__=21 -c -o apps/app_rand.o apps/app_rand.c
/home/coder/.buildozer/android/platform/android-ndk-r17c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
make[1]: *** [Makefile:720: apps/app_rand.o] Error 127
make[1]: Leaving directory '/home/coder/tic/.buildozer/android/platform/build/build/other_builds/openssl/armeabi-v7a__ndk_target_21/openssl1.1'
make: *** [Makefile:172: build_libs] Error 2

STDERR:

Traceback (most recent call last):
File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/coder/tic/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1189, in
main()
File "/home/coder/tic/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 1183, in main
ToolchainCL()
File "/home/coder/tic/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 666, in __init__
getattr(self, args.subparser_name.replace('-', '_'))(args)
File "/home/coder/tic/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 152, in wrapper_func
build_dist_from_args(ctx, dist, args)
File "/home/coder/tic/.buildozer/android/platform/python-for-android/pythonforandroid/toolchain.py", line 205, in build_dist_from_args
args, "ignore_setup_py", False
File "/home/coder/tic/.buildozer/android/platform/python-for-android/pythonforandroid/build.py", line 557, in build_recipes
recipe.build_arch(arch)
File "/home/coder/tic/.buildozer/android/platform/python-for-android/pythonforandroid/recipes/openssl/__init__.py", line 135, in build_arch
shprint(sh.make, 'build_libs', _env=env)
File "/home/coder/tic/.buildozer/android/platform/python-for-android/pythonforandroid/logger.py", line 178, in shprint
for line in output:
File "/usr/local/lib/python3.7/dist-packages/sh-1.12.14-py3.7.egg/sh.py", line 863, in next
self.wait()
File "/usr/local/lib/python3.7/dist-packages/sh-1.12.14-py3.7.egg/sh.py", line 792, in wait
self.handle_command_exit_code(exit_code)
File "/usr/local/lib/python3.7/dist-packages/sh-1.12.14-py3.7.egg/sh.py", line 815, in handle_command_exit_code
raise exc
sh.ErrorReturnCode_2:

RAN: /usr/bin/make build_libs

STDOUT:
/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
"-oMakefile" crypto/include/internal/bn_conf.h.in > crypto/include/internal/bn_conf.h
/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
"-oMakefile" crypto/include/internal/dso_conf.h.in > crypto/include/internal/dso_conf.h
/usr/bin/perl "-I." -Mconfigdata "util/dofile.pl" \
"-oMakefile" include/openssl/opensslconf.h.in > include/openssl/opensslconf.h
make depend && make _build_libs
make[1]: Entering directory '/home/coder/tic/.buildozer/android/platform/build/build/other_builds/openssl/armeabi-v7a__ndk_target_21/openssl1.1'
make[1]: Leaving directory '/home/coder/tic/.buildozer/android/platform/build/build/other_builds/openssl/armeabi-v7a__ndk_target_21/openssl1.1'
make[1]: Entering directory '/home/coder/tic/.buildozer/android/platform/build/build/other_builds/openssl/armeabi-v7a__ndk_target_21/openssl1.1'
/usr/bin/ccache /home/coder/.buildozer/android/platform/android-ndk-r17c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang -DANDROID -fomit-frame-pointer -D__ANDROID_API__=21 -target armv7a-none-linux-androideabi -gcc-toolchain /home/coder/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 -isystem /home/coder/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -I/home/coder/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -isysroot /home/coder/.buildozer/android/platform/android-ndk-r17c/sysroot -I/home/coder/tic/.buildozer/android/platform/build/build/python-installs/tic_tac_toe/include/python3.7 -I. -Iinclude -fPIC -pthread -target armv7a-linux-androideabi -gcc-toolchain /home/coder/.buildozer/android/platform/android-ndk-r17c/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 --sysroot=/home/coder/.buildozer/android/platform/android-ndk-r17c/platforms/android-21/arch-arm -Wall -O3 -DOPENSSL_USE_NODELETE -DOPENSSL_PIC -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib/engines-1.1\"" -D__ANDROID_API__=21 -isystem /home/coder/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include/arm-linux-androideabi -isystem /home/coder/.buildozer/android/platform/android-ndk-r17c/sysroot/usr/include -DNDEBUG -D__ANDROID_API__=21 -c -o apps/app_rand.o apps/app_rand.c
/home/coder/.buildozer/android/platform/android-ndk-r17c/toolchains/llvm/prebuilt/linux-x86_64/bin/clang: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
make[1]: *** [Makefile:720: apps/app_rand.o] Error 127
make[1]: Leaving directory '/home/coder/tic/.buildozer/android/platform/build/build/other_builds/openssl/armeabi-v7a__ndk_target_21/openssl1.1'
make: *** [Makefile:172: build_libs] Error 2
  • Вопрос задан
  • 224 просмотра
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы