psychopy.org | Reference | Downloads | Github

Online experiment "Unknown Resource" issue

#1

Hi,

I’ve just uploaded a simple stimulus-response task
URL of experiment:
https://pavlovia.org/run/Lin/MyTest2/
code:

Description of the problem:
It works fine on windows 10 (PsychoPy 3.0.5, 32-bit), yet when I try to run it online I encountered this:
image
It seems that imageSti can’t find image files. I’ve tried solutions from similar topics (putting all image files in the resources folder, making sure there is no SPACE after filename ,etc.)

Can’t figure out what causes the problem.

Any help will be greatly appreciated! Thank you!

Edit 4
It seems that no resource file was ever loaded as the progress bar was totally blank while showing “all resources downloaded”. This is driving me crazy. Don’t know what am I missing.

#2

I notice you do not have a html folder holding all of your files. That is usually created for you when Builder exports HTML and create the JS code. Have you manually changed the folder structure? I wonder if there is a problem finding the files due to the unusual directory structure.

Also, you may want to change how size is formatted in your conditions file. I believe that the x,y list will be read as a string, and therefore will not be interpreted correctly. You will be better off having separate x, y columns to represent your sizes, and then change sizes using those column variables in a list. E.g., you have two cols in your conditions file, sizeX and sizeY, and in your stim you set the size to update on every repeat, with the following entry: [sizeX, sizeY] .

#3

Hi @dvbridges , many thanks for your reply. I’ve tried to put all files in a html folder and it works fine now. Please forgive my stupidness😂 Also thank you for the additional tips on conditions file.

I did not sync the project in builder view. As my workplace network somehow keep blocking syncing to gitlab.pavlovia.org, I had to upload project files to github and then imported to gitlab. Clearly I did not upload them in html folder, which caused the problem.

Thanks again for your help!

#4

Hi There,

I am having a similiar problem on the pavlovia platform, however my error is with regards to the use of a .csv file for conditions.

Psychopy version - 3.07
Windows version - 10; 64 bit

Description of the problem :

I have designed a basic trial version of a change blindness flicker task that runs fine on my local Desktop. After uploading & activating on pavlovia to test functionality, the resources load accordingly and the experiment starts. On the first trial I am presented with the following error:

All the required file paths appear in GitLab

Conditions are used in the following way:

  1. Block Select.csv directs the experiment to pick one of four blocks
  2. trial select is used to randomly load individual trials

[see image below]

I have tried changing the file paths to include html\resources but this made no difference.

Any advice would be thoroughly appreciated!

Kind Regards,
Maxwell Murphy

#5

Hi @Max_Murphy, we added a fix for this in PsychoPy 3.1.0. I believe the problem relates to the use of backslash in the JavaScript to find your conditions file. Try changing the path manually to use ‘/’ in condition path in your loop.

#6

Thank you for the prompt reply, I’ll give that a shot, cheers!