question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

after installation Alexa is not respawning and when i try to play or record anything doesnt work

See original GitHub issue

Thank you for reporting an issue with AlexaPi.

Make sure you are running the latest version of AlexaPi, and look through issues before submitting.

Check out our Wiki, and make sure to look at Debugging, and Audio debugging in particular before filing an issue.

In order to help troubleshooting, be sure to include the following information:

Output of the audio debugging script.

Your OS (including version) where you are running AlexaPi: Note: Raspbian older than Stretch is not supported!

Your hardware platform and model you are running on:

Raspberry Pi model B

Python release (python3 --version):

Python 3.5.3

Description of problem:

i followed installation process and started Alexa but nothing happened so i tried to check my audio system 
when i tried "aplay /usr/share/sounds/alsa/Front_Center.wav"
"arecord -f S16_LE -r 16000 -D your_input_device test.wav"
"aplay -f S16_LE -r 16000 test.wav"
nothing happened even tho my audio system was working before installtion
and when i try to run it in debug mode 
i get "File "/opt/AlexaPi/src/main.py", line 18, in <module>
    import yaml
ImportError: No module named yaml
"

Expected:


Problem-relevant config.yaml entries:


Steps to reproduce:

Traceback (if applicable):


Additional info:

Feb 19 03:26:53 raspberrypi python3[1638]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
Feb 19 03:26:53 raspberrypi python3[1638]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
Feb 19 03:26:53 raspberrypi python3[1638]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
Feb 19 03:26:53 raspberrypi python3[1638]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
Feb 19 03:26:53 raspberrypi python3[1638]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
Feb 19 03:26:53 raspberrypi python3[1638]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
Feb 19 03:26:53 raspberrypi python3[1638]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
Feb 19 03:26:53 raspberrypi python3[1638]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
Feb 19 03:26:53 raspberrypi python3[1638]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file
Feb 19 03:26:53 raspberrypi python3[1638]: ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
Feb 19 03:26:53 raspberrypi python3[1638]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
Feb 19 03:26:53 raspberrypi python3[1638]: ALSA lib confmisc.c:1281:(snd_func_refer) Unable to find definition 'defaults.bluealsa.device'
Feb 19 03:26:53 raspberrypi python3[1638]: ALSA lib conf.c:4528:(_snd_config_evaluate) function snd_func_refer returned error: No such file
Feb 19 03:26:53 raspberrypi python3[1638]: ALSA lib conf.c:4996:(snd_config_expand) Args evaluate error: No such file or directory
Feb 19 03:26:53 raspberrypi python3[1638]: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM bluealsa
Feb 19 03:26:53 raspberrypi python3[1638]: connect(2) call to /tmp/jack-999/default/jack_0 failed (err=No such file or directory)
Feb 19 03:26:53 raspberrypi python3[1638]: attempt to connect to server failed
Feb 19 03:26:54 raspberrypi python3[1638]: INFO: Checking Internet Connection ...
Feb 19 03:26:55 raspberrypi python3[1638]: INFO: Connection OK
Feb 19 03:26:55 raspberrypi python3[1638]: INFO: AVS token: Requesting a new one
Feb 19 03:26:56 raspberrypi python3[1638]: INFO: AVS token: Obtained successfully


Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
jacobkaufmancommented, Oct 3, 2020

Hi @EmerickH , I have solved my Issue, I use a I2S Soundcard & the declared GPIO Pins used the same as the Soundcard -.- ^^Very Tricky to found out ! But now all work’s fine ! thanks for your help !!

Same using a speaker bonnet too. May I know how you fixed the issue please? TIA!

I fixed this issue by using the “dummy” platform instead of “raspberrypi”.

Edit your config file sudo nano /etc/opt/AlexaPi/config.yaml

Go to the line platform: and replace device: "raspberrypi" with device: "dummy"

This will configure your device to stop using pins 18, 24 and 25 and you will lose the ability to use led’s and a button press, and since you need 18 for the Adafruit Speaker Bonnet this should let the speakers work again.

I’m sure there is probably a way to just disable the use of pin 18 but since I am not going to be using the leds or a button for my project I didn’t dive deeper into this.

After you can run a test by stopping the Alexa service and restarting it into debug mode. You should hear a “hello” come from your speaker in Alexa’s voice if all goes well. Hopefully that helps!

Stop Alexa service sudo systemctl stop AlexaPi.service Start Alexa service in debug mode python3 /opt/AlexaPi/src/main.py -d

Edit: You can also change which pin you want to use for a button in the config file. For example I changed mine from 18 to 22 and now it works fine with the raspberrypi platform selected.

0reactions
KwokCTcommented, Oct 4, 2020

Hi @EmerickH , I have solved my Issue, I use a I2S Soundcard & the declared GPIO Pins used the same as the Soundcard -.- ^^Very Tricky to found out ! But now all work’s fine ! thanks for your help !!

Same using a speaker bonnet too. May I know how you fixed the issue please? TIA!

I fixed this issue by using the “dummy” platform instead of “raspberrypi”.

Edit your config file sudo nano /etc/opt/AlexaPi/config.yaml

Go to the line platform: and replace device: "raspberrypi" with device: "dummy"

This will configure your device to stop using pins 18, 24 and 25 and you will lose the ability to use led’s and a button press, and since you need 18 for the Adafruit Speaker Bonnet this should let the speakers work again.

I’m sure there is probably a way to just disable the use of pin 18 but since I am not going to be using the leds or a button for my project I didn’t dive deeper into this.

After you can run a test by stopping the Alexa service and restarting it into debug mode. You should hear a “hello” come from your speaker in Alexa’s voice if all goes well. Hopefully that helps!

Stop Alexa service sudo systemctl stop AlexaPi.service Start Alexa service in debug mode python3 /opt/AlexaPi/src/main.py -d

Edit: You can also change which pin you want to use for a button in the config file. For example I changed mine from 18 to 22 and now it works fine with the raspberrypi platform selected.

Thanks much for your help Jake! Much appreciated

Read more comments on GitHub >

github_iconTop Results From Across the Web

Alexa Lights up but Won't Respond: 7 Ways to Troubleshoot
If Alexa lights up but won't respond, the most common reason is that it didn't understand you, so repeat the command.
Read more >
How to Fix 8 Common Alexa and Amazon Echo Issues - Lifewire
Thre are several reasons why Alexa and your Echo device might not be working together properly. There may be a simple culprit, such...
Read more >
Alexa Routines Not Working: 8 Fixes - groovyPost
1. Testing Your Alexa Routine · Open the Alexa app. · Tap on the More icon. alexa more menu · Select Routines. alexa...
Read more >
Alexa Doesn't Understand or Respond to Your Request
Alexa Doesn't Understand or Respond to Your Request. Alexa doesn't respond or says she can't understand you. To fix issues with your Echo...
Read more >
8 Common Alexa & Amazon Echo Problems (2021) - YouTube
The common problems include Alexa not responding, Alexa not adding a new device, Echo not connecting to the Wi-Fi, Alexa playing music in ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found