Description of the problem:
Hello,
My experiment works well offline in my PsychoPy Builder on my Windows machine. But it does not work online when I test it in Pilot.
It gives me this error:
Hi, thanks for your reply. No I did not. the thing is that it was working for my first pilot. I changed some parts of the experiment, but they are not related to the directory or pathes.
I think the issue is just that you’ve referred to the path as ./train/02 - map.png
which then maps onto a url like https://run.pavlovia.org/user/study/./train/02 - map.png
(note the dot in the middle). That won’t make sense in a browser.
In PsychoPy/Python the path is going to be treated as relative anyway, so you don’t need or want the unix-style ./ at the beginning.
On top of that definite issue, I don’t know what will happen to your filename given the spaces. That’s also something that could end up causing trouble - URLs can’t have spaces and I don’t know whether these will be intelligently converted to the internet space character ("%20"). They might be OK but they might not
Hi,
Thanks for your reply.
I removed dots and spaces in the relative paths and push the new file into gitlab. But, when I run the experiment pilot, it still uses the last version. So I cannot check whether the issue was fixed or not. I also signed out and signed in again, and even checked with a different browser, but pilot runner still uses the previous version of paths. Is there a way to delete the pilot/run experiment cash or force it to use last version of data in the gitlab?
Possibly it’s just cached in the browser. Try forcing a reload of the whole page with Shift-R. Pages (and their associated javascript) are typically cached and re-used.
To fix the cash issue, simple tricks did not work. So, I had to transport my project to a new repo. Now it works. I defined the relative paths like this: maps/test/image.png
Without dot and / in the beginning.