Pavlovia issue task stuck on initalising

My task is stuck on initialising.

In the console log, I can see that an error is caused by “.”, which I replaced with “points.”
Task.psyexp (351.3 KB)

Any suggestion would be helpful. Thanks

Can you please share your experiment?
Please also include the full error.


The problem is that I am not getting the error in the builder. I can only find the issues with code once I upload it to Pavlovia; and check the syntax error through the console log.
Task.psyexp (351.3 KB)


It’s not possible for me to test your experiment, you didn’t include the spreadsheets, the images, etc…
It would be better to share the project on pavlovia. make it public.

You can view the error from the browser console.

Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\”, line 1380, in onPavloviaRun
pavlovia_ui.syncProject(parent=self, project=self.project)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\pavlovia_ui\”, line 801, in syncProject
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\pavlovia_ui\”, line 47, in sync
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\”, line 839, in sync
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\”, line 1026, in firstPush
info = self.repo.git.push(‘-u’, self.remoteWithToken, ‘master’)
File “C:\Program Files\PsychoPy\lib\site-packages\git\”, line 638, in
return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
File “C:\Program Files\PsychoPy\lib\site-packages\git\”, line 1183, in _call_process
return self.execute(call, **exec_kwargs)
File “C:\Program Files\PsychoPy\lib\site-packages\git\”, line 983, in execute
raise GitCommandError(redacted_command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd(‘C:\Program Files\PsychoPy\MinGit\cmd\git.exe’) failed due to: exit code(128)
cmdline: C:\Program Files\PsychoPy\MinGit\cmd\git.exe push -u Sign in · GitLab master
stderr: 'fatal: unable to update url base from redirection:
asked for: Sign in · GitLab

This is the error that I am receiving now.


Yes, I did that and changed the code. But now I have a different error. Yes, I didn’t share the full experiment folder. I am unable to share the task on Pavlovia, since the experiment it is stuck on initialising.

Are you able to upload projects to Pavlovia at all?
If you try, for example, creating an experiment with one routine with one text component. do you get any errors?

if not (key_resp.keys2):
msg = "You failed to respond "
elif (key_resp.corr2) :
msg = “Correct. You earned " + str(Correctpoints2) + " points.”
points += Correctpoints2
msg =“Incorrect. You earned " + str(Incorrectpoints2) + " points.”
points += Incorrectpoints2
msg += " Total points: " + str(points) + “.”

This code is causing the issue. The “.” cannot be converted to JS

This code presents the message correct to incorrect, allocated the points, and provides a running total of points

Why are you using ?
You should be using either " or '.

The following works:

if not (key_resp.keys2):
    msg = "You failed to respond "
elif (key_resp.corr2) :
    msg = "Correct. You earned " + str(Correctpoints2) + " points."
    points += Correctpoints2
    msg ="Incorrect. You earned " + str(Incorrectpoints2) + " points."
    points += Incorrectpoints2
    msg += " Total points: " + str(points) + "."

Translated to:

if ((! key_resp.keys2)) {
    msg = "You failed to respond ";
} else {
    if (key_resp.corr2) {
        msg = (("Correct. You earned " + Correctpoints2.toString()) + " points.");
        points += Correctpoints2;
    } else {
        msg = (("Incorrect. You earned " + Incorrectpoints2.toString()) + " points.");
        points += Incorrectpoints2;
        msg += ((" Total points: " + points.toString()) + ".");

I fixed the issue. That was only a typo. For JS you need to define variables. Also, another component’s code was causing interference.

1 Like