Problem with image file for pavlovia

Ah, right. Thanks, David. I (obviously) didn’t know that. Will try it and report back. :upside_down_face:

Great, yes its a relatively new thing, and also something to look out for when using auto-translate, because auto-translate will use your loop name rather than trials, which is also an issue on GitHub that will soon be addressed.

Thanks again, David. Just wanted to report back and confirm that this (using trials.finished = true; instead of the actual loop name) worked.

Another sidenote: is there a difference between how Python and JS would present text in terms of orientation and spacing? More specifically, does JS ignore spaces when there are no characters after them? I ask because text ">> " (spaces included) is displaying differently via PsychoPy than via pavlovia.

Hey there! going through a similar issue as fffrost; it runs until the first image is required at which point it says: “when setting the mask of ImageStim: practice_prime / when getting the value of resource: none / unknown resource / try to run the experiment again. if the error persists, contact the experiment designer”. In my case as well, Pavlovia has perfectly recreated my image directories in the “repository” tab, so I don’t know why the images aren’t showing up. Just in case, I thought I should mention that the names of my images are linked only relatively in my excel spreadsheets, BUT I did insert those links by clicking Insert>Link to the image on my desktop, which might mean that the link itself is desk-top dependant? If I remove the actual link and keep the typing, however, it won’t work on my desktop builder anymore but will it work on Pavlovia?

Thanks for your time!

Hi, I am also getting the same error error

I have updated the psychopy experiment so it says Fixation-+.jpg rather than the pathway, it runs fine in psychopy but I get the attached error on pavlovia. I have sync the changes a couple of times now, I have probably missed something, I am a new user!

Any help appreciated,
Hardeep

Have you found a solution to this problem? I am encountering the same exact problem and I am at a loss here…

I face a similar problem when trying to pilot my experiment online. I receive the following message:

Unfortunately we encountered the following error:

  • when downloading the resources for experiment: VisualSearchTask
  • unable to download resource: …/3targets.png (FILE_LOAD_ERROR)

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

And I have noticed from the coder view of my experiment that I define the image as:

image=’/Users/veronika/Documents/Psychopy/psychopy/Visual_Search_Task/3targets.png’

But how can I avoid doing that given that in the builder view when I put the image stimuli, I choose it form the my computer? The path there appears automatically. How can I set my image to have a path relative to the experiment? Do I do that from builder or coder view?

Thank you

Do that by putting the image file in the same folder as your experiment and then checking the path in Builder.

Do the changes I make in the builder get automatically changed to the pavlovia/github code or do i have to sync the experiment again from the builder?

You have to sync

Hi, I am having the same problem and hoped somebody might be able to help? The image path is relative to the experiment file as can be seen here:
image

Change the \ into a /

Ah nice easy fix, thank you!