Hi all,
Using Psychopy v1.90.2 (running on Ubuntu 18.04) I am getting the following error message (below) when I attempt to run any code that involves a window (including the demos).
The ‘shapes.py’ demo briefly flashes two black windows and then I get this output:
Problem compiling: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/PsychoPy-1.90.2-
py2.7.egg/psychopy/demos/coder/stimuli/shapes.pyc.140084747607664'
##### Running: /usr/local/lib/python2.7/dist-packages/PsychoPy-1.90.2-
py2.7.egg/psychopy/demos/coder/stimuli/shapes.py #####
0.6906 WARNING Monitor specification not found. Creating a temporary one...
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/PsychoPy-1.90.2-
py2.7.egg/psychopy/demos/coder/stimuli/shapes.py", line 15, in <module>
win = visual.Window(size=(500, 400), units='height')
File "/usr/local/lib/python2.7/dist-packages/PsychoPy-1.90.2-py2.7.egg/psychopy/visual/window.py", line
375, in __init__
self.backend = backends.getBackend(win=self, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/PsychoPy-1.90.2-
py2.7.egg/psychopy/visual/backends/__init__.py", line 32, in getBackend
return Backend(win, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/PsychoPy-1.90.2-
py2.7.egg/psychopy/visual/backends/pygletbackend.py", line 227, in __init__
self._origGammaRamp = self.getGammaRamp()
File "/usr/local/lib/python2.7/dist-packages/PsychoPy-1.90.2-
py2.7.egg/psychopy/visual/backends/pygletbackend.py", line 326, in getGammaRamp
return getGammaRamp(self.screenID, self.xDisplay)
File "/usr/local/lib/python2.7/dist-packages/PsychoPy-1.90.2-
py2.7.egg/psychopy/visual/backends/gamma.py", line 120, in getGammaRamp
rampSize = getGammaRampSize(screenID, xDisplay=xDisplay)
File "/usr/local/lib/python2.7/dist-packages/PsychoPy-1.90.2-
py2.7.egg/psychopy/visual/backends/gamma.py", line 285, in getGammaRampSize
raise RuntimeError("Gamma ramp size is reported as 0.")
RuntimeError: Gamma ramp size is reported as 0.
Exception AttributeError: "'NoneType' object has no attribute 'close'" in <bound method Window.__del__ of
<psychopy.visual.window.Window object at 0x7f2ad5155990>> ignored
I get the following message when I try and run the Gamma Calibration from the Monitor Center:
Exception AttributeError: "'NoneType' object has no attribute 'close'" in <bound method Window.__del__ of
<psychopy.visual.window.Window object at 0x7f2ad5155990>> ignored
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/PsychoPy-1.90.2-
py2.7.egg/psychopy/monitors/MonitorCenter.py", line 817, in onCalibGammaBtn
screen=screen)
File "/usr/local/lib/python2.7/dist-packages/PsychoPy-1.90.2-py2.7.egg/psychopy/monitors/calibTools.py",line 955, in getLumSeries
bitsMode=bitsMode, screen=screen)
File "/usr/local/lib/python2.7/dist-packages/PsychoPy-1.90.2-py2.7.egg/psychopy/visual/window.py", line
375, in __init__
self.backend = backends.getBackend(win=self, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/PsychoPy-1.90.2-
py2.7.egg/psychopy/visual/backends/__init__.py", line 32, in getBackend
return Backend(win, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/PsychoPy-1.90.2-
py2.7.egg/psychopy/visual/backends/pygletbackend.py", line 227, in __init__
self._origGammaRamp = self.getGammaRamp()
File "/usr/local/lib/python2.7/dist-packages/PsychoPy-1.90.2-
py2.7.egg/psychopy/visual/backends/pygletbackend.py", line 326, in getGammaRamp
return getGammaRamp(self.screenID, self.xDisplay)
File "/usr/local/lib/python2.7/dist-packages/PsychoPy-1.90.2-
py2.7.egg/psychopy/visual/backends/gamma.py", line 120, in getGammaRamp
rampSize = getGammaRampSize(screenID, xDisplay=xDisplay)
File "/usr/local/lib/python2.7/dist-packages/PsychoPy-1.90.2-
py2.7.egg/psychopy/visual/backends/gamma.py", line 285, in getGammaRampSize
raise RuntimeError("Gamma ramp size is reported as 0.")
RuntimeError: Gamma ramp size is reported as 0.
For the Gamma Calibration the black window just hangs there and doesn’t close.
Any ideas? I read that it may be to do with my graphics card drivers. I reinstalled them but the issue remains.
Cheers,
Jon