Error when compiling apk with Pyjnius

332 views
Skip to first unread message

Brian MacDiarmuide

unread,
Jun 27, 2015, 10:36:56 PM6/27/15
to pyjni...@googlegroups.com
While attempting to build an apk with buildozer(for a kivy project), I am running into the following(buildozer log_level is set to 2):

First of all this, which I believe is actually supposed to happen. I do have cython and everything is fine on that front.

# 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-997Av1/jnius/setup.py", line 32, in <module>
       
from Cython.Distutils import build_ext
   
ImportError: No module named Cython.Distutils
   

Which is immediately followed by this:

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-997Av1/jnius
# Command failed: pip install --download-cache=/home/yerman/.buildozer/cache --target=/home/yerman/PycharmProjects/genius/.buildozer/applibs jnius


I have tried cleaning out the buildozer cache, both for the project and globally. I have experimented also with multiple versions of cython, and even java.
So far, no good. Any help would be very welcome.

Mathieu Virbel

unread,
Jun 28, 2015, 4:19:21 AM6/28/15
to pyjni...@googlegroups.com, pyjni...@googlegroups.com
Use pyjnius in the name instead of jnius. The recipe name is pyjnius 😊

—
Sent from Mailbox


--
You received this message because you are subscribed to the Google Groups "PyJNIus development ML" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyjnius-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Brian MacDiarmuide

unread,
Jun 29, 2015, 8:32:45 PM6/29/15
to pyjni...@googlegroups.com
Thank you, that did seem to do the trick. Unfortunately my app now crashes on startup, but I think this is a different problem. I notice there
are two python modules, jnius and pyjnius... are they different?
Reply all
Reply to author
Forward
0 new messages