Python version errors

I have an old PsychoPy script from 2020. My mac (14.4.1) is running Python version 3.11.7. I installed the modern version of PsychoPy. When I try to sync to Pavlovia, I get the below errors. Seems like it might be something to do with me having a newer version of Python when you recommend Python 3.10, but I don’t think installing an older version of python is so simple?? Any thoughts?

Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/builder/builder.py”, line 1612, in onPavloviaSync
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/pavlovia_ui/project.py”, line 842, in syncProject
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/pavlovia_ui/functions.py”, line 125, in showCommitDialog
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/projects/pavlovia.py”, line 1240, in getChanges
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/git/repo/base.py”, line 979, in untracked_files
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/git/repo/base.py”, line 998, in _get_untracked_files
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/git/util.py”, line 504, in finalize_process
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/git/cmd.py”, line 834, in wait
git.exc.GitCommandError: Cmd(‘git’) failed due to: exit code(128)
cmdline: git status —porcelain —untracked-files
stderr: ‘fatal: not a git repository (or any of the parent directories): .git

Hi,

PsychoPy comes with its own Python installation and it is therefore not affected by the Python version you have installed in your PC - indeed you can see in the error that the Python install it refers to resides within PsychoPy
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/projects/pavlovia.py”

I do not have an answer to your question just wanted to clear this up. Perhaps move your .psyexp and any files (images, xlsx etc but not anything generated by syncing to Pavlovia) to a new folder and trying creating a new Palvovia project?

Godd luck!

Yiannis

1 Like

Thank you Yiannis!!! This really helped move me along!

1 Like