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.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Experiment stuck on initialising on pavlovia | 7 | 996 | November 11, 2022 | |
| PsychoPy task will not run when synced to Pavlovia (stuck at initialising) | 36 | 445 | April 18, 2025 | |
| Experiment stuck on 'initialising experiment' on pavlovia | 1 | 434 | February 2, 2021 | |
| Experiment: stuck on 'initialising' and syntax errors | 7 | 547 | December 31, 2020 | |
| Stuck in initialising the experiment and cannot find the error | 2 | 551 | January 30, 2021 |