Good day. Which day I've been trying to build an .APK file from python3, kivy and OpenCV. Finally, when the assembly was already over, I got an error:
File "/usr/local/lib/python3.6/dist-packages/sh.py", line 3226, in __getitem__ raise CommandNotFound (k) sh.CommandNotFound: cmakeapi = 28
Attach buildozer.spec + full log(pastebin or txt file)
https://pastebin.com/uAjrFMwd (log with error)
Python 3.6.7
kivy 1.10.1
OpenCV 4.0.1
ndk = 15b
sdk = 28
api = 28
Please tell me what to do.
[INFO]: Building opencv for armeabi-v7a
[INFO]: -> running mkdir -p /home/max/desktop/ass...(and 104 more)
[INFO]: -> directory context /home/max/desktop/asshole/.buildozer/android/platform/build/build/other_builds/opencv/armeabi-v7a__ndk_target_21/opencv/build
Traceback (most recent call last):
File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/max/desktop/python-for-android-master/pythonforandroid/toolchain.py", line 1081, in <module>
main()
File "/home/max/desktop/python-for-android-master/pythonforandroid/toolchain.py", line 1075, in main
ToolchainCL()
File "/home/max/desktop/python-for-android-master/pythonforandroid/toolchain.py", line 577, in __init__
getattr(self, args.subparser_name.replace('-', '_'))(args)
File "/home/max/desktop/python-for-android-master/pythonforandroid/toolchain.py", line 151, in wrapper_func
build_dist_from_args(ctx, dist, args)
File "/home/max/desktop/python-for-android-master/pythonforandroid/toolchain.py", line 200, in build_dist_from_args
build_recipes(build_order, python_modules, ctx)
File "/home/max/desktop/python-for-android-master/pythonforandroid/build.py", line 562, in build_recipes
recipe.build_arch(arch)
File "/home/max/desktop/python-for-android-master/pythonforandroid/recipes/opencv/__init__.py", line 66, in build_arch
shprint(sh.cmake,
File "/usr/local/lib/python3.6/dist-packages/sh.py", line 3349, in __getattr__
return self.__env[name]
File "/usr/local/lib/python3.6/dist-packages/sh.py", line 3226, in __getitem__
raise CommandNotFound(k)
sh.CommandNotFound: cmake
# Command failed: /usr/bin/python3 -m pythonforandroid.toolchain create --dist_name=camcamcamcam --bootstrap=sdl2 --requirements=python3,kivy,numpy,opencv==master --arch armeabi-v7a --copy-libs --color=always --storage-dir="/home/max/desktop/asshole/.buildozer/android/platform/build" --ndk-api=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