If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): Win11 PsychoPy version (e.g. 2024.2.4 Py 3.8): 2026.1.2 Standard Standalone Installation? (y/n) If not then what?: y URL of experiment:Pavlovia (agarciapenagos1/rcrage_v1) Do you want it to also run locally? (y/n) n What are you trying to achieve?: The task is stuck on initializing.
What did you try to make it work?: Error in developer tools is: Uncaught SyntaxError: unexpected garbage after module, starting with ‘}’ I have checked my code in builder and I am unable to find where I might be having an extra or missing bracket.
What specifically went wrong when you tried that?:
The error has persisted, with the same error found in developer tools. I’ve tried to remake the code, but I still continue running across the same problem. I would really appreciate any help
It is a little bit difficult to pinpoint the error becuase it is a rather complex long experiment and you use same code-components that are set to both. Also, you seem to manipulate sound-componentes via code and via the builder. This may cause/create a conflict. Also, some of your sound-components do not have a start-time or start-condition. Perhaps this causes the problem?
I suspect that you have unbalanced brackets in codeDiamonds (trial). If import random is the only reason that code component is set to “Both” you could move that line to a dedicated Both/Python code component.