Description of the problem:
I am getting the (seemingly common) error of “unknown resource”:
Unfortunately we encountered the following error:
when importing condition: Stimuli Sheets Auditory/APracticeStudy.xlsx
when getting the value of resource: Stimuli Sheets Auditory/APracticeStudy.xlsx
unknown resource
Try to run the experiment again. If the error persists, contact the experiment designer.
This is a simple Builder project with no code
I have tried the suggestions that have been made elsewhere - ensuring no spelling errors, not confusing / and \, and entering the resource in the Experiment Settings / Online - Additional Resources section (I have also entered the paths to the .wav files that are referred to by the spreadsheet). I have tried using a different path with spaces replaced by _ and still get the error
This experiment worked pre-pandemic. I recently updated Psychopy and now I consistently get the “unknown resource” error. I have tried restoring the old version of Psychopy from Time Machine, but still get the error
deleted everything (including hidden files) apart from the .psyexp file and the associated resources it needs (.xlsx, .wav etc) in the existing folder structure
started Psychopy and opened the new .psyexp
sent the experiment to Runner
ran the PsychoJS task in local debug mode - it failed. (First time no local server connection, subsequent I got shown a screen with the option of listing /lib)
ran the PsychoJS task from Pavlovia - nothing happened
went back to Builder and ran the study online (with Pavlovia). Got the “not piloting” error, so went to Pavlovia Dashboard and enabled Piloting and ran the Pilot on the new project
got the same “unknown resource” error as before
I went back to Builder and tried running locally again.I got the same “unknown resource” error as before
I am at a bit of a loss as to what to try next. Do you have any other suggestions?
I checked, and confirmed the Additional Resources contains all the .xlsx files and .wav files they refer to.
Here is the new project - AV1 [PsychoPy] in case that helps
It seems to have to do specifically with this part of the solution. I used to like the tidyness of having the HTML exports in a subfolder and in Oct 2020 this was no problem for Pavlovia yet.
If the output path is empty, no additional folder “resources” will be created by PsychoPy. Apparently, Pavlovia doesn’t look for the resources in the resources subfolder anymore?
I’m having the exact same problem mentioned in the thread, I followed all the tips and still pavlovia can’t find my experiment’s xlsx files.
I’ve tried countless times to delete the files and make new synchronizations, I even recreated the entire experiment through the builder, but nothing solves it.
None of the suggestions worked. My solution was to recreate the experiment from scratch using a more up-to-date version of Psychopy.
The components and settings were exactly the same as the previous ones, the only difference is that one was built on the 2020.1 version and the other on the 2022.2 version.
You need to keep files that you created, i.e the psyexp file, spreadsheets, images, audio files and video files. It’s probably safer to copy them to a clean folder if you aren’t sure, since then you can still access the old files if you forget one, and you won’t accidentally keep the hidden .git folder.