# After updating my PsychoPy to the latest (v2021.1.4), my experiment crashes

**URL:** https://discourse.psychopy.org/t/after-updating-my-psychopy-to-the-latest-v2021-1-4-my-experiment-crashes/22401
**Category:** Builder
**Created:** [April 19, 2021, 8:57am UTC](https://discourse.psychopy.org/t/after-updating-my-psychopy-to-the-latest-v2021-1-4-my-experiment-crashes/22401 "2021-04-19T08:57:48Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![judgeLionthink](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/judgelionthink/32/15677_2.png) [@judgeLionthink](https://discourse.psychopy.org/u/judgeLionthink)
#### Post date: [April 19, 2021, 8:57am UTC](https://discourse.psychopy.org/t/after-updating-my-psychopy-to-the-latest-v2021-1-4-my-experiment-crashes/22401/1 "2021-04-19T08:57:48Z")

</div>

**OS** : Win10  
**PsychoPy version** : v2021.1.4  
**Standard Standalone? (y/n)** yes

My experiment worked fine on an older version (from about a year ago, don’t know exactly which one it was). After uninstalling the older version and installing the latest one, experiment crashes when encountering certain objects.

For example, after responding to a mouse-task, the participant is tasked witc clicking a small circle (regular polygon with 100 vertices) in the middle of the screen before proceeding (to restart the position of the mouse cursor). This part of the builder used to work in the older version, but now when that part of the experiment runs, after clicking the little circle, the experiment crashes with a message:

```auto
for obj in circle_white:
TypeError: 'Polygon' object is not iterable
##### Experiment ended. #####

```

Curiously, only some of the Routines are “infected” with this issue, even though some others also use images (though not polygons) and mouse components.

**What did you try to make it work?:**  
Disabling the polygon component stops the error. Making a new polygon component doesn’t make a difference. Using an image changes the error to ‘ImageStim’ object is not iterable. Creating a new mouse component changes nothing.

---

<div class="post-metadata">

### Author: ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)
#### Post date: [April 19, 2021, 9:07am UTC](https://discourse.psychopy.org/t/after-updating-my-psychopy-to-the-latest-v2021-1-4-my-experiment-crashes/22401/2 "2021-04-19T09:07:23Z")

</div>

Add a comma after circle\_white in the clickable stimuli (mouse targets) to tell PsychoPy it’s a list.

---

<div class="post-metadata">

### Author: ![judgeLionthink](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/judgelionthink/32/15677_2.png) [@judgeLionthink](https://discourse.psychopy.org/u/judgeLionthink)
#### Post date: [April 19, 2021, 9:09am UTC](https://discourse.psychopy.org/t/after-updating-my-psychopy-to-the-latest-v2021-1-4-my-experiment-crashes/22401/3 "2021-04-19T09:09:57Z")

</div>

Thank you, works perfectly!
