AssertionError: SetDeviceGammaRamp failed

Hi

I have installed StandalonePsychoPy3_PY2-3.1.2-win32 on Windows 7. The Windows has been installed on Virtualbox.
I have made a Stroop task with the Builder and I have tested it on a system which runs properly. But when I want to run it on my system, first, I get the following error message:


After clicking on Ok button, the task runs, but immediately I get the following error:

######## Running: C:\Users\Application\Desktop\Stroop\Stroop_lastrun.py ########
29.9893     WARNING     Import Error: No module named psychtoolbox. Using event module for keyboard component.
35.0528     WARNING     User requested fullscreen with size [1366  768], but screen is actually [1366, 669]. Using actual size
35.0549     WARNING     Trying to use a framebuffer object but GL_EXT_framebuffer_object is not supported. Disabled
35.0549     WARNING     Trying to use a framebuffer object but GL_ARB_texture_float is not supported. Disabling
36.3256     WARNING     t of last frame was 2.75ms (=1/363)
36.3362     WARNING     t of last frame was 1.81ms (=1/553)
36.3394     WARNING     t of last frame was 1.95ms (=1/512)
Traceback (most recent call last):
  File "C:\Users\Application\Desktop\Stroop\Stroop_lastrun.py", line 168, in <module>
    win.flip()
  File "C:\Program Files\PsychoPy3_PY2\lib\site-packages\psychopy\visual\window.py", line 750, in flip
    thisStim.draw()
  File "C:\Program Files\PsychoPy3_PY2\lib\site-packages\psychopy\visual\text.py", line 804, in draw
    GL.glActiveTexture(GL.GL_TEXTURE1)
  File "C:\Program Files\PsychoPy3_PY2\lib\site-packages\pyglet\gl\lib_wgl.py", line 106, in __call__
    return self.func(*args, **kwargs)
  File "C:\Program Files\PsychoPy3_PY2\lib\site-packages\pyglet\gl\lib.py", line 63, in MissingFunction
    raise MissingFunctionException(name, requires, suggestions)
pyglet.gl.lib.MissingFunctionException: glActiveTexture is not exported by the available OpenGL driver.
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "C:\Program Files\PsychoPy3_PY2\lib\atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "C:\Program Files\PsychoPy3_PY2\lib\site-packages\psychopy\visual\window.py", line 495, in close_on_exit
    self.close()
  File "C:\Program Files\PsychoPy3_PY2\lib\site-packages\psychopy\visual\window.py", line 1327, in close
    self.backend.close()  # moved here, dereferencing the window prevents
  File "C:\Program Files\PsychoPy3_PY2\lib\site-packages\psychopy\visual\backends\pygletbackend.py", line 374, in close
    self.gammaRamp = self._origGammaRamp
  File "C:\Program Files\PsychoPy3_PY2\lib\site-packages\psychopy\tools\attributetools.py", line 32, in __set__
    newValue = self.func(obj, value)
  File "C:\Program Files\PsychoPy3_PY2\lib\site-packages\psychopy\visual\backends\pygletbackend.py", line 326, in gammaRamp
    xDisplay=self.xDisplay)
  File "C:\Program Files\PsychoPy3_PY2\lib\site-packages\psychopy\visual\backends\gamma.py", line 91, in setGammaRamp
    assert success, 'SetDeviceGammaRamp failed'
AssertionError: SetDeviceGammaRamp failed
Error in sys.exitfunc:
Traceback (most recent call last):
  File "C:\Program Files\PsychoPy3_PY2\lib\atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "C:\Program Files\PsychoPy3_PY2\lib\site-packages\psychopy\visual\window.py", line 495, in close_on_exit
    self.close()
  File "C:\Program Files\PsychoPy3_PY2\lib\site-packages\psychopy\visual\window.py", line 1327, in close
    self.backend.close()  # moved here, dereferencing the window prevents
  File "C:\Program Files\PsychoPy3_PY2\lib\site-packages\psychopy\visual\backends\pygletbackend.py", line 374, in close
    self.gammaRamp = self._origGammaRamp
  File "C:\Program Files\PsychoPy3_PY2\lib\site-packages\psychopy\tools\attributetools.py", line 32, in __set__
    newValue = self.func(obj, value)
  File "C:\Program Files\PsychoPy3_PY2\lib\site-packages\psychopy\visual\backends\pygletbackend.py", line 326, in gammaRamp
    xDisplay=self.xDisplay)
  File "C:\Program Files\PsychoPy3_PY2\lib\site-packages\psychopy\visual\backends\gamma.py", line 91, in setGammaRamp
    assert success, 'SetDeviceGammaRamp failed'
AssertionError: SetDeviceGammaRamp failed

Would someone help me to solve the problem?

Thanks

Hi @alirezakr, from past posts, this looks like an issue with your openGL drivers, and they will need to be updated.