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

2024-05-28 11:17:09 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图用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

Tags: thebuildinfologhomebinandroidplatform