psychopy.org | Reference | Downloads | Github

Using an if statement to create counter balancing online

By looking back at a previous experiment I have created it seems to appear whenever you have a loop to determine the conditions file you are calling in.

I made it so that the conditions file was no longer variable according to the if statement (as a test run) so just the file name conditionsAB.xlsx. Then I get a new error.

Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/builder/builder.py”, line 1325, in onPavloviaSync
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 129.

Maybe something related to this subprocess.CalledProcessError: Command '['git', 'tag']' returned non-zero exit status 128 - #2 by dvbridges

Yes I came across that post. Just working on how to find the location of ‘app data’ or something similar on Mac- so I can work towards a similar solution.

I think it is explained here: Troubleshooting — PsychoPy v2021.1

I have now been able to remove the app data and will see if that works.

Solution for the second error is here (bug fixed):