Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in your VM Image after ./distribute.sh -m kivy #291

Closed
LittleBuster opened this issue Oct 27, 2014 · 6 comments
Closed

error in your VM Image after ./distribute.sh -m kivy #291

LittleBuster opened this issue Oct 27, 2014 · 6 comments

Comments

@LittleBuster
Copy link

building 'kivy.graphics.svg' extension
ccache arm-linux-androideabi-gcc -mandroid -fomit-frame-pointer --sysroot /home/kivy/android/android-ndk-r8c/platforms/android-14/arch-arm -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -mandroid -fomit-frame-pointer --sysroot /home/kivy/android/android-ndk-r8c/platforms/android-14/arch-arm -fPIC -I/home/kivy/android/android-ndk-r8c/platforms/android-14/arch-arm/usr/include -I/home/kivy/android/python-for-android/build/python-install/include/python2.7 -c kivy/graphics/svg.c -o build/temp.linux-i686-2.7/kivy/graphics/svg.o
kivy/graphics/svg.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
error: command 'ccache' failed with exit status 1

@kevinkjt2000
Copy link

I get the same error while using the vm.
Executing 'sudo pip install --upgrade cython==0.20' will downgrade cython. Which got distribute.sh to work for me.

@akshayaurora
Copy link
Member

This is a issue with the latest cython, we need some fixes for it, fixes
were added with the master but the stable branch still needs these fixes.

Will fix asap. In the mean time try building with kivy==master it should
work.

On Mon, Oct 27, 2014 at 8:09 PM, kevinkjt2000 notifications@github.com
wrote:

I get the same error while using the vm.


Reply to this email directly or view it on GitHub
#291 (comment)
.

@tito
Copy link
Member

tito commented Nov 15, 2014

@akshayaurora Is the VM changed the PYTHONPATH in .bashrc to include its own Kivy directory?

As i discovered earlier on IRC, if you have a master/kivy directory in your PYTHONPATH, there will be a conflict of inclusion by Cython itself.
Ie, Cython detect a pxd in master/pythonpath while trying to compile a pyx in stable/python-for-android, which obviously wont work.

@akshayaurora
Copy link
Member

The Fixes I was talking about were pushed to stable and master both so this issue should be fixed.

@tito, yes the vm uses PYTHONPATH to setup kivy in ~/.bashrc. I guess this could be the reason behind the issue on the VM.

@gsakhel
Copy link

gsakhel commented Apr 21, 2015

I'm also getting the "error: command 'ccache' failed with exit status 1" issue when executing ./distribute.sh -m "kivy"

I'm using the latest VM package from http://kivy.org/#download which uses Ubuntu 12.10. I've tried upgrading & downgrading cython, updating dependencies according as per the included Readme, and have tried starting from scratch multiple times. Some direction would be greatly appreciated.
UPDATE:
./distribute.sh using the VM package magically started working but I was not able to reproduce success in another VM. However, I was able to successfully run ./distribute.sh on Ubuntu 14.04 using cython 0.20.1 and ensuring I had Build 14 from the SDK Manager.

@akshayaurora
Copy link
Member

the vm has been updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants