简体   繁体   English

Kivy buildozer 调试错误:没有名为 kivy 的模块

[英]Kivy buildozer debug error :No module named kivy

I'm trying to build a simple kivy app with buildozer and python2 , but for some reason inside this build no module 'kivy'.我正在尝试使用 buildozer 和 python2 构建一个简单的 kivy 应用程序,但出于某种原因,在此构建中没有模块“kivy”。 And Some logs from buildozer :和一些来自 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

Is kivy installed on your machine?你的机器上安装了kivy吗? Have you added kivy in requirements of buildozer.spec file?您是否在 buildozer.spec 文件的要求中添加了 kivy? If no then open the buildozer.spec file and in requirements add all the requirements如果没有,则打开 buildozer.spec 文件并在需求中添加所有需求

Check if kivy is installed (pip install kivy).检查是否安装了 kivy (pip install kivy)。 And in buildozer.spec add “requirements=kivy”.在 buildozer.spec 中添加“requirements=kivy”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM