# PsychoPy error (ApplePersistenceIgnoreState)

**URL:** <https://discourse.psychopy.org/t/psychopy-error-applepersistenceignorestate/17853>\
**Category:** Coding\
**Created:** [November 6, 2020, 6:27am UTC](https://discourse.psychopy.org/t/psychopy-error-applepersistenceignorestate/17853 "2020-11-06T06:27:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicole\_Coates](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/nicole_coates/32/11591_2.png) [@Nicole\_Coates](https://discourse.psychopy.org/u/Nicole_Coates)\
**Post date:** [November 6, 2020, 6:27am UTC](https://discourse.psychopy.org/t/psychopy-error-applepersistenceignorestate/17853/1 "2020-11-06T06:27:10Z")

</div>

Hi there,

I am trying to run the Iowa Gambling Task on PsychoPy, using the code provided by Psytoolkit. However, when I run it, I get the following error:

ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to (null)

I am using a Mac. I have set my security to allow applications that are downloaded from the internet. I have tried putting in suggested code in my terminal… nothing has yet worked. Any thoughts?

---

<div class="post-metadata">

**Author:** ![Becca](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/becca/32/34260_2.png) [@Becca](https://discourse.psychopy.org/u/Becca)\
**Post date:** [November 6, 2020, 10:22am UTC](https://discourse.psychopy.org/t/psychopy-error-applepersistenceignorestate/17853/2 "2020-11-06T10:22:16Z")

</div>

Hi There,

Please can I confirm that this is the same error documented here? [PsychoPy error when running experiment](https://discourse.psychopy.org/t/psychopy-error-when-running-experiment/17807)

Thanks,  
Becca

---

<div class="post-metadata">

**Author:** ![Nicole\_Coates](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/nicole_coates/32/11591_2.png) [@Nicole\_Coates](https://discourse.psychopy.org/u/Nicole_Coates)\
**Post date:** [November 6, 2020, 10:01pm UTC](https://discourse.psychopy.org/t/psychopy-error-applepersistenceignorestate/17853/3 "2020-11-06T22:01:46Z")

</div>

Yes, this is the same error. Thank you!

---

<div class="post-metadata">

**Author:** ![erholton](https://avatars.discourse-cdn.com/v4/letter/e/3be4f8/32.png) [@erholton](https://discourse.psychopy.org/u/erholton)\
**Post date:** [January 13, 2021, 6:46pm UTC](https://discourse.psychopy.org/t/psychopy-error-applepersistenceignorestate/17853/4 "2021-01-13T18:46:18Z")

</div>

I have the same problem (and the suggested code in terminal doesn’t work for me either). Any update?

---

<div class="post-metadata">

**Author:** ![Becca](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/becca/32/34260_2.png) [@Becca](https://discourse.psychopy.org/u/Becca)\
**Post date:** [January 18, 2021, 10:44am UTC](https://discourse.psychopy.org/t/psychopy-error-applepersistenceignorestate/17853/5 "2021-01-18T10:44:38Z")

</div>

Hi There,

This is a warning message that usually doesn’t cause experiments to crash - please can you confirm that this is causing an experiment to crash?

Thanks,

Becca

---

<div class="post-metadata">

**Author:** ![mh105](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/mh105/32/41792_2.png) [@mh105](https://discourse.psychopy.org/u/mh105)\
**Post date:** [May 16, 2024, 5:22am UTC](https://discourse.psychopy.org/t/psychopy-error-applepersistenceignorestate/17853/6 "2024-05-16T05:22:41Z")

</div>

This should provide a fix:

> [@Error -- ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to (null)](https://discourse.psychopy.org/t/error-applepersistenceignorestate-existing-state-will-not-be-touched-new-state-will-be-written-to-null/23964/4):
>
> Just type in terminal window
> 
> ```auto
> defaults write org.opensciencetools.psychopy ApplePersistenceIgnoreState NO
> 
> ```
> 
> and it should be all set.
