| Reference | Downloads | Github

Psychopy Builder not reading conditions file

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):
Standard Standalone? (y/n) If not then what?: Y
What are you trying to achieve?: I am trying to upload a conditions file to for my experiment but I keep getting: ValueError: conditions file parameters (column headers) cannot contain punctuation or spaces.

What did you try to make it work?: I have converted my xlsx file to a csv comma deliminated and have checked that there are no unexpected spaces or punctuations but this has not solved the error. If I attempt to do it in Builder, when I select the file it still says No parameters set.

What specifically went wrong when you tried that?:
Include pasted full error message if possible. “That didn’t work” is not enough information.

Hi @Julia1, I think you should keep your conditions file as an Excel worksheet rather than csv. That should remove the error for now. Would you mind sharing the conditions file so I can take a look at how PsychoPy is processing it? The reason why I thought this may be the issue was due to an encoding issue we had previously using a csv, but looks like this was not the case (see below).

Hi @dvbridges. I get the same error when I leave it as an Excel worksheet. I just converted to csv to check there were no odd spaces or punctuation I was missing in Excel. I have attached conditions file. Thanks for the help.

singleShotUG.xlsx (15.2 KB)

The error occurs because you have duplicate column names - the column “division” appears twice. If you remove that column, the error goes away.

1 Like

Thanks very much. Completely overlooked that and working now.

1 Like