Git style error-- v 2025.1.1 compatibility

Keep facing the same git error when attempting to run my code:

Running: C:\Users\kz0108\Downloads\pfm_tasks\pfm_tasks-main\movie_watching\movie_watching.py

fatal: Not a valid object name HEAD
Traceback (most recent call last):
File “C:\Users\kz0108\Downloads\pfm_tasks\pfm_tasks-main\movie_watching\movie_watching.py”, line 41, in
psychopy.useVersion(‘2023.1.3’)
File “C:\Users\kz0108\AppData\Local\Programs\PsychoPy_2025\lib\site-packages\psychopy\tools\versionchooser.py”, line 273, in useVersion
_switchToVersion(reqdMajorMinorPatch)
File “C:\Users\kz0108\AppData\Local\Programs\PsychoPy_2025\lib\site-packages\psychopy\tools\versionchooser.py”, line 362, in _switchToVersion
_checkout(requestedVersion)
File “C:\Users\kz0108\AppData\Local\Programs\PsychoPy_2025\lib\site-packages\psychopy\tools\versionchooser.py”, line 520, in _checkout
if currentTag() == requestedVersion:
File “C:\Users\kz0108\AppData\Local\Programs\PsychoPy_2025\lib\site-packages\psychopy\tools\versionchooser.py”, line 511, in currentTag
tag = subprocess.check_output(cmd, cwd=VERSIONSDIR,
File “C:\Users\kz0108\AppData\Local\Programs\PsychoPy_2025\lib\subprocess.py”, line 415, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
File “C:\Users\kz0108\AppData\Local\Programs\PsychoPy_2025\lib\subprocess.py”, line 516, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command ‘[‘git’, ‘describe’, ‘–always’, ‘–tag’]’ returned non-zero exit status 128.
######## Experiment ended with exit code 1 [pid:19072] #########

Why are you trying to use version 2023.1.3?

This is in “coding”. Are you using Coder? I haven’t encountered useVersion in Coder before.

thank you for the response! I have inherited experiment code that was designed to run on 2023.1.3

I have tried opening the code in various versions and various ways in order to run it. But I think I am generally in the coder view versus the builder view, if that’s what you’re asking

If you have a psyexp file you can upload, please do so and I’ll see if I can get it open in the latest version of PsychoPy Builder.

If you only have the Python file, try deleting the useVersion command.