Reputation: 19
Ok so I really like the sound of kivy, but installing it is proving to be a real pain, I have installed all dependencies that it has asked for but I keep getting this error message:
Error compiling Cython file:
------------------------------------------------------------
...
cpdef release(self)
cpdef get_pixel_color(self, int wx, int wy)
cdef void create_fbo(self)
cdef void delete_fbo(self)
cdef void apply(self)
^
------------------------------------------------------------
kivy/graphics/fbo.pxd:27:19: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef void push_states(self, list names) except *
cdef void pop_state(self, str name) except *
cdef void pop_states(self, list names) except *
cdef void enter(self) except *
cdef void leave(self) except *
cdef void apply(self) except *
^
------------------------------------------------------------
kivy/graphics/instructions.pxd:123:19: Previous declaration is here
building 'kivy.graphics.vbo' extension
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c /tmp/pip-build-PA4_U4/kivy/kivy/graphics/vbo.c -o build/temp.linux-i686-2.7/tmp/pip-build-PA4_U4/kivy/kivy/graphics/vbo.o
/tmp/pip-build-PA4_U4/kivy/kivy/graphics/vbo.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 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-PA4_U4/kivy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-DiTplK-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-PA4_U4/kivy
I'm not sure what to do with it so can someone please help me.
Many Thanks
Chris
Upvotes: 0
Views: 869
Reputation: 19
I have don it, I needed to install Cython through pip, the command was:
sudo pip install -I Cython==0.21.2
And then I was able to successfully install kivy after that.
Upvotes: 1