I have made an experiment in PsychoPy3 including Python codes and need to run it online.
However, I just can see white screen after run this experiment on Pavlovia.
I really wanna know what caused this problem, and I’d really appreciate it if you could help me solve it.
Hi,
The link to your Gitlab doesn’t work, but the experiment link does work. From what I can see (the white screen), it looks like your resources aren’t loading correctly. I can’t tell you exactly why because I can’t see your code, but I’m guessing it may have something to do with the JS script not compiling correctly or you have something in the ‘Begin Experiment’ tab of a code component that it doesn’t like.
You can open the Inspector on your browser to see these errors. In Chrome, you can do this with Ctrl + Shift + I
@Hugh the first problem I notice is that there is no html folder in your experiment and therefore no JS code. Therefore, there is nothing in your experiment folder that is able to be run online.
Did you manually create the Git repo or did you use the ‘Sync with web project’ button in Pavlovia? If you did the second, it should automatically create everything for you.
Hi @Hugh, sorry for the delayed reply. So far I haven’t been able to come up with anything definitive, but my first guess would be it has something to do with your initial instruction loop. If you delete this loop (and everything in it) and re-upload your experiment and try running again, does it work (or at least start)? If so, your problem lies within this loop.
I removed the html folder since that is no longer needed (for reasons explained here See this post for more information.
The code in your ‘code_set01’ code component from ‘before experiment’ to ‘begin experiment’ (this was not the cause of the error so feel free to move back if you need).
in experiment settings I selected use version 2020.2.10 rather than 2020 (I think this was the cause of your original white screen error)
Following the white screen issue, you had an ‘unknown resource’ error. I added resources you need manually in the experiment settings > online tab (see this page https://psychopy.org/online/fromBuilder.html for details on unknown resources error).