Unhandled internal error during synchronization

URL of experiment:

Description of the problem:
I am using PsychoPy 2022.2.2. When attempting to sync the experiment to Pavlovia from the builder, I received the following messages:

Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\gitlab\exceptions.py”, line 304, in wrapped_f
return f(*args, **kwargs)
File “C:\Program Files\PsychoPy\lib\site-packages\gitlab\mixins.py”, line 112, in get
server_data = self.gitlab.http_get(path, **kwargs)
File “C:\Program Files\PsychoPy\lib\site-packages\gitlab\client.py”, line 662, in http_get
result = self.http_request(
File “C:\Program Files\PsychoPy\lib\site-packages\gitlab\client.py”, line 628, in http_request
raise gitlab.exceptions.GitlabHttpError(
gitlab.exceptions.GitlabHttpError: 404: 404 Project Not Found

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 663, in project
self._project = self.session.gitlab.projects.get(self.id)
File “C:\Program Files\PsychoPy\lib\site-packages\gitlab\v4\objects\projects.py”, line 782, in get
return cast(Project, super().get(id=id, lazy=lazy, **kwargs))
File “C:\Program Files\PsychoPy\lib\site-packages\gitlab\exceptions.py”, line 306, in wrapped_f
raise error(e.error_message, e.response_code, e.response_body) from e
gitlab.exceptions.GitlabGetError: 404: 404 Project Not Found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\pavlovia_ui\menu.py”, line 114, in onSync
syncProject(parent=self.parent, project=self.parent.project)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\pavlovia_ui\project.py”, line 743, in syncProject
if not project.localRoot or not Path(project.localRoot).is_dir():
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 746, in localRoot
if self.project.path_with_namespace in knownProjects:
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 666, in project
raise KeyError(f"Could not find GitLab project with id {self.id}.")
KeyError: ‘Could not find GitLab project with id 241365.’

I would really appreciate your kind help.

Hi @shenqidu,

it seems like the syncing didn’t work because for some reason, your project couldn’t be found. I don’t know what you did, but I’d guess that it could be the case if you tried uploading your experiment for the first time and haven’t created a project on Pavlovia/Gitlab yet. If this is the case, check this post on how to create a project: Launch your study on Pavlovia.org — PsychoPy v2022.2.2
If you already have a project, you could also try emptying your browser’s cache & to sync again or (if this doesn’t work either) to move your experiment to a new file on your computer and to upload it as a new project.

I hope this helps! :slight_smile:


Hi Merle, thanks for your reply!
I initially succeeded in syncing from the Psychopy builder to the PavloviaI. But when I modified the program in builder and tried to sync again, an internal error occurred. I have my project on the PavloviaI, but the code is empty. I tried to put the folder in another location and delete online project, but the internal error still occurs. I want to try to log in to another PavloviaI account, but I can’t get the login window to pop up on the Psychopy. I don’t know how to work it out.

Thank you again for your kind help.