psychopy.org | Reference | Downloads | Github

Problem with uploading images on pavlovia

Hello, I uploaded an experiment to pavlovia that includes one image. The image is displayed perfectly fine locally, but when trying to run the experiment online, I get the following error message:

Unfortunately we encountered the following error:

  • when setting the image of ImageStim: image_2
  • when getting the value of resource: hungarian.png
  • unknown resource

Try to run the experiment again. If the error persists, contact the experiment designer.

I checked whether the image has been uploaded correctly on pavlovia and I also checked out whether it is in the right directory. I tried to use both, jpg and png files and tried to access the image either directly (by writing “hungarian.png” - the name of the image) and with a variable in code. But none of the above seem to work. What am I doing wrong?

Of note, I used to have the same experiment in an earlier version of psychopy (2020), where everything worked perfectly fine and just recently updated to the latest version (2021).

This seems like the same issue: 2021.2.3 Bug: Resources not loading.

1 Like

Thank you for the hint! I installed a previous version of Psychopy (2021.1.1), ran the experiment there again and it works perfectly now!