psychopy.org | Reference | Downloads | Github

Beginner help: AttributeError, basic programs will not run

OS (e.g. Win10): Windows 7
PsychoPy version (e.g. 1.84.x): 1.90.2
Standard Standalone? (y/n) If not then what?: Y (python 3 compatible version)
What are you trying to achieve?: Run a basic print program

What did you try to make it work?: Typed in a text message and ran the program

What specifically went wrong when you tried that?: Entered participant number, but program window did not open - received error message

Running: C:\Users\Kirstan\Desktop\Python\PsychoPy Practice\untitled_lastrun.py
Traceback (most recent call last):
File “C:\Program Files\PsychoPy2_PY3\lib\site-packages\psychopy\visual\backends\pygletbackend.py”, line 131, in init
style=style)
File “C:\Program Files\PsychoPy2_PY3\lib\site-packages\pyglet\window\win32_init_.py”, line 134, in init
super(Win32Window, self).init(*args, **kwargs)
File “C:\Program Files\PsychoPy2_PY3\lib\site-packages\pyglet\window_init_.py”, line 571, in init
self.create()
File "C:\Program Files\PsychoPy2_PY3\lib\site-packages\pyglet\window\win32_init
.py", line 266, in _create
self.context.attach(self.canvas)
File “C:\Program Files\PsychoPy2_PY3\lib\site-packages\pyglet\gl\win32.py”, line 212, in attach
raise gl.ContextException(‘Unable to share contexts’)
pyglet.gl.ContextException: Unable to share contexts

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “C:\Users\Kirstan\Desktop\Python\PsychoPy Practice\untitled_lastrun.py”, line 59, in
blendMode=‘avg’, useFBO=True)
File “C:\Program Files\PsychoPy2_PY3\lib\site-packages\psychopy\visual\window.py”, line 375, in init
self.backend = backends.getBackend(win=self, *args, **kwargs)
File “C:\Program Files\PsychoPy2_PY3\lib\site-packages\psychopy\visual\backends_init_.py”, line 32, in getBackend
return Backend(win, *args, **kwargs)
File “C:\Program Files\PsychoPy2_PY3\lib\site-packages\psychopy\visual\backends\pygletbackend.py”, line 138, in init
fullscreen=self._isFullScr,
AttributeError: ‘PygletBackend’ object has no attribute ‘_isFullScr’
Exception ignored in: <bound method Window.del of <psychopy.visual.window.Window object at 0x0B1CE790>>
Traceback (most recent call last):
File “C:\Program Files\PsychoPy2_PY3\lib\site-packages\psychopy\visual\window.py”, line 478, in del
self.close()
File “C:\Program Files\PsychoPy2_PY3\lib\site-packages\psychopy\visual\window.py”, line 1124, in close
self.backend.close() # moved here, dereferencing the window prevents
AttributeError: ‘NoneType’ object has no attribute ‘close’