cmbruns / pyopenvr

Unofficial python bindings for Valve's OpenVR virtual reality SDK
BSD 3-Clause "New" or "Revised" License
245 stars 39 forks source link

(Installation ? ) Issue with lot of samples #45

Closed matEhickey closed 6 years ago

matEhickey commented 6 years ago

Hello, after many days of research to try to run some samples I come to ask help.

I can't run the glut and the pyqt, but I can run the wx, even if it have the same error (it's not-blocking only on this one).

Every time, the same error due to GL appear:

## trying to launch the glut/hello_glut.py
Traceback (most recent call last):
File: .....\OpenGL\GLUT\special.py", line 130, in safeCall
    return function( *args, **named )
File: .....\openvr\glframework\glut_app.py", line 50, in render_scene
   self.renderer.render_scene()
File: .....\openvr\gl_renderer.py", line 200, in render_scene
    glBindFramebuffer(GL_FRAMEBUFFER, self.right_fb.fb)
File "src\errorchecker.pyx", line 53, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
OpenGL.error.GLError: GLError(
        err = 1282,
        description = b'op\xe9ration non valide',
        baseOperation = glBindFramebuffer,
        cArguments = (GL_FRAMEBUFFER, 2)
)
GLUT Display callback <bound method GlutApp.render_scene of <openvr.glframework.glut_app.GlutApp object at 0x0000025DDBA96DD8>> with (),{} failed: returning None GLError(
        err = 1282,
        description = b'op\xe9ration non valide',
        baseOperation = glBindFramebuffer,
        cArguments = (GL_FRAMEBUFFER, 2)
)

I only tried on Windows 10, but on almost every Python version (2.7-64 bit, 3.5-32 bit, 3.5-64 bit, 3.6-32 bit, 3.6-64 bit).
I tried to install opengl from pip, and the unofficial windows libraries, with the corresponding opengl_accelerate and pyopenvr from github source (new master (1.13) ).

Could you provide your 'pip list' and your python settings ?
Or can provide a better installation guide ? Maybe also there is a problem with the wrapper itself and not my config ?

matEhickey commented 6 years ago

As said by someone else in an other issue, this was just a nvidia driver problem

wangg12 commented 5 years ago

@matEhickey How did you solve this problem? Updating cuda driver or anything else?

matEhickey commented 5 years ago

Not sure for cuda I think it was instead the geforce experiment gaming driver.

matEhickey commented 5 years ago

But I think a "wrong" cuda installation may impact the behavior of geforce drivers, I remember having troubles with these, especially on windows :/