Skip to content
This repository has been archived by the owner on Feb 9, 2023. It is now read-only.

Traceback (most recent call last): #270

Closed
seanandre opened this issue Jan 30, 2018 · 5 comments
Closed

Traceback (most recent call last): #270

seanandre opened this issue Jan 30, 2018 · 5 comments

Comments

@seanandre
Copy link

I'm getting a weird message when I run the Check Audio on my desktop. The console shows this

Traceback (most recent call last):
File "/home/pi/AIY-projects-python/checkpoints/check_audio.py", line 158, in
main()
File "/home/pi/AIY-projects-python/checkpoints/check_audio.py", line 153, in main
do_checks()
File "/home/pi/AIY-projects-python/checkpoints/check_audio.py", line 111, in do_checks
if not check_voicehat_present():
File "/home/pi/AIY-projects-python/checkpoints/check_audio.py", line 70, in check_voicehat_present
card_id = CARDS_ID[get_aiy_device_name()]
KeyError: None
Press Enter to close...

Possible bad Voice Hat? I'm running a new Pi 3 B with a fresh image flash of 2018-01-03. I even tried cloning a copy of the repo and still get the same message. Everything is also wired perfectly. Check Cloud and Check Wifi work, just not Check audio. I also get some kinda system kernel modules not loaded at startup. Not sure if this is related, but I did do sudo apt-get update, dpkg --configure -a, and dist-upgrade and still doesn't seem to fix it. Any ideas?

@seanandre
Copy link
Author

I did a "git checkout voicekit" and now I get a different message.

Failed to find the voiceHAT soundcard. Refer to HACKING.md for how to
setup the voiceHAT driver: https://git.io/v99yK
Press Enter to close...

@drigz
Copy link
Member

drigz commented Jan 30, 2018

This looks like a duplicate of #255. Could you try this workaround and let us know if it works for you?

Run the following commands to enable the audio driver. Check Audio will still fail, but the demos should work normally:

git checkout aiyprojects
sudo dtoverlay googlevoicehat-soundcard
sudo leafpad /boot/config.txt

In the text editor, find the lines:

# dtoverlay=i2s-mmap
# dtoverlay=googlevoicehat-soundcard

and uncomment them (remove the #s) to give:

dtoverlay=i2s-mmap
dtoverlay=googlevoicehat-soundcard

@seanandre
Copy link
Author

seanandre commented Jan 30, 2018

Okay great, that seemed to do the trick. The "Check Audio" file on desktop doesn't work but when you run a demo script it does. To new users who bought the kit and are using the MagPi instructions, ignore the part in Chapter 6 Step 7 where it says to run "src/cloudspeech_demo.py" since it no longer exist in that folder. Use "cd src/examples/voice" and then run "python cloudspeech_demo.py" and have at it. Thanks for your help drigz!

@seanandre seanandre reopened this Jan 30, 2018
@seanandre
Copy link
Author

seanandre commented Jan 30, 2018

I'll keep this open if anyone has any ideas what the fail to load system kernels is using the latest image provided. I also have some bad lag, but I'll give the benefit of the doubt it's my wifi location in this house lol.

@drigz
Copy link
Member

drigz commented Jan 30, 2018

"fail to load system kernels" is a known issue (just filed #272) - you can safely ignore it.

Thanks for the feedback about the workaround! Enjoy the kit :)

@drigz drigz closed this as completed Jan 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants