# Can't sync PsychoPy to Pavlovia

**URL:** <https://discourse.psychopy.org/t/cant-sync-psychopy-to-pavlovia/42772>\
**Category:** Builder\
**Created:** [October 31, 2024, 7:21pm UTC](https://discourse.psychopy.org/t/cant-sync-psychopy-to-pavlovia/42772 "2024-10-31T19:21:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yue](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/yue/32/43127_2.png) [@Yue](https://discourse.psychopy.org/u/Yue)\
**Post date:** [October 31, 2024, 7:21pm UTC](https://discourse.psychopy.org/t/cant-sync-psychopy-to-pavlovia/42772/1 "2024-10-31T19:21:41Z")

</div>

**OS** : Win 10  
**PsychoPy version** : 2024.2.4  
**What are you trying to achieve?** : I try to sync my project to Pavlovia in PsychoPy Builder, but it showed an error with below information:

Traceback (most recent call last):  
File “E:\PsychoPy\lib\site-packages\psychopy\app\coder\coder.py”, line 2871, in onPavloviaSync  
pavlovia\_ui.syncProject(parent=self, file=self.currentDoc.filename, project=self.project)  
File “E:\PsychoPy\lib\site-packages\psychopy\app\pavlovia\_ui\project.py”, line 854, in syncProject  
project.sync()  
File “E:\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 912, in sync  
self.firstPush(infoStream=infoStream)  
File “E:\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 1149, in firstPush  
info = self.commit(  
File “E:\PsychoPy\lib\site-packages\psychopy\projects\pavlovia.py”, line 1315, in commit  
info = self.repo.git.commit(‘-m’, message)  
File “E:\PsychoPy\lib\site-packages\git\cmd.py”, line 986, in   
return lambda \*args, \*\*kwargs: self.\_call\_process(name, \*args, \*\*kwargs)  
File “E:\PsychoPy\lib\site-packages\git\cmd.py”, line 1598, in \_call\_process  
return self.execute(call, \*\*exec\_kwargs)  
File “E:\PsychoPy\lib\site-packages\git\cmd.py”, line 1388, in execute  
raise GitCommandError(redacted\_command, status, stderr\_value, stdout\_value)  
git.exc.GitCommandError: Cmd(‘E:\PsychoPy\MinGit\cmd\git.exe’) failed due to: exit code(1)  
cmdline: E:\PsychoPy\MinGit\cmd\git.exe commit -m Push initial project files  
stdout: ‘On branch master  
nothing to commit, working tree clean’

**What did you try to make it work?** : I have tried to uninstall PsychoPy and reintall it again, and re-sign in my account, but these didn’t work. I can run the script o my laptop, but can’t do that in the browser and sync it to Pavlovia.

Could someone give me some suggestions related to this issue please? Thank you!

---

<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:** [November 1, 2024, 7:57am UTC](https://discourse.psychopy.org/t/cant-sync-psychopy-to-pavlovia/42772/2 "2024-11-01T07:57:27Z")

</div>

Does your experiment have a lot of files?

> [@HTTP 500 error on initial git push](https://discourse.psychopy.org/t/http-500-error-on-initial-git-push/41100/2):
>
> I was able to resolve the issue myself - it turns out that the git http buffer was too small for the repository for some reason. I fixed it by going into the git repository in terminal and doing: git config http.postBuffer 524288000 followed by: git push -u origin master Posting this in case anyone else encounters a similar issue!

You could also try removing large files to a different folder and putting them back to resync later.

---

<div class="post-metadata">

**Author:** ![emilythom](https://avatars.discourse-cdn.com/v4/letter/e/ac91a4/32.png) [@emilythom](https://discourse.psychopy.org/u/emilythom)\
**Post date:** [November 1, 2024, 1:10pm UTC](https://discourse.psychopy.org/t/cant-sync-psychopy-to-pavlovia/42772/3 "2024-11-01T13:10:57Z")

</div>

Hello,

I hope all is well! I have been having problems with syncing to Pavlovia too. ([\*\*Issue with creating and syncing a new project to pavlovia\*\*](https://discourse.psychopy.org/t/issue-with-creating-and-syncing-a-new-project-to-pavlovia/42779))

Now I created a new folder deleting the files I won’t be using and created a new experiment from scratch, (because in the previous one there were routines I wont be using and thought these may be issues too.) Then, I can create a new project when i click to the icon next to my name but when i click sync this is what i get:"Traceback (most recent call last):  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/pavlovia\_ui/project.py”, line 587, in sync  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/pavlovia\_ui/project.py”, line 854, in syncProject  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/projects/pavlovia.py”, line 873, in sync  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/projects/pavlovia.py”, line 1109, in firstPush  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/projects/pavlovia.py”, line 1251, in stageFiles  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/git/cmd.py”, line 542, in   
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/git/cmd.py”, line 1005, in \_call\_process  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/git/cmd.py”, line 721, in execute  
File “subprocess.pyc”, line 858, in **init**  
File “subprocess.pyc”, line 1704, in \_execute\_child  
OSError: [Errno 7] Argument list too long: ‘/Applications/PsychoPy.app/Contents/Resources/git-core/git’

What is that mean? I couldn’t find a similar entry in the forum could you please assist? Thanks so much!

---

<div class="post-metadata">

**Author:** ![Yue](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/yue/32/43127_2.png) [@Yue](https://discourse.psychopy.org/u/Yue)\
**Post date:** [November 3, 2024, 7:14pm UTC](https://discourse.psychopy.org/t/cant-sync-psychopy-to-pavlovia/42772/4 "2024-11-03T19:14:49Z")

</div>

Thank you so much for your help! I will try this method!
