TypeError: Cannot read properties of undefined (reading 'src')

URL of an experiment: IOR [PsychoPy]

Description of the problem: The error occurs when running through trials of the experiment. After a certain amount of variable responses, the TypeError: Cannot read properties of undefined (reading ‘src’) error occurs. In some conditions, the error only appears after 2-3 trials while other conditions take up to 30 trials for the error to occur. Any help would be great. I have limited coding experience so this is daunting

If an error occurs after a random number of trials then there is probably either a blank row at the bottom of your spreadsheet, or a space in one of the cells of your image filename column.

You are a lifesaver!! thank you for your help

You’re welcome. Which was it?

It was the blank excel file, would have never known!

1 Like