Error when syncing Psychopy to Pavlovia

Description of the problem:
I am trying to sync my experiment from builder in Psychopy to Pavlovia, but receive the following error:

Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/pavlovia_ui/menu.py”, line 110, in onSync
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/pavlovia_ui/project.py”, line 508, in syncProject
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/pavlovia_ui/functions.py”, line 96, in showCommitDialog
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/projects/pavlovia.py”, line 897, in getChanges
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/git/repo/base.py”, line 656, in untracked_files
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/git/repo/base.py”, line 682, in _get_untracked_files
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/git/util.py”, line 333, in finalize_process
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/git/cmd.py”, line 415, in wait
git.exc.GitCommandError: Cmd(‘/Applications/PsychoPy.app/Contents/Resources/git-core/git’) failed due to: exit code(128)
cmdline: /Applications/PsychoPy.app/Contents/Resources/git-core/git status —porcelain —untracked-files
stderr: ‘fatal: bad object HEAD

Apologies, this is my first time using Psychopy with Pavlovia and I am very new to this!

Maybe this could work: remove a folder named “.git” inside your experiment and sync again. PsychoPy will ask you to create new project.

Thank you for your response. However, I can’t seem to find a folder named ‘.git’ inside the experiment folder?

You need to view hidden files. Alternatively you could copy the psyexp file and your images, spreadsheets, etc. to a new folder, test locally and try to sync again when the Pavlovia server is back up.

2 Likes

Thank you for your response. I have moved the files into a new folder and run on Psychopy. I now get this error:

Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/pavlovia_ui/menu.py”, line 110, in onSync
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/builder/builder.py”, line 1318, in project
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/projects/pavlovia.py”, line 1065, in getProject
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/git/repo/base.py”, line 124, in init
git.exc.NoSuchPathError: /Users/frankiepatterson/Desktop/version 1.2 error

I think it’s best to avoid the Desktop as well as cloud storage folders.

Best wishes

Wakefield

I have moved the folder to downloads and received the following error:

Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/pavlovia_ui/menu.py”, line 110, in onSync
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/builder/builder.py”, line 1318, in project
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/projects/pavlovia.py”, line 1065, in getProject
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/git/repo/base.py”, line 124, in init
git.exc.NoSuchPathError: /Users/frankiepatterson/Downloads/version 1.2 error

Did you create your account after 4th Jan?

No, it was created before then