# On including conditions

**URL:** https://discourse.psychopy.org/t/on-including-conditions/16402
**Category:** Builder
**Created:** [September 10, 2020, 3:02pm UTC](https://discourse.psychopy.org/t/on-including-conditions/16402 "2020-09-10T15:02:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Anibal\_de\_Paul](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/anibal_de_paul/32/10591_2.png) [@Anibal\_de\_Paul](https://discourse.psychopy.org/u/Anibal_de_Paul)
#### Post date: [September 10, 2020, 3:02pm UTC](https://discourse.psychopy.org/t/on-including-conditions/16402/1 "2020-09-10T15:02:13Z")

</div>

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?:**

 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/5/4/54993f5a6b5af4735f516082e55530b8d77c6028.png)

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 "

---

<div class="post-metadata">

### Author: ![Juris\_S](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/juris_s/32/10582_2.png) [@Juris\_S](https://discourse.psychopy.org/u/Juris_S)
#### Post date: [September 10, 2020, 3:29pm UTC](https://discourse.psychopy.org/t/on-including-conditions/16402/2 "2020-09-10T15:29:38Z")

</div>

> [@Anibal\_de\_Paul](#):
>
> 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

---

<div class="post-metadata">

### Author: ![Anibal\_de\_Paul](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/anibal_de_paul/32/10591_2.png) [@Anibal\_de\_Paul](https://discourse.psychopy.org/u/Anibal_de_Paul)
#### Post date: [September 10, 2020, 3:43pm UTC](https://discourse.psychopy.org/t/on-including-conditions/16402/3 "2020-09-10T15:43:49Z")

</div>

thank you very much!!  
😉
