psychopy.org | Reference | Downloads | Github

Can't access experiment settings dialog

MacOS, PsychoPy v2020.1.2 Standalone

I disabled the participant number dialog because I wanted to randomly assign participant numbers on Pavlovia. However, I am currently unable to test locally as the data filename wants to access this expinfo.

However, I can’t open the experiments settings dialog, so I am unable to either change the data filename or re-apply the participant number box. I reset my settings from the builder via preferences, as I can’t find the .cfg file for the life of me. The experiment settings dialog works in other and new experiments, so it is an issue with this particular one.

The full traceback is as follows:

Traceback (most recent call last):
  File "/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/app/builder/builder.py", line 2202, in setExperimentSettings
    timeout=timeout)
  File "/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/app/builder/dialogs/__init__.py", line 1806, in __init__
    timeout=timeout)
  File "/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/app/builder/dialogs/__init__.py", line 510, in __init__
    ctrls = self.addCategoryOfParams(theseParams, parent=page)
  File "/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/app/builder/dialogs/__init__.py", line 624, in addCategoryOfParams
    valType=self.params[fieldName].valType)
  File "/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/app/builder/dialogs/__init__.py", line 752, in addParam
    advanced=advanced, appPrefs=self.app.prefs)
  File "/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/app/builder/dialogs/__init__.py", line 139, in __init__
    parent, val, order=['Field', 'Default'])
  File "/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/app/dialogs.py", line 530, in __init__
    raise AttributeError(msg)
AttributeError: The initial value for a ListWidget must be a list of dicts

Did removing participant info mess up said list, and would anyone know how to restore it please?

I have a suggestion which I’ve put in my crib sheet. Please let me know if it works.

https://docs.google.com/document/d/13jp0QAqQeFlYSjeZS0fDInvgaDzBXjGQNe4VNKbbNHQ/mobilebasic

Thanks, I wish I’d read that sooner; but I’ll add it to my team’s resources if you don’t mind!

For now, I’ve found a workaround by opening coding view and adding expInfo['participant'] = 1 as a dummy for local testing, but it’s less than ideal.

Wouldn’t adding?participant=1 to the URL you give your team be easier?

I’d like my crib sheet to be seen as widely so you’re welcome to link to it from your resources.

1 Like