2

我安装了 Cython 0.20,并且可以从 python 解释器执行“from Cython.Distutils import build_ext”,所以当我尝试使用 buildozer 构建 apk 时,我不明白以下错误。我在 buildozer.spec 中的 log_level 已经设置为 2。它似乎正在尝试将 jnius 安装到 virtualenv 中(除非我弄错了)。我认为这是正常的,因为我自己没有设置任何东西。有什么建议么?我用谷歌搜索无济于事。我的操作系统是 Ubuntu 15.04。

以下是命令输出的结尾:

buildozer --verbose android debug deploy run

..

 # Install distribute
    # Run 'curl http://python-distribute.org/distribute_setup.py | venv/bin/python'
    # Cwd /home/yerman/PycharmProjects/genius/.buildozer
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
      0     0    0     0    0     0      0      0 --:--:--  0:00:16 --:--:--     0
    # Install requirement jnius in virtualenv
    # Run 'pip install --download-cache=/home/yerman/.buildozer/cache --target=/home/yerman/PycharmProjects/genius/.buildozer/applibs jnius'
    # Cwd /home/yerman/PycharmProjects/genius/.buildozer
    DEPRECATION: --download-cache has been deprecated and will be removed in the future. Pip now automatically uses and configures its cache.
    Collecting jnius
      Using cached jnius-1.0.2.tar.gz
        Complete output from command python setup.py egg_info:


        You need Cython to compile Pyjnius.


        Traceback (most recent call last):
          File "<string>", line 20, in <module>
          File "/tmp/pip-build-_tfhLW/jnius/setup.py", line 32, in <module>
            from Cython.Distutils import build_ext
        ImportError: No module named Cython.Distutils

        ----------------------------------------
    Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-_tfhLW/jnius
    # Command failed: pip install --download-cache=/home/yerman/.buildozer/cache --target=/home/yerman/PycharmProjects/genius/.buildozer/applibs jnius
    # 
    # 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
4

0 回答 0