Duplicate variable names, unrecognized variables, variable referenced before assignment, exit code 1

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Win 10
PsychoPy version (e.g. 1.84.x): 24.1.4
Standard Standalone? (y/n) If not then what?:
What are you trying to achieve?: Build a task combining two different task types, each consisting of one practice block and two test blocks

Generating PsychoPy script…

I don’t know the appropriate default value for a ‘allowedKeys’ parameter. Please email the mailing list about this error
I don’t know the appropriate default value for a ‘allowedKeys’ parameter. Please email the mailing list about this error
I don’t know the appropriate default value for a ‘allowedKeys’ parameter. Please email the mailing list about this error
I don’t know the appropriate default value for a ‘allowedKeys’ parameter. Please email the mailing list about this error
I don’t know the appropriate default value for a ‘allowedKeys’ parameter. Please email the mailing list about this error
I don’t know the appropriate default value for a ‘allowedKeys’ parameter. Please email the mailing list about this error
I don’t know the appropriate default value for a ‘allowedKeys’ parameter. Please email the mailing list about this error
I don’t know the appropriate default value for a ‘allowedKeys’ parameter. Please email the mailing list about this error
I don’t know the appropriate default value for a ‘allowedKeys’ parameter. Please email the mailing list about this error
I don’t know the appropriate default value for a ‘allowedKeys’ parameter. Please email the mailing list about this error
I don’t know the appropriate default value for a ‘allowedKeys’ parameter. Please email the mailing list about this error
I don’t know the appropriate default value for a ‘allowedKeys’ parameter. Please email the mailing list about this error

Running: C:\Users\user\Desktop\2-back tasks\Set A (letter-shape)_lastrun.py

964.5601 EXP Imported linguistic/letter 2-back_practice block.xlsx as conditions, 10 conditions, 3 params
964.5689 EXP Imported nonlinguistic/block 2-back_practice block.xlsx as conditions, 10 conditions, 3 params
964.5807 EXP Imported linguistic/letter 2-back_1st block.xlsx as conditions, 24 conditions, 3 params
964.5936 EXP Imported nonlinguistic/block 2-back_1st block.xlsx as conditions, 24 conditions, 3 params
964.6057 EXP Imported linguistic/letter 2-back_2nd block.xlsx as conditions, 24 conditions, 3 params
964.6165 EXP Imported nonlinguistic/block 2-back_2nd block.xlsx as conditions, 24 conditions, 3 params
964.6166 WARNING duplicate variable names: CorrRes, Stimuli, Target
964.6409 INFO Loaded monitor calibration from [‘2024_06_06 15:35’]
964.7373 EXP Imported linguistic/letter 2-back_practice block.xlsx as conditions, 10 conditions, 3 params
964.7458 EXP Imported nonlinguistic/block 2-back_practice block.xlsx as conditions, 10 conditions, 3 params
964.7574 EXP Imported linguistic/letter 2-back_1st block.xlsx as conditions, 24 conditions, 3 params
964.7707 EXP Imported nonlinguistic/block 2-back_1st block.xlsx as conditions, 24 conditions, 3 params
964.7827 EXP Imported linguistic/letter 2-back_2nd block.xlsx as conditions, 24 conditions, 3 params
964.7942 EXP Imported nonlinguistic/block 2-back_2nd block.xlsx as conditions, 24 conditions, 3 params
964.7944 WARNING duplicate variable names: CorrRes, Stimuli, Target
964.8084 INFO Loaded monitor calibration from [‘2024_06_06 15:35’]
964.9800 EXP Imported linguistic/letter 2-back_practice block.xlsx as conditions, 10 conditions, 3 params
964.9877 EXP Imported nonlinguistic/block 2-back_practice block.xlsx as conditions, 10 conditions, 3 params
964.9990 EXP Imported linguistic/letter 2-back_1st block.xlsx as conditions, 24 conditions, 3 params
965.0115 EXP Imported nonlinguistic/block 2-back_1st block.xlsx as conditions, 24 conditions, 3 params
965.0221 EXP Imported linguistic/letter 2-back_2nd block.xlsx as conditions, 24 conditions, 3 params
965.0324 EXP Imported nonlinguistic/block 2-back_2nd block.xlsx as conditions, 24 conditions, 3 params
965.0325 WARNING duplicate variable names: CorrRes, Stimuli, Target
pygame 2.1.0 (SDL 2.0.16, Python 3.8.10)
Traceback (most recent call last):
Hello from the pygame community. Contribute - pygame wiki
File “C:\Users\user\Desktop\2-back tasks\Set A (letter-shape)_lastrun.py”, line 3113, in
run(
File “C:\Users\user\Desktop\2-back tasks\Set A (letter-shape)_lastrun.py”, line 434, in run
text=Stimuli,
UnboundLocalError: local variable ‘Stimuli’ referenced before assignment
################ Experiment ended with exit code 1 [pid:11008] #################

Where does Stimuli appear in your experiment? Do you have something set to constant which should be every repeat?