Hi everybody,
I think psychoPy and Pavlovia are tricking me this morning. I’ll try to be as concise as possible: coding exp using builder and some code components. I’ve been able to push it online since some days ago (although I successfully added some form components - thank to @wakecarter - which I thought would be a problem).
Now, since a couple of days when I made changes (or don’t) and try to push it online this fatal error occurs (see below). The var I call myRangeFile is used to select a specific number on every trial according to a staircase (i.e. $‘ref15_N’+myRangeFile+’.xlsx’ , it goes and look for the specific xlsx files that are called lets say ref15_N6.xlsx and so on). Ofc I created in the before exp tab a var called myRangeFile on both python and js.
I’ve tried so many things… like starting a new program from scratch, deleting stuff, adding stuff, looking on the internet and crying mostly.
nb the program works on psychopy (if I get rid of the js code components for the forms) but when I push it online this happens:
Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py”, line 829, in findPathsInFile
File “”, line 1, in
NameError: name ‘myRangeFile’ is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/builder/builder.py”, line 1339, in onPavloviaRun
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/builder/builder.py”, line 759, in fileExport
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py”, line 73, in generateScript
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py”, line 242, in compileScript
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py”, line 214, in _makeTarget
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py”, line 229, in writeScript
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/flow.py”, line 289, in writeFlowSchedulerJS
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py”, line 877, in getResourceFiles
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py”, line 843, in findPathsInFile
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py”, line 860, in findPathsInFile
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/data/utils.py”, line 417, in importConditions
IndexError: list index out of range
I’d really really appreciate your help @jon @Becca @wakecarter