Hi @jon
The code worked fine till the time I received a security update on my Windows 11 machine. Since then it seems to be running into the same problem all over again. I am not sure if the security update has messed up the working of the Psychopy package because the code was running fine till I updated the system. Do you have any suggestions that I could try?
UPDATE
I rolled back the update. The problem still persists.