If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): Windows 10 Enterprise
PsychoPy version (e.g. 1.84.x): 2022.2.4
Standard Standalone? (y/n) y
What are you trying to achieve?: Access experiment settings to remove the default.
What did you try to make it work?: Clicking the experiment settings cog.
What specifically went wrong when you tried that?:
Essentially, I added a field to expInfo via experiment settings and included 1=monolingual,2=bilingual as the default (as a pointer of what to type into the box). PsychoPy did not like this. The experiment crashed and now I get the attached error when even trying to open experiment settings…
Any other way I can amend/remove expInfo fields and salvage this file?
Error message attached as image and below as text.
Traceback (most recent call last):
File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\experiment\components\settings\__init__.py", line 625, in getInfo
isList = ast.literal_eval(str(val))
File "C:\Program Files\PsychoPy\lib\ast.py", line 59, in literal_eval
node_or_string = parse(node_or_string, mode='eval')
File "C:\Program Files\PsychoPy\lib\ast.py", line 47, in parse
return compile(source, filename, mode, flags,
File "<unknown>", line 1
1=monolingual,2=bilingual
^
SyntaxError: invalid syntax
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\experiment\components\settings\__init__.py", line 659, in getInfo
infoDict = eval(re.sub(pattern, entryToString, infoStr))
File "<string>", line 1
{'participant': 'f"{randint(0, 999999):'06'.0f}"', 'group': '1=monolingual,2=bilingual'}
^
SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\builder.py", line 1285, in setExperimentSettings
dlg = DlgExperimentProperties(
File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\dialogs\__init__.py", line 1741, in __init__
_BaseParamsDlg.__init__(self, frame=frame, element=element, experiment=experiment,
File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\dialogs\__init__.py", line 787, in __init__
self.ctrls = ParamNotebook(self, element, experiment)
File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\dialogs\__init__.py", line 638, in __init__
page = self.CategoryPage(self, self.parent, params)
File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\dialogs\__init__.py", line 496, in __init__
self.addParam(name, param)
File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\dialogs\__init__.py", line 504, in addParam
self.ctrls[name] = ParamCtrls(self.dlg, param.label, param, self, name)
File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\dialogs\__init__.py", line 169, in __init__
val=self.exp.settings.getInfo(), valType=param.valType,
File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\experiment\components\settings\__init__.py", line 664, in getInfo
raise AttributeError(msg)
AttributeError: Builder Expt: syntax error in "Experiment info" settings (expected a dict)