| Reference | Downloads | Github

Conditions file not imported properly online

URL of experiment:

Description of the problem:
My file HighAmounts_reward.xlsx is not being imported properly online: psychojs seems to think there are no columns, when in fact there is one called “highAmount”. The console says
import attributes from: {}
where I would expect something like
import attributes from: {"highAmount":1.5}
I then receive an error resulting from the fact that the variable highAmount is undefined.

All other conditions files seem to be importing properly. This one imports properly when run locally in Python. Any idea how I can fix this?

Hi @djangraw, I have downloaded your task and ran this on PsychoPy 3.2.3 and the attributes are imported correctly, but there does seem to be an issue with 3.1.2 if you are selecting a single row from a single column in the conditions file. I think, as this has been fixed, you should rerun your study in a recent version of PsychoPy. You can either download the new version, or go to Experiment Settings, and select a newer version from the “Use version” tab, recompile your HTML and JS and resync with Pavlovia. Then,. refresh the browser cache just to make sure the old versions of the script are gone.

I’m having the same issue with a new version of the experiment, and this is after I updated to PsychoPy version 3.2.4, and after I tried adding a second “dummy column”. The issue comes up in the second half of the task (but I’ve made the first half very short for piloting). This is very frustrating!

Here are the links:

Update: I’ve managed to sidestep the issue by setting the number of trials per block to >1 (this will be the case for the final version anyway), but the issue is not resolved.