Cannot open custom code

OS (e.g. Win10):
Win10

PsychoPy version (e.g. 1.84.x):
3.1.5

Standard Standalone? (y/n)
Yes

What are you trying to achieve?:
To open my custom code in builder

What did you try to make it work?:
I haven’t. I have no idea why this isn’t working.

What specifically went wrong when you tried that?:
This is the error I received when I tried to open my custom code in builder:

  File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py", line 190, in OnMouse
    component=self.componentFromID[icons[0]])
  File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py", line 546, in editComponentProperties
    depends=component.depends)
  File "C:\Program Files (x86)\PsychoPy3\lib\site-packages\psychopy\app\builder\dialogs\dlgsCode.py", line 91, in __init__
    _codeTypes.index(self.params['Code Type']))
ValueError: <psychopy.experiment.params.Param object at 0x000002109AFBF780> is not in list

If you have an experiment from 2020 code components won’t open in version 3 because of the auto translate

1 Like