PsychoPy v2020.2.8, running on MacOS big sur v11.1. Pavlovia run from Google Chrome v87.0.4280.141 (x86_64)
Hello all,
I am continuing to set up my experiment on builder and syncing it every now and then to pavlovia to make sure that it pilots on there as well. I’ve run into a problem that is leaving me rather dumbfounded.
My setup is as such. I have first an instruction routine where a jpg of the instructions is presented (semanticGo), then an experimental routine that loops over a csv (semanticExp). There are 2 versions of each (v1.jpg, v2.jpg, and v1.csv, v2.csv). Odd numbered participants should get the first one, even numbered should get the other. Sounds simple enough, right?
My first solution (didn’t work):
I added a field to expInfo “SEMVERS” with the default value “v1”. For odd participants I will manually enter v1 and for even numbered participants v2. I call upon this information for the instruction routine, then again in the Conditions field for the exp routine.
Locally, it works great. As soon as I put it online I get the error:
This is frustrating because I have done the exact same thing earlier on in the experiment (calling upon an expInfo condition in the ‘conditions field’) and it works great both online and locally. I’ve tripled checked that the files have been synced properly, that the cache has been cleared before running the experiment, and that a copy of the materials are in the path html/resources.
Second attempted solution (didn’t work):
I removed the newly added expInfo field mentioned above and instead added a code component in the “begin routine” part of the instructions routine, written in JS. I then call upon this item in my imageStim “$semGroup”. Now, the experiment doesn’t even run locally, and much less online! (It works locally with the same code in python by the way, just not with javascript). I tried changing the Image field from constant to set every repeat and that doesn’t change anything either.
The error:
NameError: name 'semGroup' is not defined
I am truly so frustrated because I feel that this should be so simple yet I am struggling so much. Does anyone have any ideas?? I’d appreciate it so much.