# Experiment doesn't load KeyError: ‘term’

**URL:** <https://discourse.psychopy.org/t/experiment-doesnt-load-keyerror-term/1488>\
**Category:** Builder\
**Created:** [November 17, 2016, 12:16pm UTC](https://discourse.psychopy.org/t/experiment-doesnt-load-keyerror-term/1488 "2016-11-17T12:16:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![linnea](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@linnea](https://discourse.psychopy.org/u/linnea)\
**Post date:** [November 17, 2016, 12:16pm UTC](https://discourse.psychopy.org/t/experiment-doesnt-load-keyerror-term/1488/1 "2016-11-17T12:16:03Z")

</div>

**OS** MacOS Sierra  
**PsychoPy version** 1.84.0  
**Standard Standalone?** Yes

**What are you trying to achieve?:**  
Yesterday I got help making an experiment in Builder mode and it ran perfectly. When I try loading it today PsychoPy doesn’t open it.  
_Here is the file:_ [CExperimentFinal.psyexp](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/1X/d25ef0584bc26bcc356d2d4edced56480e3c0c28.psyexp) (28.9 KB)

**What did you try to make it work?:**  
Not much, since I’m new with PsychoPy and don’t know how to troubleshoot.

**I got this error command:**  
Failed to load /Users/linneahamrefors/Desktop/PsychoPy/CExperimentFinal.psyexp. Please send the following to the PsychoPy user list  
Traceback (most recent call last):  
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/builder/builder.py”, line 1473, in fileOpen  
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/builder/experiment.py”, line 596, in loadFromXML  
KeyError: ‘trial’  
Traceback (most recent call last):  
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/builder/builder.py”, line 1485, in fileOpen  
self.updateAllViews() # if frozen effect will be visible on thaw  
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/builder/builder.py”, line 1718, in updateAllViews  
self.flowPanel.draw()  
File “/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/app/builder/flow.py”, line 644, in draw  
thisTerm = self.loops[thisLoop][‘term’]  
KeyError: ‘term’

**Very grateful for help!**  
Linnea

---

<div class="post-metadata">

**Author:** ![jon](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/jon/32/22_2.png) [@jon](https://discourse.psychopy.org/u/jon)\
**Post date:** [November 17, 2016, 2:58pm UTC](https://discourse.psychopy.org/t/experiment-doesnt-load-keyerror-term/1488/2 "2016-11-17T14:58:07Z")

</div>

Already discussed here:

> [@PsychoPy experiment doesn't load](http://discourse.psychopy.org/t/psychopy-experiment-doesnt-load/1052/14):
>
> Hi Martina - the solution to this is detailed above (see the post with the green tick) and the underlying issue has been resolved as of 1.84.2. BW Oli

---

<div class="post-metadata">

**Author:** ![KyleMorrissey](https://avatars.discourse-cdn.com/v4/letter/k/b38774/32.png) [@KyleMorrissey](https://discourse.psychopy.org/u/KyleMorrissey)\
**Post date:** [November 17, 2016, 6:52pm UTC](https://discourse.psychopy.org/t/experiment-doesnt-load-keyerror-term/1488/3 "2016-11-17T18:52:45Z")

</div>

Did you change the names of any of your routines? There is a bug in your version of psychopy that causes what you are describing. You will want to update, and then you will be able to open your file but your routines will all be out of place…  
Cheers,  
Kyle

---

<div class="post-metadata">

**Author:** ![linnea](https://avatars.discourse-cdn.com/v4/letter/l/3ec8ea/32.png) [@linnea](https://discourse.psychopy.org/u/linnea)\
**Post date:** [November 17, 2016, 7:53pm UTC](https://discourse.psychopy.org/t/experiment-doesnt-load-keyerror-term/1488/4 "2016-11-17T19:53:19Z")

</div>

Yes, I found a [previous thread](http://discourse.psychopy.org/t/experiment-doesnt-load/1488/3) that solved it for me. Anyhow, thank you so much for replying so quickly!  
Best,  
Linnea
