have you switched your experiment to Piloting/Active from Inactive?
Yes, of couse…I was wondering whether i need to perform any other step or generate a file before launching the experiment in Pavlovia…
Would it help if I give you access to my Github?
Sure – if you give me (Wake) developer access I can take a look.
Best wishes,
Wakefield
Just granted access, thanks in advance for your help!
Your repository doesn’t include a psyexp Builder file or any JavaScript.
Are you using Builder?
Yes, I generated it but it didn’t work so I put it in “Code_backUp/additional_elements”…
That’s the most important file. I’d suggest you try again from the top.
On your computer you need a clean folder containing you .psyexp file and any resources (images, spreadsheets).
Open the .psyexp file in Builder
Press the sync button.
You should be prompted to create a new project. Say yes.
What happens?
I just created a new project including this time the .psyexp in the main folder and I invite you again to the repertory. As you should see yourself, the experiment starts but the screen freezes on “initializing experiment”.
It’s failing because the JS file uettask.js doesn’t exist.
I’m not sure what you are doing to create the repository, but it doesn’t look like you are creating it from Builder.
Hi Wake and thanks for your help once again.
I started to wonder whether the error is that I tried to generate the files from the code that I adapted myself from another existent → here my code = uettask.py (33.1 KB)
It is programmed for Builder so I thought that it would work…I am indeed able to generate the HTML, .js, etc but they do not seem to be the appropriate ones…as the screen freezes on “initializing experiment”
What happens when you press the sync button in Builder?
Your .py file isn’t relevant for the online experiment.
It drives me to the PsychoPy Coder…
As my code is written with the Builder functions, can I load it with the Builder to upload it later to Pavlovia?
That doesn’t sound right. Which button are you pressing?
You should sync from Builder.
Hi,
I have been taking a long look at everything, uninstalling and reinstalling everything…
It seems that the problem is to sync my original code .py from Builder to Pavlovia.
When I open the code from Builder, it directs me to the Coder…
Any idea on what might be happening? Is it the .py file the one that I need to open with the Builder? I have the impression that I am missing something…
You need to open a psyexp file not py
And how do I generate the psyexp from my .py code?
Sorry. If you want to run your experiment online you need to create it in Builder, not coder. You can add code components so you could try copying and pasting you Python code into a Builder code component. However, I think it might be easier to start again for the basic structure.
Dear Wakecarter,
It is me again. I have now the builder code created and properly updated to Pavlovia.
- My experiment works well when I launch it on my PC from the Builder
- I am able to update it without problems to my Pavlovia account where I see the code correctly
- The code includes all required files: .psyexp, .py, .js, etc
But I am still unable to make it run in Pavlovia: the experiment gets frozen on the window “initializing experiment”.
Could you please give me a hand to identify what might be happening? I have granted you access to my Github.
Thanks in advance!
Hey @Guillon,
This tutorial might be helpful: Thomas Pronk / tutorial_js_syntax_error · GitLab
Cheers T