OS (e.g. Win10): win10
PsychoPy version (e.g. 1.84.x): v2021.2.3
Hi,
I have created an experiment using the latest version of PsychoPy and it works well when I run it with builder. However, when I upload this program on pavlovia it gives me the error below. Help me plz
Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\experiment\components\keyboard_init_.py”, line 383, in writeFrameCodeJS
keyList = eval(allowedKeys)
File “”, line 1
$blankquestion_answer
^
SyntaxError: invalid syntax
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\builder.py”, line 1344, in onPavloviaSync
self.fileExport(htmlPath=htmlPath)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\builder.py”, line 793, in fileExport
target=“PsychoJS”)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 74, in generateScript
compileScript(infile=exp, version=None, outfile=filename)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 247, in compileScript
_makeTarget(thisExp, outfile, targetOutput)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 219, in _makeTarget
script = thisExp.writeScript(outfile, target=targetOutput, modular=True)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\experiment_experiment.py”, line 293, in writeScript
self_copy.currentRoutine.writeEachFrameCodeJS(script, modular)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\experiment\routines_base.py”, line 531, in writeEachFrameCodeJS
comp.writeFrameCodeJS(buff)
File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\experiment\components\keyboard_init.py", line 386, in writeFrameCodeJS
self.params[“name”], “Allowed keys list is invalid.”)
psychopy.experiment.utils.CodeGenerationException: resp_2: