andlo / picroft-google-aiy-voicekit-skill

Enables google aiy voicehat button
GNU General Public License v3.0
20 stars 15 forks source link

AIY Voice Kit button/led not working after skill install #9

Closed klundry closed 5 years ago

klundry commented 5 years ago

After working through the issues with installing the skill and getting it to work I can trigger mycroft with voice and get a reply through the speaker. The button does not every light up and pushing it does nothing.

andlo commented 5 years ago

That sounds wrong - does the skill install and load ? what is in the log regarding loading ?

klundry commented 5 years ago

I'm not sure. Which log should I be looking at? The main mycroft log?

klundry commented 5 years ago

It looks like the skill is not loading.

04:53:53.307 - mycroft.skills.core:load_skill:117 - INFO - ATTEMPTING TO LOAD SKILL: picroft-google-aiy-voicekit.andlo with ID picroft-google-aiy-voicekit.andlo 04:53:53.326 - mycroft.skills.core:load_skill:159 - ERROR - Failed to load skill: picroft-google-aiy-voicekit.andlo Traceback (most recent call last): File "/home/pi/mycroft-core/mycroft/skills/core.py", line 130, in load_skill skill = skill_module.create_skill() File "/opt/mycroft/skills/picroft-google-aiy-voicekit.andlo/__init__.py", line 56, in create_skill return PicroftGoogleAiyVoicehat() NameError: name 'PicroftGoogleAiyVoicehat' is not defined 04:53:53.332 - SKILLS - DEBUG - {"context": null, "data": {"id": "picroft-google-aiy-voicekit.andlo", "path": "/opt/mycroft/skills/picroft-google-aiy-voicekit.andlo"}, "type": "mycroft.skills.loading_failure"}

klundry commented 5 years ago

Also, adding the mycroft user to the gpio group fails because there is no mycroft user on the system. Only user pi.

niccolosanarico commented 5 years ago

Same identical issue here. I added the pi user to the gpio group - but the log returns the same error as @klundry

andlo commented 5 years ago

Hmmm dont know. I will make a new picroft install soon, and then Ill test and see what is gooing on.

andlo commented 5 years ago

It looks like there is an update of the stuff form google, and that could wery well be the problems... On an running pi with working AIY i just did an apt-get update and apt-get upgrade, and it pulled lots of updates from google. and failed on one of them Errors were encountered while processing: aiy-python-wheels

After a reboot everything still works, but maybe on a fresh install it wouldnt ?

That we must lookinto - as I said, I will flash a rpi soon and try new install.

andlo commented 5 years ago

OK now after I did try installing on fresh flash of Picroft I experianced why you didnt get the latest version fo the skill…..

mycroft-msm do install the skill, but not the latest version, but the version that were commitet to the store. So to get around that you need to do git clone instead. Make sure to remove the bad one first. Like this

mycroft-msm remove picroft-google-aiy-voicekit-skill
cd /opt/mycroft/skills
git clone https://github.com/andlo/picroft-google-aiy-voicekit-skill.git

Then it should install the latest version and it should work out of the box.

niccolosanarico commented 5 years ago

Confirmed, it works. Thank you!