URL of experiment: Sign in · GitLab
Description of the problem: Failure to find resource during initialisation
I am trying to debug an online experiment locally but no matter how I structure my folder the JS file cannot find the relevant resources. My directory structure in PsychoPy is the following:
The folders in stims I have to copy manually to the resources folder since they are loaded by code components, but the info folder gets copied to resources automatically. Yet when I run the debug it fails to find it since it is looking for them in
info/image instead of
I tried modifying the directory structure but it still fails and even changing the code in the JS (to look for the images in
resources/info/image fails with the same error message but with the new path.
It’s also odd that I need to copy the images/files again into the html folder for no reason. Can’t the JS version just look for things in the same place as the Python version?
Any ideas on how to solve this?
EDIT 1: The code I am working on is the pilot branch of the project. I have resisted merging on to master until it actually works.