# Psychopy error codes when trying to run experiment

**URL:** <https://discourse.psychopy.org/t/psychopy-error-codes-when-trying-to-run-experiment/7805>\
**Category:** Builder\
**Created:** [May 16, 2019, 8:30pm UTC](https://discourse.psychopy.org/t/psychopy-error-codes-when-trying-to-run-experiment/7805 "2019-05-16T20:30:12Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laura\_Makin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/laura_makin/32/4825_2.png) [@Laura\_Makin](https://discourse.psychopy.org/u/Laura_Makin)\
**Post date:** [May 16, 2019, 8:30pm UTC](https://discourse.psychopy.org/t/psychopy-error-codes-when-trying-to-run-experiment/7805/1 "2019-05-16T20:30:13Z")

</div>

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

**OS** (e.g. Win10):  
**PsychoPy version** (e.g. 1.84.x):  
**Standard Standalone? (y/n)** If not then what?:  
**What are you trying to achieve?:**  
I am trying to run a stroop task in Psychopy  
**What did you try to make it work?:**  
When I pressed run it comes up with an error message

 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/d/4/d467263cada3bc1161eea49c488d705716bf7f36.png)  
DOES ANYONE KNOW WHAT THIS MEANS AND HOW TO FIX IT!!!  
**What specifically went wrong when you tried that?:**

Include pasted full error message if possible. “That didn’t work” is not enough information.

---

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [May 16, 2019, 9:02pm UTC](https://discourse.psychopy.org/t/psychopy-error-codes-when-trying-to-run-experiment/7805/2 "2019-05-16T21:02:00Z")

</div>

@Laura_Makin, can you let us know which version of PsychoPy you are using? Some of these issues may have already been fixed in more recent releases.

---

<div class="post-metadata">

**Author:** ![Laura\_Makin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/laura_makin/32/4825_2.png) [@Laura\_Makin](https://discourse.psychopy.org/u/Laura_Makin)\
**Post date:** [May 17, 2019, 7:46am UTC](https://discourse.psychopy.org/t/psychopy-error-codes-when-trying-to-run-experiment/7805/3 "2019-05-17T07:46:37Z")

</div>

I’m using version 3 of psychopy

---

<div class="post-metadata">

**Author:** ![Laura\_Makin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/laura_makin/32/4825_2.png) [@Laura\_Makin](https://discourse.psychopy.org/u/Laura_Makin)\
**Post date:** [May 17, 2019, 7:51am UTC](https://discourse.psychopy.org/t/psychopy-error-codes-when-trying-to-run-experiment/7805/4 "2019-05-17T07:51:15Z")

</div>

The exact version is v3.1.0

---

<div class="post-metadata">

**Author:** ![Laura\_Makin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/laura_makin/32/4825_2.png) [@Laura\_Makin](https://discourse.psychopy.org/u/Laura_Makin)\
**Post date:** [May 17, 2019, 8:52am UTC](https://discourse.psychopy.org/t/psychopy-error-codes-when-trying-to-run-experiment/7805/5 "2019-05-17T08:52:10Z")

</div>

@dvbridges would this error effect the code of the experiment?

---

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [May 17, 2019, 9:09am UTC](https://discourse.psychopy.org/t/psychopy-error-codes-when-trying-to-run-experiment/7805/6 "2019-05-17T09:09:43Z")

</div>

@Laura_Makin, I am not sure. Can you share your psyexp file please?

---

<div class="post-metadata">

**Author:** ![Laura\_Makin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/laura_makin/32/4825_2.png) [@Laura\_Makin](https://discourse.psychopy.org/u/Laura_Makin)\
**Post date:** [May 17, 2019, 9:13am UTC](https://discourse.psychopy.org/t/psychopy-error-codes-when-trying-to-run-experiment/7805/7 "2019-05-17T09:13:00Z")

</div>

[EXP 1.psyexp](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/2X/6/6c424187b6c06988a8eff1b7a769372829d3acc5.psyexp) (9.7 KB)  
This is the file it is a stroop style task

---

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [May 17, 2019, 9:25am UTC](https://discourse.psychopy.org/t/psychopy-error-codes-when-trying-to-run-experiment/7805/8 "2019-05-17T09:25:50Z")

</div>

Can you please copy and paste the whole error message? Also, try going to Preferences in the file menu, and switching the window type to glfw.

---

<div class="post-metadata">

**Author:** ![Laura\_Makin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/laura_makin/32/4825_2.png) [@Laura\_Makin](https://discourse.psychopy.org/u/Laura_Makin)\
**Post date:** [May 17, 2019, 9:28am UTC](https://discourse.psychopy.org/t/psychopy-error-codes-when-trying-to-run-experiment/7805/9 "2019-05-17T09:28:11Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/d/9/d996229426a5db993cea0755d56700f3ec2c605f.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/8/2/8211532817c3b3efd4e5d9d335537a46d6268304.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/4/1/413a61a7702938e3d98ebb6fca7c7f8be68df368.png)

---

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [May 17, 2019, 9:31am UTC](https://discourse.psychopy.org/t/psychopy-error-codes-when-trying-to-run-experiment/7805/10 "2019-05-17T09:31:11Z")

</div>

I think this issue might be related to driver issues [see link](https://github.com/psychopy/psychopy/issues/1579). Jon mentions that " `Unable to share contexts` is generally a driver issue", and the recommendation is to update your graphics card drivers.

---

<div class="post-metadata">

**Author:** ![Laura\_Makin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/laura_makin/32/4825_2.png) [@Laura\_Makin](https://discourse.psychopy.org/u/Laura_Makin)\
**Post date:** [May 17, 2019, 11:10am UTC](https://discourse.psychopy.org/t/psychopy-error-codes-when-trying-to-run-experiment/7805/11 "2019-05-17T11:10:58Z")

</div>

Okay thank you do you know how I can update the graphics card drivers?

---

<div class="post-metadata">

**Author:** ![dvbridges](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/dvbridges/32/1918_2.png) [@dvbridges](https://discourse.psychopy.org/u/dvbridges)\
**Post date:** [May 17, 2019, 11:41am UTC](https://discourse.psychopy.org/t/psychopy-error-codes-when-trying-to-run-experiment/7805/12 "2019-05-17T11:41:45Z")

</div>

I think it would be best if you google “how to update your graphics card drivers” with the addition of your operation system e.g., windows 10. You might not actually have a separate graphics card, the graphics processor might be built-in, but you can still update the graphics drivers. Alternatively, you could try using the “GLFW” screen type in the Preferences settings in the File menu.
