| 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\
Traceback (most recent call last):
File “C:\Program Files\PsychoPy2_PY3\lib\site-packages\psychopy\visual\backends\”, line 131, in init
File “C:\Program Files\PsychoPy2_PY3\lib\site-packages\pyglet\window\”, line 134, in init
super(Win32Window, self).init(*args, **kwargs)
File “C:\Program Files\PsychoPy2_PY3\lib\site-packages\pyglet\”, line 571, in init
File "C:\Program Files\PsychoPy2_PY3\lib\site-packages\pyglet\window\win32_init
.py", line 266, in _create
File “C:\Program Files\PsychoPy2_PY3\lib\site-packages\pyglet\gl\”, line 212, in attach
raise gl.ContextException(‘Unable to share contexts’) 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\”, line 59, in
blendMode=‘avg’, useFBO=True)
File “C:\Program Files\PsychoPy2_PY3\lib\site-packages\psychopy\visual\”, line 375, in init
self.backend = backends.getBackend(win=self, *args, **kwargs)
File “C:\Program Files\PsychoPy2_PY3\lib\site-packages\psychopy\visual\”, line 32, in getBackend
return Backend(win, *args, **kwargs)
File “C:\Program Files\PsychoPy2_PY3\lib\site-packages\psychopy\visual\backends\”, line 138, in init
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\”, line 478, in del
File “C:\Program Files\PsychoPy2_PY3\lib\site-packages\psychopy\visual\”, line 1124, in close
self.backend.close() # moved here, dereferencing the window prevents
AttributeError: ‘NoneType’ object has no attribute ‘close’