Unhandled internal error when I try to upload the stimuli .csv file in builder

OS (Win10):
PsychoPy version (latest version):
Standard Standalone? (y)
What are you trying to achieve?:
Hello everyone, I was trying to upload the cvs. file with the list of images I wanted to present on the conditions section in the loop settings. But when I try to do it I get this internal error message:
Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\dialogs_init_.py”, line 1455, in onBrowseTrialsFile
returnFieldNames=True)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\data\utils.py”, line 479, in importConditions
(fileName, len(trialList), len(fieldNames)))
UnboundLocalError: local variable ‘trialList’ referenced before assignment

**What did you try to make it work?:
I tried to install the latest version of psychopy…but again, the same error

Does anyone know what to do to solve the problem?

Thanks :slight_smile:

Hi There,

Have you by any chance used the variable name “trialList” anywhere in your code? Could you possiby share the .psyexp file so we can take a look?

Thanks,
Becca

Hi Becca! I don’t have any variable called “trailList”. I’ll share the .psyexp and an example of the condition file that I’m usingChooseSetA.csv (153 Bytes)
TestingOnline.psyexp (19.3 KB).

Thanks for the help! :slight_smile:

Aha ok I see the issue here - the csv has saves using “;” as seperators - can you try to make it in excel and save as an excel spreadsheet instead? (.xlsx extension)

Becca

1 Like

Yesss…now is working :heart_eyes:

great pleased to hear!!