【发布时间】:2021-06-23 23:22:28
【问题描述】:
我正在尝试使用 buildozer 和 python2 构建一个简单的 kivy 应用程序,但由于某种原因,在此构建中没有模块“kivy”。还有来自 buildozer 的一些日志:
[INFO]: STDOUT:
Using distutils
Environ change use_sdl2 -> True
Cython check avoided.
Traceback (most recent call last):
File "setup.py", line 353, in <module>
import kivy
ImportError: No module named kivy
[INFO]: STDERR:
[INFO]: COMMAND:
cd /home/zeak/Desktop/.buildozer/android/platform/build/build/other_builds/kivy-python2-sdl2/armeabi-v7a/kivy && /home/zeak/Desktop/.buildozer/android/platform/build/build/python-installs/py2048/bin/python.host setup.py build_ext -v
[WARNING]: ERROR: /home/zeak/Desktop/.buildozer/android/platform/build/build/python-installs/py2048/bin/python.host failed!
# Command failed: /usr/bin/python -m pythonforandroid.toolchain create --dist_name=py2048 --bootstrap=sdl2 --requirements=kivy --arch armeabi-v7a --copy-libs --color=always --storage-dir=/home/zeak/Desktop/.buildozer/android/platform/build
#
# 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
【问题讨论】:
-
除了错误之外,包含您正在运行的代码会很有帮助。
-
你确定你的系统上安装了kivy吗?
标签: android python kivy buildozer