Hi @JensBoelte ,
while your solution works perfektly within the builder, I have a problem when I try to synchronize it with Pavlovia…
I get the following error:
Traceback (most recent call last):
File “c:\users\eplog\anaconda3\lib\site-packages\psychopy\experiment_experiment.py”, line 829, in findPathsInFile
filePath = eval(filePath)
File “”, line 1, in
NameError: name ‘expInfo’ is not defined
As soon as I remove the conditions line ($‘group’+expInfo[‘Gruppe’]+’.csv’), the synchronization works again… Do you have an idea what to do about it?
Thanks again for your help!
Elani
Update:
Hi,
thanks again for the quick reply. I tried it again after adding the csv files under Experiement Settings - Online - additional resources, but I still have the problem…
This is the complete error that occurs:
Traceback (most recent call last):
File “c:\users\eplog\anaconda3\lib\site-packages\psychopy\experiment_experiment.py”, line 829, in findPathsInFile
filePath = eval(filePath)
File “”, line 1, in
NameError: name ‘expInfo’ is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “c:\users\eplog\anaconda3\lib\site-packages\psychopy\app\builder\builder.py”, line 1320, in onPavloviaSync
self.fileExport(htmlPath=htmlPath)
File “c:\users\eplog\anaconda3\lib\site-packages\psychopy\app\builder\builder.py”, line 757, in fileExport
self.generateScript(experimentPath=exportPath,
File “c:\users\eplog\anaconda3\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 73, in generateScript
compileScript(infile=exp, version=None, outfile=filename)
File “c:\users\eplog\anaconda3\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 242, in compileScript
_makeTarget(thisExp, outfile, targetOutput)
File “c:\users\eplog\anaconda3\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 214, in _makeTarget
script = thisExp.writeScript(outfile, target=targetOutput, modular=True)
File “c:\users\eplog\anaconda3\lib\site-packages\psychopy\experiment_experiment.py”, line 229, in writeScript
self_copy.flow.writeFlowSchedulerJS(script)
File “c:\users\eplog\anaconda3\lib\site-packages\psychopy\experiment\flow.py”, line 289, in writeFlowSchedulerJS
resourceFiles = set([resource[‘rel’].replace("\", “/”) for resource in self.exp.getResourceFiles()])
File “c:\users\eplog\anaconda3\lib\site-packages\psychopy\experiment_experiment.py”, line 877, in getResourceFiles
condsPaths = findPathsInFile(params[‘conditionsFile’].val)
File “c:\users\eplog\anaconda3\lib\site-packages\psychopy\experiment_experiment.py”, line 843, in findPathsInFile
files.extend(findPathsInFile(str(condFile)))
File “c:\users\eplog\anaconda3\lib\site-packages\psychopy\experiment_experiment.py”, line 860, in findPathsInFile
conds = data.importConditions(thisFile[‘abs’]) # load the abs path
File “c:\users\eplog\anaconda3\lib\site-packages\psychopy\data\utils.py”, line 417, in importConditions
fieldName = fieldNames[colN]
IndexError: list index out of range
Thank you for your help!