I just updated and I am getting the same error. I am on MacOS 11.1.
Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/pavlovia_ui/toolbar.py”, line 89, in onPavloviaProject
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/builder/builder.py”, line 1416, in project
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/projects/pavlovia.py”, line 1068, in getProject
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/projects/pavlovia.py”, line 1049, in getGitRoot
File “subprocess.pyc”, line 356, in check_output
File “subprocess.pyc”, line 438, in run
subprocess.CalledProcessError: Command ‘[‘git’, ‘branch’, ‘—show-current’]’ returned non-zero exit status 128.
It doesn’t seem to matter if I change the psychopy version in the experiment settings. I get the error when I try to sync my experiment with pavlovia and also I click the “get details of this experiment” icon. I am able find existing studies on pavlovia (the magnifying glass icon).
Traceback (most recent call last):
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py”, line 1325, in onPavloviaSync
retVal = pavlovia_ui.syncProject(parent=self, project=self.project)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py”, line 1416, in project
elif self.filename and pavlovia.getProject(self.filename):
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\projects\pavlovia.py”, line 1068, in getProject
gitRoot = getGitRoot(filename)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\projects\pavlovia.py”, line 1049, in getGitRoot
cwd=str§).decode(‘utf-8’):
File “C:\Program Files\PsychoPy3\lib\subprocess.py”, line 336, in check_output
**kwargs).stdout
File “C:\Program Files\PsychoPy3\lib\subprocess.py”, line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command ‘[‘git’, ‘branch’, ‘–show-current’]’ returned non-zero exit status 129.
i wonder why mine show exit status 129 and your 128
i tried using the 2020.2.10 version
deleted the ‘versions’ file and the git file and still nothing works
Traceback (most recent call last):
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py”, line 1325, in onPavloviaSync
retVal = pavlovia_ui.syncProject(parent=self, project=self.project)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py”, line 1416, in project
elif self.filename and pavlovia.getProject(self.filename):
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\projects\pavlovia.py”, line 1068, in getProject
gitRoot = getGitRoot(filename)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\projects\pavlovia.py”, line 1049, in getGitRoot
cwd=str§).decode(‘utf-8’):
File “C:\Program Files\PsychoPy3\lib\subprocess.py”, line 336, in check_output
**kwargs).stdout
File “C:\Program Files\PsychoPy3\lib\subprocess.py”, line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command ‘[‘git’, ‘branch’, ‘–show-current’]’ returned non-zero exit status 128.
I have tried doing that. it shows the same error even when choosing the older version in experiment settings.
I noticed that an html file was created but not the git.
a notice sign popped up
Maybe the issue is that i did upgrade it halfway through an experiment
perhaps I should uninstall this version and reinstall the old one.
I’ll just chime in that in my case it is a study that is already online and working under the previous version. I am able to uninstall and revert back to the previous version and sync without issues (my current solution). When I update again I get the same error as stated above. I’ve gone back and forth a few times to check and same behavior every time, i.e., sync error on latest version, no problems when i downgrade.
I’m in no rush for a solution, just want to give more info in case it’s helpful.
Thank you! When I try to create a new project to upload to pavlovia I still get one error.
Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/pavlovia_ui/project.py”, line 161, in submitChanges
AttributeError: ‘NoneType’ object has no attribute ‘project’
@andreamendez92 My guess is that you’ve closed a window (the Runner view?) that PsychoPy thought was open. It still sounds like a bug (and it looks like a few others are finding the same issue) but my guess is that you can workaround it for now by having the Runner stay open
Hi Jon,
I am new to PsychoPy and Pavlovia, and have been trouble getting my experiment into Java Script, so I started on a different computer (a Lenovo Yoga running Windows 10), downloaded PsychoPy3 2021.1.2, and tried to Export to HTML. That generate the following error block, with instructions to contact the developers.
Traceback (most recent call last):
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py”, line 1320, in onPavloviaSync
self.fileExport(htmlPath=htmlPath)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py”, line 759, in fileExport
target=“PsychoJS”)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 73, in generateScript
compileScript(infile=exp, version=None, outfile=filename)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 242, in compileScript makeTarget(thisExp, outfile, targetOutput)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\scripts\psyexpCompile.py”, line 214, in makeTarget
script = thisExp.writeScript(outfile, target=targetOutput, modular=True)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment_experiment.py”, line 242, in writeScript
entry.writeInitCodeJS(script)
File “C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment\routine.py”, line 140, in writeInitCodeJS
thisCompon.writeInitCodeJS(buff)
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment\components\slider_init.py", line 256, in writeInitCodeJS
stylesListJS = [sliderStyles[this] for this in stylesList]
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\experiment\components\slider_init.py", line 256, in
stylesListJS = [sliderStyles[this] for this in stylesList]
TypeError: unhashable type: ‘list’
I’m not sure where to turn to for next steps.
Thanks for any suggestions