Experiment gray screen / crashing

Hi all,

I am trying to run a Python script for a reverse correlation experiment in PsychoPy. When I try to run the code, I get as far as inputting a participant number and get a few seconds of gray screen before the experiment ends (rather than seeing pairs of facial stimuli, as is supposed to happen.) I am getting the error message:
AttributeError: ‘NoneType’ object has no attribute ‘MainLoop’

Here is the troubleshooting I have tried so far:

— restarted computer
— using ChatGPT
— updated to most recent version of psycho py
— tried to run the program on a different laptop (same result)
— made sure stimuli and data folders were in the correct place
— changed privacy / security settings (input monitoring for PsychoPy and terminal on, accessibility on)
— changed keyboard backend (under input) from ioHub to PsychToolbox

I am very inexperienced with PsychoPy, so if any additional information is needed to provide context that I haven’t though to add here I am happy to provide it. Thanks in advance for helping a struggling undergrad with their thesis!

Hello,
Can you please provide us with your experiment? Do you know which routine/component causes the error?
Right now, there is not way for us to understand what causes the problem.

Chen