I think it is still relevant to post here.
I initially received a 403 Forbidden error when attempting to pilot my newly created project.
To fix this I did as in 403 forbidden error when piloting basic experiment---solved. This resulted in an error (see image) that is very similar to the one discussed earlier in this thread.
All and all what I did
-
Project cleanup (delete .git / html / and any files generated previously by PsychoPy Builder):
– only my resource files (images), .xlsx and .py .psyexp files remained -
Use Export HTML… tool of PsychoPy to generate /html folder
-
Run the study online (and created a new project etc.)
-
After project was deployed went to Dashboard/Project and changed to Piloting
– Got the Forbidden error while oauth tokens were presented in the uri -
Discovered the aforementioned old thread and toggled Piloting > Inactive > Piloting
-
Received the error in the image above.
The stacktrace:
Generating PsychoJS script...
677.5694 EXP Imported \\***\***\***\***\PsychoPy\pilot-experiment\conditions.xlsx as conditions, 60 conditions, 2 params
715.6596 EXP Imported \\***\***\***\***\PsychoPy\pilot-experiment\conditions.xlsx as conditions, 60 conditions, 2 params
729.3616 EXP Imported \\***\***\***\***\PsychoPy\pilot-experiment\conditions.xlsx as conditions, 60 conditions, 2 params
767.0099 EXP Imported \\***\***\***\***\PsychoPy\pilot-experiment\conditions.xlsx as conditions, 60 conditions, 2 params
Traceback (most recent call last):
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\pavlovia_ui\project.py", line 160, in submitChanges
self.project.getRepo(forceRefresh=True)
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\projects\pavlovia.py", line 748, in getRepo
self.newRepo(infoStream=infoStream)
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\projects\pavlovia.py", line 805, in newRepo
self.repo = git.Repo.init(self.localRoot)
File "C:\Program Files\PsychoPy3\lib\site-packages\git\repo\base.py", line 906, in init
git.init(**kwargs)
File "C:\Program Files\PsychoPy3\lib\site-packages\git\cmd.py", line 548, in <lambda>
return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
File "C:\Program Files\PsychoPy3\lib\site-packages\git\cmd.py", line 1014, in _call_process
return self.execute(call, **exec_kwargs)
File "C:\Program Files\PsychoPy3\lib\site-packages\git\cmd.py", line 825, in execute
raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('C:\Program Files\PsychoPy3\MinGit\cmd\git.exe') failed due to: exit code(128)
cmdline: C:\Program Files\PsychoPy3\MinGit\cmd\git.exe init
stderr: 'fatal: cannot stat '//***/***/***/***/PsychoPy/pilot-experiment/.git/description': Not a directory'
Traceback (most recent call last):
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py", line 2305, in onPavloviaRun
closeFrameWhenDone=False)
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\pavlovia_ui\project.py", line 501, in syncProject
if project.getRepo(forceRefresh=True) is None:
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\projects\pavlovia.py", line 748, in getRepo
self.newRepo(infoStream=infoStream)
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\projects\pavlovia.py", line 805, in newRepo
self.repo = git.Repo.init(self.localRoot)
File "C:\Program Files\PsychoPy3\lib\site-packages\git\repo\base.py", line 906, in init
git.init(**kwargs)
File "C:\Program Files\PsychoPy3\lib\site-packages\git\cmd.py", line 548, in <lambda>
return lambda *args, **kwargs: self._call_process(name, *args, **kwargs)
File "C:\Program Files\PsychoPy3\lib\site-packages\git\cmd.py", line 1014, in _call_process
return self.execute(call, **exec_kwargs)
File "C:\Program Files\PsychoPy3\lib\site-packages\git\cmd.py", line 825, in execute
raise GitCommandError(command, status, stderr_value, stdout_value)
git.exc.GitCommandError: Cmd('C:\Program Files\PsychoPy3\MinGit\cmd\git.exe') failed due to: exit code(128)
cmdline: C:\Program Files\PsychoPy3\MinGit\cmd\git.exe init
stderr: 'fatal: cannot stat '//***/***/***/***/PsychoPy/pilot-experiment/.git/description': Not a directory'
It appears that the git repository is also now empty. As was with the previous time I tried using the Builder to push to the repo (and resorted to doing it manually with git then resulting to server and local branch mismatches).