Description of the problem:
I have programmed my experiment using psychopy builder. When I try to sync it with Pavlovia I get the following error:
Traceback (most recent call last):
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py”, line 1221, in onPavloviaSync
self.fileExport(htmlPath=htmlPath)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py”, line 719, in fileExport
target=“PsychoJS”)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 73, in generateScript
compileScript(infile=exp, version=None, outfile=filename)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 242, in compileScript
_makeTarget(thisExp, outfile, targetOutput)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 214, in _makeTarget
script = thisExp.writeScript(outfile, target=targetOutput, modular=True)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment_experiment.py”, line 251, in writeScript
self_copy._currentRoutine.writeRoutineBeginCodeJS(script, modular)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment\routine.py”, line 277, in writeRoutineBeginCodeJS
thisCompon.writeRoutineStartCodeJS(buff)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment\components_base.py”, line 202, in writeRoutineStartCodeJS
self.writeParamUpdatesJS(buff, ‘set every repeat’)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment\components_base.py”, line 405, in writeParamUpdatesJS
target=“PsychoJS”)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment\components_base.py”, line 399, in writeParamUpdates
target=target)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment\components_base.py”, line 435, in writeParamUpdate
valStr = str(val).strip()
TypeError: str returned non-string (type NoneType)
Could someone please help me with the problem?
Thank you!