# There is a problem after running experiment: No module named 'psychtoolbox'

**URL:** <https://discourse.psychopy.org/t/there-is-a-problem-after-running-experiment-no-module-named-psychtoolbox/7798>\
**Category:** Builder\
**Created:** [May 16, 2019, 8:01am UTC](https://discourse.psychopy.org/t/there-is-a-problem-after-running-experiment-no-module-named-psychtoolbox/7798 "2019-05-16T08:01:20Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![raheasman](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/raheasman/32/4991_2.png) [@raheasman](https://discourse.psychopy.org/u/raheasman)\
**Post date:** [May 16, 2019, 8:01am UTC](https://discourse.psychopy.org/t/there-is-a-problem-after-running-experiment-no-module-named-psychtoolbox/7798/1 "2019-05-16T08:01:20Z")

</div>

hello  
I recently install stand alone version of psychopy and paython.  
Now, i create an experimental with PsychoPy v.3.1.0 builder.  
I want to teach students L2 words in three different ways by the PsychoPy. My experiment consist of three trial and also three loop.  
I arrange these according to the existed rules, But a long warning and error are showed after running the experiment. The first one is : There is a problem after running experiment: No module named ‘psychtoolbox’.  
Woud you please help me? Does any additional software need to install?

---

<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, 8:08am UTC](https://discourse.psychopy.org/t/there-is-a-problem-after-running-experiment-no-module-named-psychtoolbox/7798/2 "2019-05-16T08:08:12Z")

</div>

HI @raheasman, can you please copy and paste the whole error message?

---

<div class="post-metadata">

**Author:** ![raheasman](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/raheasman/32/4991_2.png) [@raheasman](https://discourse.psychopy.org/u/raheasman)\
**Post date:** [May 16, 2019, 10:34am UTC](https://discourse.psychopy.org/t/there-is-a-problem-after-running-experiment-no-module-named-psychtoolbox/7798/3 "2019-05-16T10:34:52Z")

</div>

Of course, yes. I send two picture of this long error.

 ![100](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/b/3/b3b28c4c39b2f7cdcd7907e359d746050bf4be66.jpeg)

 ![101](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/6/e/6e7101c6f6733a2eaaa9cf2dabd8caefe24fa847.jpeg)

and this is a picture of my experiment flow. 👇

 ![103](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/9/c/9cf90464636774f1e72c03d89cdc7392279faccb.jpeg)  
Thank you

---

<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, 10:55am UTC](https://discourse.psychopy.org/t/there-is-a-problem-after-running-experiment-no-module-named-psychtoolbox/7798/4 "2019-05-16T10:55:33Z")

</div>

Thanks @felipeviegas. The `psychtoolbox` message is actually just a warning, it means you have not got the recent psychtoolbox module, but your keyboard will still work. You would ideally install the latest version of PsychoPy (3.1.2) to get the latest low latency Psychtoolbox keyboard module.

The actual error relates to the format of the files you are trying to play in psychopy. I think you need to use the Pyo backend to get flac files working ,alternatively, change the format to a wav file, or .ogg.

---

<div class="post-metadata">

**Author:** ![raheasman](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/raheasman/32/4991_2.png) [@raheasman](https://discourse.psychopy.org/u/raheasman)\
**Post date:** [May 16, 2019, 12:23pm UTC](https://discourse.psychopy.org/t/there-is-a-problem-after-running-experiment-no-module-named-psychtoolbox/7798/5 "2019-05-16T12:23:48Z")

</div>

Really! I thought this warning was more important than an flac format error.  
Are you sure that the wav or ogg files are readable.Yesterday, I changed the mp3 format to flac files because of recommondation of this site. By the way thanks so much, I will change my material according to your reccomendation. I hope it works.  
I will announce the result.  
Again, thank you

---

<div class="post-metadata">

**Author:** ![felipeviegas](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/felipeviegas/32/4793_2.png) [@felipeviegas](https://discourse.psychopy.org/u/felipeviegas)\
**Post date:** [May 16, 2019, 1:18pm UTC](https://discourse.psychopy.org/t/there-is-a-problem-after-running-experiment-no-module-named-psychtoolbox/7798/6 "2019-05-16T13:18:58Z")

</div>

I am not sure about what I did, but you’re welcome!! 😁 😁 😁

---

<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, 2:29pm UTC](https://discourse.psychopy.org/t/there-is-a-problem-after-running-experiment-no-module-named-psychtoolbox/7798/7 "2019-05-16T14:29:56Z")

</div>

Ha, oh dear 😄

---

<div class="post-metadata">

**Author:** ![raheasman](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/raheasman/32/4991_2.png) [@raheasman](https://discourse.psychopy.org/u/raheasman)\
**Post date:** [May 16, 2019, 5:48pm UTC](https://discourse.psychopy.org/t/there-is-a-problem-after-running-experiment-no-module-named-psychtoolbox/7798/8 "2019-05-16T17:48:18Z")

</div>

I run the simple experiment with only one sound, like this 👇

 ![s1](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/1/f/1f1de36c288d9b6cac5bc5cbb7f7f827c263b78a.jpeg)  
i do it twice with .ogg and .wav, but there are errors in both of them  
 ![ogg](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/f/a/fa5e00c6d350175e37806929e3046e0827f40694.jpeg)

 ![wav](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/f/5/f5957150154aa2d4c6a4c6b702fff1f02af5c739.jpeg)

would you please help me with these simple experiments?

---

<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:35pm UTC](https://discourse.psychopy.org/t/there-is-a-problem-after-running-experiment-no-module-named-psychtoolbox/7798/9 "2019-05-16T21:35:49Z")

</div>

Hi @raheasman, how did you convert your files to wav? Also, would you mind sharing this minimal example with files?

---

<div class="post-metadata">

**Author:** ![raheasman](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/raheasman/32/4991_2.png) [@raheasman](https://discourse.psychopy.org/u/raheasman)\
**Post date:** [May 17, 2019, 6:32am UTC](https://discourse.psychopy.org/t/there-is-a-problem-after-running-experiment-no-module-named-psychtoolbox/7798/10 "2019-05-17T06:32:51Z")

</div>

I use VLC media player to convert the .mp3 format to .wav format. After converting, I run the .wav file seperately, this file is readable by each player. But it is not work in PsychoPy.

---

<div class="post-metadata">

**Author:** ![raheasman](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/raheasman/32/4991_2.png) [@raheasman](https://discourse.psychopy.org/u/raheasman)\
**Post date:** [May 17, 2019, 6:39am UTC](https://discourse.psychopy.org/t/there-is-a-problem-after-running-experiment-no-module-named-psychtoolbox/7798/11 "2019-05-17T06:39:41Z")

</div>

Here is the ‘.wav sound file’  
[https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/2X/8/81a9338f9346a7c1f2dbf79b9d5155d2884507f2.wav](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/2X/8/81a9338f9346a7c1f2dbf79b9d5155d2884507f2.wav)

and ‘.psyexp’  
[test-video.psyexp](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/2X/4/4c679ec5102fd7b8bed62d4079d993ad74b26e59.psyexp) (3.2 KB)

---

<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, 8:57am UTC](https://discourse.psychopy.org/t/there-is-a-problem-after-running-experiment-no-module-named-psychtoolbox/7798/12 "2019-05-17T08:57:06Z")

</div>

Sorry, I cannot access the wav file. Does your wav file play in VLC after you have created it? Also, can you try this file and see if you get the error?

[https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/2X/c/c8165b2e0af1c5ff56ba63ff90cb292d23925580.wav](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/2X/c/c8165b2e0af1c5ff56ba63ff90cb292d23925580.wav)

---

<div class="post-metadata">

**Author:** ![raheasman](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/raheasman/32/4991_2.png) [@raheasman](https://discourse.psychopy.org/u/raheasman)\
**Post date:** [May 17, 2019, 9:54am UTC](https://discourse.psychopy.org/t/there-is-a-problem-after-running-experiment-no-module-named-psychtoolbox/7798/13 "2019-05-17T09:54:14Z")

</div>

yes, it does.  
I use your file, the experiment run without any error. So what is the problem. I really confused!  
Maybe it is the result of converting software (VLC player). I will convert the .mp3 file to .wav format by other converting software. Then I will announce the result here. I hope it will solve my problem.  
Thank you.

---

<div class="post-metadata">

**Author:** ![raheasman](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/raheasman/32/4991_2.png) [@raheasman](https://discourse.psychopy.org/u/raheasman)\
**Post date:** [May 17, 2019, 10:12am UTC](https://discourse.psychopy.org/t/there-is-a-problem-after-running-experiment-no-module-named-psychtoolbox/7798/14 "2019-05-17T10:12:31Z")

</div>

I convert the file by another software. I use othe software to convert file. The experiment run without any error with the new created .wav file.  
thanks so much.  
I have a problem about implementation of a new experiment, can i ask it here, or i must create another topic?

---

<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, 10:13am UTC](https://discourse.psychopy.org/t/there-is-a-problem-after-running-experiment-no-module-named-psychtoolbox/7798/15 "2019-05-17T10:13:04Z")

</div>

Great. Best to create a new post for a different problem.
