OS: Win11
PsychoPy version: 2025.2.4beta
Hi everyone,
I’m using a code chunk at the beginning of the experiment to load a stimulus list (as an xlsx file) corresponding to the participant number using the following Python code:
path = f"lists/lists_participant{expInfo[‘participant’]}.xlsx"
Within the main loop, I pass $path as the conditions file and it works just fine locally. However, when I pilot the experiment in the browser, the following error message appears:
- when importing condition: lists/lists_participant1.xlsx
- when getting the value of resource: lists/lists_participant1.xlsx
- unknown resource
This indicates that it cannot find the file, even though my project is synced with Pavlovia and I can see the folder “lists” containing the correct file on GitLab.
The automatically generated JavaScript code also seems fine since the error message displays the correct path, but it can’t find the file for some reason. The translated code is:
path = lists/lists_participant${expInfo["participant"]}.xlsx;
I tried running the experiment instead of just piloting it, but that gave me the same error. Does someone know how I could fix this?
Thanks!