OS : macOS Monterey v. 12.1
PsychoPy version : v2022.1.1
Standard Standalone? (y/n) If not then what?:y
What are you trying to achieve?: I recently got a new computer, downloaded the newest version of PsychoPy, and tried to run an experiment that worked on the previous version of PsychoPy (v2021.2.3). When I ran my experiment, it would start normally asking for the participant and session which I would enter. It switched to the grey starting screen like normal but would then crash, and in the Runner I saw two identical alerts - Alert 4210: JavaScript Syntax Error in âBegin JS Experimentâ tab. See âLine 1: Unexpected tokenâ in the âBegin JS Experimentâ tab - without any other Alerts or Errors.
What did you try to fix it?: I checked all my code added through the Builder to make sure there werenât any syntax errors in the Python code that would prevent the automatic JavaScript code generation and there was nothing. I did some digging on this alert and saw in several places that the issue was import statements, specifically import random. But, even after removing the import random line and its associated code, I still get this alert, and I assume it is for my other import statements which are âimport pandas as pdâ and âimport csvâ.
I went back to my old computer to check and make sure the experiment was working in the previous version with all the import statements and it ran without any issue. So, at this point Iâm wondering if I should just reinstall the older version of PyschoPy that works for my experiment.