Help publishing experiement to Pavlovia: unhandled internal error


I am trying to send my experiment to Pavlovia to host, but I keep getting the below error

Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\gitlab\”, line 304, in wrapped_f
return f(*args, **kwargs)
File “C:\Program Files\PsychoPy\lib\site-packages\gitlab\”, line 112, in get
server_data = self.gitlab.http_get(path, **kwargs)
File “C:\Program Files\PsychoPy\lib\site-packages\gitlab\”, line 662, in http_get
result = self.http_request(
File “C:\Program Files\PsychoPy\lib\site-packages\gitlab\”, 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\”, line 663, in project
self._project = self.session.gitlab.projects.get(
File “C:\Program Files\PsychoPy\lib\site-packages\gitlab\v4\objects\”, line 782, in get
return cast(Project, super().get(id=id, lazy=lazy, **kwargs))
File “C:\Program Files\PsychoPy\lib\site-packages\gitlab\”, 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\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 743, in syncProject
if not project.localRoot or not Path(project.localRoot).is_dir():
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\”, line 746, in localRoot
if self.project.path_with_namespace in knownProjects:
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\projects\”, line 666, in project
raise KeyError(f"Could not find GitLab project with id {}.")
KeyError: ‘Could not find GitLab project with id 261789.’

I am not sure what to do, I have restarted PsychoPy, my computer, and Pavlovia; however the problem still persists.

What version of PsychoPy are you using.

Is the project number in the error message one you deleted? If not they try syncing from the Gitlab version again.

Otherwise, if you need to create a new project, make sure you delete the local .git folder.

See also Help pushing experiment to Pavlovia

There are a few bugs causing these sorts of errors which we’re now fixing for the next version (we’re expecting to get it out early next year), but it could also be one of the following:

  • Are you logged in in the app? You can check by clicking the :pavlovia_user: Pavlovia User button
  • Does the account you’re logged in as have access to the project? If it’s a shared project, make sure the project owner has given you access
  • Has the project been deleted or moved on Pavlovia? You can check this using the web interface

If you can find the project using the :pavlovia_search: Pavlovia Search dialog, you can try setting the local root to your experiment folder and then restarting PsychoPy. If that still doesn’t work, and the “Download” button appears rather than the Sync button (meaning the project doesn’t recognise any folder as its local root), you could download it to a clean folder and then move your local files over to this folder and try to Sync again.