| Reference | Downloads | Github

KeyError when loading experiment in Builder

Hi all,

I’m very new to PsychoPy, appreciate any help and suggestions! PsychoPy doesn’t seems to be loading all my routines when I open my experiment. All show up in the tabs but only half show up in the flow window.

Failed to load C:\Users\Liz\Desktop\Chocolate\ChocPsychopy\Chocolate.psyexp. Please send the following to the PsychoPy user list
Traceback (most recent call last):
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.0-py2.7.egg\psychopy\app\builder\”, line 1473, in fileOpen
File “C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy-1.84.0-py2.7.egg\psychopy\app\builder\”, line 596, in loadFromXML
KeyError: ‘MaximalContractions’

If my memory serves me correctly, I deleted the “MaximalContractions” object a while ago.

I’m afraid this probably is caused by a problem with StaticPeriods that I’ve not got round to fixing. It turns out that you can delete a static period while a stimulus (e.g. an image component) was using it for updates. The result is that component gets upset and PsychoPy falls over.

We can fix this in the psyexp file if you send it here. It’s just a raw text file that we can edit in a (decent) text editor and remove the reference to the missing Static Component.

Sorry this one bit you - definitely our bug