Hello! Psychopy has been working without problems for me for at least a year, but today a new error cropped up, which won’t let me run any experiments whatsoever, since the error occurs during window creation.
This is the error:
Running: /home/daniel/Documents/PsychoPyTests/TypingDemo/typingDemo_lastrun.py
Traceback (most recent call last):
File "/home/daniel/Documents/PsychoPyTests/TypingDemo/typingDemo_lastrun.py", line 56, in <module>
blendMode='avg', useFBO=True)
File "/home/daniel/Documents/sourceCode/psychopy/psychopy/visual/window.py", line 340, in __init__
self._setupGL()
File "/home/daniel/Documents/sourceCode/psychopy/psychopy/visual/window.py", line 1593, in _setupGL
self._setupShaders()
File "/home/daniel/Documents/sourceCode/psychopy/psychopy/visual/window.py", line 1610, in _setupShaders
_shaders.vertSimple, _shaders.fragSignedColorTexFont)
File "/home/daniel/Documents/sourceCode/psychopy/psychopy/visual/shaders.py", line 58, in compileProgram
vertexSource, GL.GL_VERTEX_SHADER_ARB
File "/home/daniel/Documents/sourceCode/psychopy/psychopy/visual/shaders.py", line 51, in compileShader
raise ValueError, 'Shader compilation failed'
ValueError: Shader compilation failed
Exception AttributeError: "'Window' object has no attribute 'useNativeGamma'" in <bound method Window.__del__ of <psychopy.visual.window.Window object at 0x7f7a5a025f10>> ignored
I assume the second AttributeError is simply a result of the window never having been created properly and the real problem is this Shader compilation problem. I’m hoping you guys could help me figure out what the deal with this is since I literally can’t run anything.
Here’s some system information:
Psychopy: 1.84.2
System: Ubuntu 14.04
Graphics Card: Nvidia GeForce GT 650M
Graphics driver: nvidia 304.132
My best guess is some other package was updated that’s causing this problem? A ton of packages were updated for me this past Monday, notably, it looks like my graphics driver was updated, and there were some python updates as well. But yet, I know I ran some things the day after on Tuesday, so I don’t know what to make of that. I’m attaching a complete list of those updates here, just in case you can spot something else, sorry that it’s so long:
packages-Out.csv (20.1 KB)
Detailed description of the trace
Just to give more info than the trace shows, in _setupShaders() in window.py, the fail begins in the first call:
def _setupShaders(self):
self._progSignedTexFont = _shaders.compileProgram(_shaders.vertSimple, _shaders.fragSignedColorTexFont)
which takes us to shaders.py, compileProgram(), where at line 56:
if vertexSource:
vertexShader = compileShader(
vertexSource, GL.GL_VERTEX_SHADER_ARB
)
It calls the internal function compileShader() on line 32, and the error happens around line 48:
# check for errors
status = c_int()
GL.glGetShaderiv(shader, GL.GL_COMPILE_STATUS, byref(status))
if not status.value:
print_log(shader)
GL.glDeleteShader(shader)
raise ValueError, 'Shader compilation failed'
return shader
The value of ‘shader’ shown in the debugger was c_int(0), so status.value is 0.
I have no idea what any of this means, Any ideas where this could’ve gone wrong?
Hope you guys can help, let me know what further information I can provide. Take care,