**OS: Win10
**PsychoPy version: 2020.2.4
**Standard Standalone? y
**What are you trying to achieve?:
I want to run an experiment online. I used an experiment on Pavlovia as a template to develop my own experiment. I cloned the experiment onto my machine, made changed and then encountered problems when attempting to push it onto Pavlovia (please see the error the message below). The problem seems to be with generating JS code. The experiment runs fine in psychoPy, and I can push the experiment itself onto gitlab/ Pavlovia without a problem (e.g. using the sync command under the Pavlovia.org menu).
What did you try to make it work?:
I tried different ways of syncing. I first tried I tied it using the ‘Sync with web project’ button, which gave me the error below. I then tried syncing using the sync command under the Pavlovia.org menu - which worked fine - and then using “Export HTML”, at which point I got the same error message (below). I also tried using the Runner to “Run PsyhoJS task from Pavlovia” just for good measure, but of course, this doesn’t work because there is no HTML code to run. The html folder in the experiment directly is empty.
What specifically went wrong when you tried that?:
I get the following error message: PsychoPy encountered an unhandled internal error! Please send the report under “Details” to the developers with a description of what you were doing with the software when the error occurred.
Details:
Traceback (most recent call last):
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 212, in writeScript
localDateTime, modular)
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment\components\settings_init.py", line 527, in writeInitCodeJS
self.prepareResourcesJS()
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment\components\settings_init.py", line 515, in prepareResourcesJS
resourceFiles = self.exp.getResourceFiles()
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment_experiment.py”, line 830, in getResourceFiles
condsPaths = findPathsInFile(params[‘conditionsFile’].val)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment_experiment.py”, line 818, in findPathsInFile
for thisFile in findPathsInFile(val):
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment_experiment.py”, line 782, in findPathsInFile
filePath = eval(filePath)
File “”, line 0
^
SyntaxError: unexpected EOF while parsing
Thank you