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

Problem installing kivent #209

Open
HobbitDur opened this issue Feb 25, 2017 · 5 comments
Open

Problem installing kivent #209

HobbitDur opened this issue Feb 25, 2017 · 5 comments

Comments

@HobbitDur
Copy link

Hi all.
I don't know if i missed something from the wiki but I have really hard time to install kivent.
I installed kivy from a wheel (always a problem when compiling so decided to install a wheel)
Cython version 24.1 as in requirements.txt
But then i cannot install Kivent with this error message (I reduced the size to what is interested)

[INFO ] [Logger ] Record log in C:\Users\Ludovic.kivy\logs\kivy_17-02-25_1.txt
[INFO ] [Kivy ] v1.9.2.dev0, git-383c0d4, 20170224
[INFO ] [Python ] v3.6.0b4 (default, Nov 22 2016, 05:30:12) [MSC v.1900 64 bit (AMD64)]
kivent_core/rendering/gl_debug.pyx: cannot find cimported module 'kivy.graphics.c_opengl'
kivent_core/rendering/vertex_format.pyx: cannot find cimported module 'kivy.graphics.c_opengl'
kivent_core/rendering/fixedvbo.pyx: cannot find cimported module 'kivy.graphics.c_opengl'
kivent_core/rendering/fixedvbo.pxd: cannot find cimported module 'kivy.graphics.c_opengl'
.\kivent_core\rendering\batching.pxd: cannot find cimported module 'kivy.graphics.c_opengl'
.\kivent_core\rendering\fixedvbo.pxd: cannot find cimported module 'kivy.graphics.c_opengl'
kivent_core/rendering/batching.pyx: cannot find cimported module 'kivy.graphics.c_opengl'
kivent_core/rendering/batching.pxd: cannot find cimported module 'kivy.graphics.c_opengl'
kivent_core/rendering/vertex_formats.pxd: cannot find cimported module 'kivy.graphics.c_opengl'
kivent_core/rendering/model.pyx: cannot find cimported module 'kivy.graphics.c_opengl'
.\kivent_core\rendering\vertex_formats.pxd: cannot find cimported module 'kivy.graphics.c_opengl'
kivent_core/systems/renderers.pyx: cannot find cimported module 'kivy.graphics.c_opengl'

[ 1/39] Cythonizing kivent_core/managers/resource_managers.pyx

Error compiling Cython file:

...
from kivy.graphics.c_opengl cimport GLfloat, GLubyte
^

kivent_core\rendering\vertex_formats.pxd:1:0: 'kivy\graphics\c_opengl.pxd' not found

And more error coming from the same file c_opengl.

Can you help me ?
Thanks !

@Kovak
Copy link
Contributor

Kovak commented Feb 25, 2017

You need to use the new_cgl_module branch to compile against 1.9.2

@timstoop
Copy link

timstoop commented Jun 3, 2017

Using the 2.2-release branch, I still get those kind of errors:

./kivent_core/rendering/batching.pxd: cannot find cimported module 'kivy.graphics.c_opengl'
./kivent_core/rendering/fixedvbo.pxd: cannot find cimported module 'kivy.graphics.c_opengl'
kivent_core/rendering/gl_debug.pyx: cannot find cimported module 'kivy.graphics.c_opengl'
./kivent_core/rendering/vertex_formats.pxd: cannot find cimported module 'kivy.graphics.c_opengl'
kivent_core/rendering/batching.pyx: cannot find cimported module 'kivy.graphics.c_opengl'
kivent_core/rendering/batching.pxd: cannot find cimported module 'kivy.graphics.c_opengl'
kivent_core/rendering/fixedvbo.pyx: cannot find cimported module 'kivy.graphics.c_opengl'
kivent_core/rendering/fixedvbo.pxd: cannot find cimported module 'kivy.graphics.c_opengl'
kivent_core/rendering/vertex_formats.pxd: cannot find cimported module 'kivy.graphics.c_opengl'
kivent_core/rendering/model.pyx: cannot find cimported module 'kivy.graphics.c_opengl'
kivent_core/rendering/vertex_format.pyx: cannot find cimported module 'kivy.graphics.c_opengl'
kivent_core/systems/renderers.pyx: cannot find cimported module 'kivy.graphics.c_opengl'

and

 
 Error compiling Cython file:
 ------------------------------------------------------------
 ...
 from kivy.graphics.c_opengl cimport GLfloat, GLubyte
 ^
 ------------------------------------------------------------
 
 kivent_core/rendering/vertex_formats.pxd:1:0: 'kivy/graphics/c_opengl.pxd' not found
 
 Error compiling Cython file:
 ------------------------------------------------------------
 ...
 from kivy.graphics.c_opengl cimport GLfloat, GLubyte
 ^
 ------------------------------------------------------------
 
 kivent_core/rendering/vertex_formats.pxd:1:0: 'kivy/graphics/c_opengl/GLfloat.pxd' not found
 
 Error compiling Cython file:
 ------------------------------------------------------------
 ...
 from kivy.graphics.c_opengl cimport GLfloat, GLubyte
 ^
 ------------------------------------------------------------
 
 kivent_core/rendering/vertex_formats.pxd:1:0: 'kivy/graphics/c_opengl/GLubyte.pxd' not found
 
 Error compiling Cython file:
 ------------------------------------------------------------
 ...
 from kivy.graphics.c_opengl cimport GLfloat, GLubyte
 
 ctypedef struct VertexFormat4F:
     GLfloat[2] pos
    ^
 ------------------------------------------------------------
 
 kivent_core/rendering/vertex_formats.pxd:4:4: 'GLfloat' is not a type identifier
[...]

Any hint on how to get it to compile?

@Kovak
Copy link
Contributor

Kovak commented Jun 3, 2017

This usually means you have not installed the 'developer' version of Kivy as it cannot find the appropriate headers for that lib.

You need to follow the instructions here to install kivy from source on windows. https://kivy.org/docs/installation/installation-windows.html#use-development-kivy

@timstoop
Copy link

timstoop commented Jun 4, 2017

I'm running on Linux, installed Kivy with pip within a virtualenv. I've just tried to install master and that actually seems to work fine. It's just the branch 2.2-release that gives the errors above.

@OortJacek
Copy link

I'm running on Windows and I had this same problem with 2.2-release. Master works fine.

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

4 participants