# Resyncing experiments with pavlovia not working

**URL:** <https://discourse.psychopy.org/t/resyncing-experiments-with-pavlovia-not-working/33524>\
**Category:** Online experiments\
**Created:** [February 25, 2023, 3:41am UTC](https://discourse.psychopy.org/t/resyncing-experiments-with-pavlovia-not-working/33524 "2023-02-25T03:41:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bjackson55](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/bjackson55/32/13067_2.png) [@bjackson55](https://discourse.psychopy.org/u/bjackson55)\
**Post date:** [February 25, 2023, 3:41am UTC](https://discourse.psychopy.org/t/resyncing-experiments-with-pavlovia-not-working/33524/1 "2023-02-25T03:41:52Z")

</div>

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.’

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [February 25, 2023, 4:13pm UTC](https://discourse.psychopy.org/t/resyncing-experiments-with-pavlovia-not-working/33524/2 "2023-02-25T16:13:55Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![bjackson55](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/bjackson55/32/13067_2.png) [@bjackson55](https://discourse.psychopy.org/u/bjackson55)\
**Post date:** [February 25, 2023, 7:10pm UTC](https://discourse.psychopy.org/t/resyncing-experiments-with-pavlovia-not-working/33524/3 "2023-02-25T19:10:18Z")

</div>

Just on the desktop of my laptop.

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [February 25, 2023, 7:55pm UTC](https://discourse.psychopy.org/t/resyncing-experiments-with-pavlovia-not-working/33524/4 "2023-02-25T19:55:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![bjackson55](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/bjackson55/32/13067_2.png) [@bjackson55](https://discourse.psychopy.org/u/bjackson55)\
**Post date:** [February 26, 2023, 12:25am UTC](https://discourse.psychopy.org/t/resyncing-experiments-with-pavlovia-not-working/33524/5 "2023-02-26T00:25:25Z")

</div>

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.
