#error Do not use this file, it is the result of a failed Cython compilation.

1,744 views
Skip to first unread message

John Cole

unread,
Oct 9, 2014, 4:49:27 PM10/9/14
to kivy-...@googlegroups.com

Totally new to Kivy.  I had a pretty smooth setup, and I'm able to run apps on my linux computer with no problems.  However, compiling for Android, I can't seem to get past this hurdle for the past few hours.

I'm running Ubuntu 12.04, and I've followed the directions for installation of Cython. After running into this error,

building 'kivy.graphics.shader' extension
arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/dexter/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm -DNDEBUG -DANDROID -mandroid -fomit-frame-pointer --sysroot /home/dexter/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm -fPIC -I/home/dexter/.buildozer/android/platform/android-ndk-r9c/platforms/android-14/arch-arm/usr/include -I/home/dexter/Android/Kivy/venv/kivy_android_app_1/.buildozer/android/platform/python-for-android/build/python-install/include/python2.7 -c kivy/graphics/shader.c -o build/temp.linux-i686-2.7/kivy/graphics/shader.o
kivy/graphics/shader.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
 #error Do not use this file, it is the result of a failed Cython compilation.
  ^
 error: command 'arm-linux-androideabi-gcc' failed with exit status 1
# Command failed: ./distribute.sh -m "kivy" -d "kivycrash2"

I ran the following:

sudo pip uninstall buildozer
sudo pip uninstall cython

I checked the installation directory (/usr/local/lib/python2.7/dist-packages) and both buildozer and cython were gone.  Then, I deleted the .buildozer directory, then set about installing again:

sudo pip install --upgrade cython
sudo pip install --upgrade buildozer

But I'm still getting the same errors unfortunately.

When I run 
cython -V
I get back Cython version 0.21


Maybe there's something I missing?  Thanks for any help!

Andrei Sima

unread,
Oct 9, 2014, 5:54:32 PM10/9/14
to kivy-...@googlegroups.com

pip install cython==0.20

in home folder       rm -rf .buildozer
in project folder    rm -rf .buildozer

i do not know if they fixed the issues with cython 0.21




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



--

______________
random life

Bruce Cropley

unread,
Oct 9, 2014, 10:07:23 PM10/9/14
to kivy-...@googlegroups.com
I am running cython 0.20.1 (on OS X) as well, that is probably the problem.

To be able to tell what the exact problem is, you may need to see what the problem reported by cython is. When cython has a problem compiling from .pyx to .c, it reports what that problem was, and creates a .c file which generates the generic error that you reported.

Try saving the output of the build (touch shader.pyx first), and find the part where it compiled shader.pyx; that might give you enough info for some successful googling.

Hope that helps,
Bruce

John Cole

unread,
Oct 10, 2014, 3:34:11 PM10/10/14
to kivy-...@googlegroups.com
@Andrei:  This worked and got me past they cython errors!  Thanks so much!
Reply all
Reply to author
Forward
0 new messages