On including conditions

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

OS : Win 10
PsychoPy version: v2020.2.3
Standard Standalone? (y/n): Yes
What are you trying to achieve?:

What did you try to make it work?: Trying to include conditions with a xlsx file

What specifically went wrong when you tried that?:

Details
Traceback (most recent call last):
File “c:\users\anibal\appdata\local\programs\python\python38\lib\site-packages\psychopy\app\builder\dialogs_init_.py”, line 1610, in onBrowseTrialsFile
_c, _n = data.importConditions(dlg.GetPath(),
File “c:\users\anibal\appdata\local\programs\python\python38\lib\site-packages\psychopy\data\utils.py”, line 338, in importConditions
trialList, fieldNames = _attemptImport(fileName=fileName)
File “c:\users\anibal\appdata\local\programs\python\python38\lib\site-packages\psychopy\data\utils.py”, line 256, in _attemptImport
trialList, fieldNames = pandasToDictList(trialsArr)
File “c:\users\anibal\appdata\local\programs\python\python38\lib\site-packages\psychopy\data\utils.py”, line 301, in pandasToDictList
_assertValidVarNames(fieldNames, fileName)
File “c:\users\anibal\appdata\local\programs\python\python38\lib\site-packages\psychopy\data\utils.py”, line 274, in _assertValidVarNames
raise exceptions.ConditionsImportError(
psychopy.exceptions.ConditionsImportError: Conditions file D:\Dropbox\Psychopy\stroop\condiciones.xlsx: Parameters (column headers) cannot contain punctuation or spaces

"word "

As highlighted in the error message, the header titled word in your \stroop\condiciones.xlsx contains a space at the very end. Simply remove it and attempt the code execution again

1 Like

thank you very much!!
:wink: