# Mycroft on raspberry pi gives me this error and stops working

**URL:** https://community.openconversational.ai/t/mycroft-on-raspberry-pi-gives-me-this-error-and-stops-working/1314
**Category:** Archive - Former Random Mycroft Category
**Created:** [February 2, 2017, 9:26pm UTC](https://community.openconversational.ai/t/mycroft-on-raspberry-pi-gives-me-this-error-and-stops-working/1314 "2017-02-02T21:26:55Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![elblogbruno](https://community.openconversational.ai/user_avatar/community.openconversational.ai/elblogbruno/32/583_2.png) [@elblogbruno](https://community.openconversational.ai/u/elblogbruno)
#### Post date: [February 2, 2017, 9:26pm UTC](https://community.openconversational.ai/t/mycroft-on-raspberry-pi-gives-me-this-error-and-stops-working/1314/1 "2017-02-02T21:26:56Z")

</div>

When I start Mycroft on raspberry pi it gives me this error and Mycroft stops working.  
This happens every time I turn it on.

loop = RecognizerLoop()  
File “/usr/local/lib/python2.7/site-packages/mycroft\_core-0.8.1-py2.7.egg/mycroft/client/speech/listener.py”, line 184, in **init**  
self.mycroft\_recognizer = self.create\_mycroft\_recognizer(rate, lang)  
File “/usr/local/lib/python2.7/site-packages/mycroft\_core-0.8.1-py2.7.egg/mycroft/client/speech/listener.py”, line 194, in create\_mycroft\_recognizer  
return LocalRecognizer(wake\_word, phonemes, threshold, rate, lang)  
File “/usr/local/lib/python2.7/site-packages/mycroft\_core-0.8.1-py2.7.egg/mycroft/client/speech/local\_recognizer.py”, line 40, in **init**  
self.decoder = Decoder(self.create\_config(dict\_name))  
File “/usr/local/lib/python2.7/site-packages/pocketsphinx/pocketsphinx.py”, line 271, in **init**  
this = \_pocketsphinx.new\_Decoder(\*args)  
RuntimeError: new\_Decoder returned -1

Thanks!

---

<div class="post-metadata">

### Author: ![Ypsingh18](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/y/9d8465/32.png) [@Ypsingh18](https://community.openconversational.ai/u/Ypsingh18)
#### Post date: [June 16, 2017, 7:34pm UTC](https://community.openconversational.ai/t/mycroft-on-raspberry-pi-gives-me-this-error-and-stops-working/1314/2 "2017-06-16T19:34:32Z")

</div>

Were you able to fix the issue because i am also having the same problem

---

<div class="post-metadata">

### Author: ![Thorsten](https://community.openconversational.ai/user_avatar/community.openconversational.ai/thorsten/32/4539_2.png) [@Thorsten](https://community.openconversational.ai/u/Thorsten)
#### Post date: [June 17, 2017, 9:10pm UTC](https://community.openconversational.ai/t/mycroft-on-raspberry-pi-gives-me-this-error-and-stops-working/1314/3 "2017-06-17T21:10:18Z")

</div>

Hey there.  
I’m getting nearly the same error when trying to use a german wake word:

2017-06-18 16:33:28,426 - mycroft.messagebus.client.ws - INFO - Connected  
ERROR: “pocketsphinx.c”, line 233: Cannot redirect log output  
Traceback (most recent call last):  
File “/home/thorsten/mycroft-core/mycroft/client/speech/main.py”, line 221, in   
main()  
File “/home/thorsten/mycroft-core/mycroft/client/speech/main.py”, line 213, in main  
loop.run()  
File “/home/thorsten/mycroft-core/mycroft/client/speech/listener.py”, line 251, in run  
self.start\_async()  
File “/home/thorsten/mycroft-core/mycroft/client/speech/listener.py”, line 214, in start\_async  
self, self.microphone)  
File “/home/thorsten/mycroft-core/mycroft/client/speech/pocketsphinx\_audio\_consumer.py”, line 72, in **init**  
self.decoder = Decoder(self.create\_decoder\_config(model\_lang\_dir))  
File “/home/thorsten/.virtualenvs/mycroft/local/lib/python2.7/site-packages/pocketsphinx/pocketsphinx.py”, line 271, in **init**  
this = \_pocketsphinx.new\_Decoder(\*args)  
RuntimeError: new\_Decoder returned -1

---

<div class="post-metadata">

### Author: ![baconator](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/b/d07c76/32.png) [@baconator](https://community.openconversational.ai/u/baconator)
#### Post date: [July 5, 2017, 9:58pm UTC](https://community.openconversational.ai/t/mycroft-on-raspberry-pi-gives-me-this-error-and-stops-working/1314/4 "2017-07-05T21:58:55Z")

</div>

Is an existing instance already running? How are you starting mycroft? Does the service and skill pieces load and work as expected (ie, no major errors in those logs)?

---

<div class="post-metadata">

### Author: ![lifenjoy51](https://community.openconversational.ai/letter_avatar_proxy/v4/letter/l/d78d45/32.png) [@lifenjoy51](https://community.openconversational.ai/u/lifenjoy51)
#### Post date: [July 9, 2017, 10:38am UTC](https://community.openconversational.ai/t/mycroft-on-raspberry-pi-gives-me-this-error-and-stops-working/1314/5 "2017-07-09T10:38:10Z")

</div>

I got this error after change “PHONEMES”.  
and solved correcting phnemes according to this site.  
[http://www.speech.cs.cmu.edu/cgi-bin/cmudict](http://www.speech.cs.cmu.edu/cgi-bin/cmudict)  
I think that wrong phonemes occur this error.

---

<div class="post-metadata">

### Author: ![LxR](https://community.openconversational.ai/user_avatar/community.openconversational.ai/lxr/32/827_2.png) [@LxR](https://community.openconversational.ai/u/LxR)
#### Post date: [October 9, 2017, 1:20am UTC](https://community.openconversational.ai/t/mycroft-on-raspberry-pi-gives-me-this-error-and-stops-working/1314/6 "2017-10-09T01:20:30Z")

</div>

Were you able to solve it? If yes then how. Thanks

---

<div class="post-metadata">

### Author: ![Mn0491](https://community.openconversational.ai/user_avatar/community.openconversational.ai/mn0491/32/729_2.png) [@Mn0491](https://community.openconversational.ai/u/Mn0491)
#### Post date: [October 12, 2017, 3:45pm UTC](https://community.openconversational.ai/t/mycroft-on-raspberry-pi-gives-me-this-error-and-stops-working/1314/7 "2017-10-12T15:45:31Z")

</div>

this maybe an issue with messing with the wakeword. If mycroft doesn’t have the correct phonemes then the wakeword recognizer goes out of whack. if you use the site above you should be able to get the correct phonemes.
