I’m a Master’s student and I can’t run an experience in psychopy because when I run it, it gives me an error.
######## Running: C:\Users\labch\Desktop\ultimato_quasefinal_lastrun.py ########
29.8031 INFO Loaded monitor calibration from [‘2020_02_04 13:11’]
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
3.8977 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use [‘sounddevice’, ‘pyo’, ‘pygame’] (in that order).
Traceback (most recent call last):
File “C:\Users\labch\Desktop\ultimato_quasefinal_lastrun.py”, line 72, in
units=‘height’)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\visual\window.py”, line 465, in init
self.backend = backends.getBackend(win=self, backendConf=backendConf)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\visual\backends_init_.py”, line 76, in getBackend
return Backend(win, *args, **kwargs)
TypeError: Can’t instantiate abstract class PygameBackend with abstract methods getMousePos, onMouseButton, onMouseButtonPress, onMouseButtonRelease, onMouseEnter, onMouseLeave, onMouseMove, onMouseScroll, setCurrent, setMouseCursor, setMouseExclusive, setMousePos
Exception ignored in: <bound method Window.del of <psychopy.visual.window.Window object at 0x0000020500197128>>
Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\visual\window.py”, line 616, in del
self.close()
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\visual\window.py”, line 2426, in close
self.backend.close() # moved here, dereferencing the window prevents
AttributeError: ‘NoneType’ object has no attribute ‘close’
Experiment ended.
Can anyone understand why it’s not working and help me?
Thank you.