Skip to content

Instantly share code, notes, and snippets.

@tuxcanfly
Created November 19, 2012 12:05
Show Gist options
  • Save tuxcanfly/4110323 to your computer and use it in GitHub Desktop.
Save tuxcanfly/4110323 to your computer and use it in GitHub Desktop.
>pip install kivy
Downloading/unpacking kivy
Running setup.py egg_info for package kivy
[INFO ] Kivy v1.4.1
Found GLES 2.0 headers at /usr/include/GLES2/gl2.h
Installing collected packages: kivy
Running setup.py install for kivy
[INFO ] Kivy v1.4.1
Found GLES 2.0 headers at /usr/include/GLES2/gl2.h
Build configuration is:
* use_opengl_es2 = True
* use_glew = False
* use_opengl_debug = False
* use_mesagl = False
Generate config.h
Generate config.pxi
cythoning /home/me/.virtualenvs2.7/kivy/build/kivy/kivy/graphics/texture.
pyx to /home/me/.virtualenvs2.7/kivy/build/kivy/kivy/graphics/texture.c
Error compiling Cython file:
------------------------------------------------------------
...
cdef int is_compressed = _is_compressed_fmt(colorfmt)
cdef int _mipmap_generation = mipmap_generation and self._mipmap
cdef int _mipmap_level = mipmap_level
with nogil:
glBindTexture(target, self._id)
^
------------------------------------------------------------
kivy/graphics/texture.pyx:737:38: Coercion from Python not allowed without
the GIL
Error compiling Cython file:
------------------------------------------------------------
...
cdef int is_compressed = _is_compressed_fmt(colorfmt)
cdef int _mipmap_generation = mipmap_generation and self._mipmap
cdef int _mipmap_level = mipmap_level
with nogil:
glBindTexture(target, self._id)
^
------------------------------------------------------------
kivy/graphics/texture.pyx:737:38: Accessing Python attribute not allowed wi
thout gil
building 'kivy.build.kivy.kivy.graphics.texture' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-pro
totypes -fPIC -I/usr/include/python2.7 -c /home/me/.virtualenvs2.7/kivy/build
/kivy/kivy/graphics/texture.c -o build/temp.linux-i686-2.7/home/me/.virtualen
vs2.7/kivy/build/kivy/kivy/graphics/texture.o
/home/me/.virtualenvs2.7/kivy/build/kivy/kivy/graphics/texture.c:1:2: err
or: #error Do not use this file, it is the result of a failed Cython compilation
.
error: command 'gcc' failed with exit status 1
Complete output from command /home/me/.virtualenvs2.7/kivy/bin/python -c
"import setuptools;__file__='/home/me/.virtualenvs2.7/kivy/build/kivy/setup.p
y';exec(compile(open(__file__).read().replace('\\r\\n', '\\n'), __file__, 'exec'
))" install --record /tmp/pip-avIG9Q-record/install-record.txt --single-version-
externally-managed --install-headers /home/me/.virtualenvs2.7/kivy/include/si
te/python2.7:
[INFO ] Kivy v1.4.1
Found GLES 2.0 headers at /usr/include/GLES2/gl2.h
running install
running build
running build_py
running build_ext
Build configuration is:
* use_opengl_es2 = True
* use_glew = False
* use_opengl_debug = False
* use_mesagl = False
Generate config.h
Generate config.pxi
cythoning /home/me/.virtualenvs2.7/kivy/build/kivy/kivy/graphics/texture.pyx
to /home/me/.virtualenvs2.7/kivy/build/kivy/kivy/graphics/texture.c
Error compiling Cython file:
------------------------------------------------------------
...
cdef int is_compressed = _is_compressed_fmt(colorfmt)
cdef int _mipmap_generation = mipmap_generation and self._mipmap
cdef int _mipmap_level = mipmap_level
with nogil:
glBindTexture(target, self._id)
^
------------------------------------------------------------
kivy/graphics/texture.pyx:737:38: Coercion from Python not allowed without the
GIL
Error compiling Cython file:
------------------------------------------------------------
...
cdef int is_compressed = _is_compressed_fmt(colorfmt)
cdef int _mipmap_generation = mipmap_generation and self._mipmap
cdef int _mipmap_level = mipmap_level
with nogil:
glBindTexture(target, self._id)
^
------------------------------------------------------------
kivy/graphics/texture.pyx:737:38: Accessing Python attribute not allowed withou
t gil
building 'kivy.build.kivy.kivy.graphics.texture' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototy
pes -fPIC -I/usr/include/python2.7 -c /home/me/.virtualenvs2.7/kivy/build/kiv
y/kivy/graphics/texture.c -o build/temp.linux-i686-2.7/home/me/.virtualenvs2.
7/kivy/build/kivy/kivy/graphics/texture.o
/home/me/.virtualenvs2.7/kivy/build/kivy/kivy/graphics/texture.c:1:2: error:
#error Do not use this file, it is the result of a failed Cython compilation.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command /home/me/.virtualenvs2.7/kivy/bin/python -c "import setuptools;__file
__='/home/me/.virtualenvs2.7/kivy/build/kivy/setup.py';exec(compile(open(__fi
le__).read().replace('\\r\\n', '\\n'), __file__, 'exec'))" install --record /tmp
/pip-avIG9Q-record/install-record.txt --single-version-externally-managed --inst
all-headers /home/me/.virtualenvs2.7/kivy/include/site/python2.7 failed with
error code 1 in /home/me/.virtualenvs2.7/kivy/build/kivy
Storing complete log in /home/me/.pip/pip.log
@berinhard
Copy link

hey! i have the same problem during the installation... how did you fix it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment