URL of experiment:
Description of the problem:
When i try to run my experiment online i get the error below, what does it mean?
URL of experiment:
Description of the problem:
When i try to run my experiment online i get the error below, what does it mean?
Hello,
You should be using relative paths, not absolute (local) paths.
Instead of typing the full path:
C:/Users/Administrator/Documents/Yana's Experiment/Experiment 2/echt experiment 2.xlsx
Try:
echt experiment 2.xlsx
Think about it this way; you declare your loop through a local file (C:/Users/Administrator/Documents/Yana’s Experiment/Experiment 2/echt experiment 2.xlsx). But the participants don’t have access to your local files; they have access to the project in Pavlovia. Therefore, the file should be defined in relation to the location of your remote project.
So if your spreadsheet is located inside a folder, you will use: Folder_Name/spreadsheet.xlsx
.
If your spreadsheet is located at the first level of the folder structure, like you probably have here, you will define it as spreadsheet.xlsx
.
Chen
Hi Chen,
Thank you so much for your quick response! I am however very new to psychopy and don’t really understand what you mean. Where can i change my path? I used the builder and don’t remember having to type it anywhere.
Yana
Hello,
PsychoPy will use an absolute path if you add a condition file before you have saved your experiment. Simply re-specify the condition file. This should change the absolute path to a relative one. The condition file should be saved in the same folder or a subfolder of your experiment folder.
The absolute path ```C:/Users/Administrator/Documents/Yana’s Experiment/Experiment 2/echt experiment 2.xlsx`` does not work online, because online there is no drive C: with the folders Users/Administrator/Documents/Yana’s Experiment/. Everything is relative to your experiment folder.
Try to avoid spaces and other specical characters, e.g. ', in file and folder names. Different operating systems allow different character sests in file and folder names.
Best wishes Jens
Hi Jens,
Thank you for your help! I re-specified the condition file and saved my experiment. I made sure to then sync it with my web project. I am now however stuck on the initializing screen whenever i try to pilot the experiment. Is there any way to change that?
Kind Regards,
Yana
Hello,
Can you please share the error you received?
You should be able to view the error through the console.
Chen
Hi Chen,
Thank you so much for your help already! This is a picture of the errors I received.
Kind regards,
Yana
Hello,
Can you please share the experiment? It is somehow difficult to understand without seeing it myself/asking many more questions.
Chen
Hello
besides using absolute paths, which does not work online. Pavolvia does not “know” which resource to load. What is your condition file like?
Best wishes Jens
sure! This is the link to my experiment: Pavlovia
Is that enough? Or do I need to do something else?
Kind regards,
Yana
Your experiment is set to private.
Chen
So sorry! I set it to public now. Thanks again for helping me out!
Kind regards,
Yana
Hello
I forked your experiment and it ran with an error message, locally in a browser and online in a browser. I ran the experiment the first couple of trials. Did you clear the brower’s cache between experiment versions or ran the experiment in a private tab?
Best wishes Jens
Hi Jens
I tried to run it again now and it works! I haven’t changed anything since last time though so not sure what ended up being the solution. Thank you so much for taking your time to take a look at my experiment! I can now finally get on with collecting data.
Kind regards,
Yana