I noticed that psychopy v2021.1.4 does not produce the .py files properly when a routine has a Code Type “JS” with some code that looks like:
The python file generated has code that looks like:
start_3Clock = core.Clock()
shuffle = util.shuffle;
This is clearly incorrect since the python file should not contain anything from the “JS” code type that isn’t converted properly in python syntax.
I suspect that the problem may also exist in the creation of .js version of the file.
The outcome is that the file does not run online properly and is stuck in “initializing the experiment” when the python versions of the file is basic.
This is the version of psychopy that I am on currently: