ImportError: No module named Cython.Distutils (BUT there is)

1,477 views
Skip to first unread message

Brian MacDiarmuide

unread,
Jun 24, 2015, 7:46:41 PM6/24/15
to kivy-...@googlegroups.com
I have Cython 0.20 installed, and can do 'from Cython.Distutils import build_ext' from a python interpreter, so I don't understand
the below error, when I am trying to build the apk. My log_level in buildozer.spec is set to 2 already. Any suggestions? I've googled around to no avail.

# 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

Garrett Armstrong

unread,
Jun 26, 2015, 1:23:47 PM6/26/15
to kivy-...@googlegroups.com
I don't know which OS you're using or whether you're using virtual environments, but in ubuntu I'd first start with 'which cython' and 'cython -V' to make sure the cython is there.

Brian MacDiarmuide

unread,
Jun 27, 2015, 8:12:27 AM6/27/15
to kivy-...@googlegroups.com
It does indeed exist. I am told that this cython importerror is actually supposed to happen. So it must be the line Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-_tfhLW/jnius ..

Brian MacDiarmuide

unread,
Jun 27, 2015, 8:13:06 AM6/27/15
to kivy-...@googlegroups.com
Oh, and I'm on Ubuntu 15.04 and not using a virtualenv


On Friday, 26 June 2015 18:23:47 UTC+1, Garrett Armstrong wrote:
Reply all
Reply to author
Forward
0 new messages