Resyncing experiments with pavlovia not working

Hello,

Anytime I need to make a change to an experiment and then try to resync it with pavlovia, I get an error message. The only way I’ve ever been able to fix it is by deleting the experiment from Pavlovia (which is really not ideal), creating a new folder with a new name, copying over the exact same files from the old folder, and then syncing it with Pavlovia under the new name. Often I have to repeat this process 5+ times before it will ever upload to Pavlovia without an error message. I have posted about this once before and was instructed to change the settings to I export the HTML manually. This helps sometimes, but I still spend hours, sometimes multiple days, just trying to update a program on Pavlovia for a simple text change. The error message I received today is copied below. A co-worker says he always has the exact same issue, even though we are creating different experiments and using different laptops.

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\builder\builder.py”, line 1374, in onPavloviaSync
pavlovia_ui.syncProject(parent=self, file=self.filename, project=self.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 279871.’

Where are you saving your local files? I would recommend avoiding OneDrive, Google Drive or anywhere else which has a separate system for version control.

Just on the desktop of my laptop.

Try creating a folder in Documents. The desktop can be an issue too. It definitely won’t work if you try to sync from the desktop without creating a dedicated subfolder.

What do you mean by dedicated sub folder?

I create a folder on my desktop with the experiment name, then save my psychopy experiment in that folder. It’s also where I store all of my images and condition files.

I will try saving the folder in documents instead.