warchildmd / google-assistant-hotword-raspi

Simple Google Assistant with hotword activation from Snowboy setup for my Pi Zero W.
MIT License
153 stars 32 forks source link

cannot import name assistant_helpers #7

Open gain9999 opened 7 years ago

gain9999 commented 7 years ago

After I ran gassistant.py I got the following error. Any suggestion? I ran it on Pi Zero W, python 2.7.9

Traceback (most recent call last):
  File "gassistant.py", line 6, in <module>
    from assistant import Assistant
  File "/home/pi/google-assistant-hotword-raspi-master/assistant.py", line 9, in <module>
    from googlesamples.assistant import (
ImportError: cannot import name assistant_helpers
Wqrld commented 7 years ago

did you move a file?

Wqrld commented 7 years ago

nope i have the same problem now

Wqrld commented 7 years ago

this issue is likely related to python not being able to find googlesamples

Wqrld commented 7 years ago

progress: this project seems to be built for https://github.com/googlesamples/assistant-sdk-python/blob/f7f6d03a307f6bbedbbc0cbb82d88d8348c22e64/googlesamples/assistant/common_settings.py

edit: it is a newer version

edit 2: i give up for today, 7 hours of working on it is way too much. This project just needs an update for the new names which were moved around

Wqrld commented 7 years ago

progress: https://gist.github.com/aycgit/29ad57e45b9e9d28cc9040c8fd32b1ea (needs cleanup) i currently have an alsa problem because snowboy does not close properly...

sipvoip commented 7 years ago

Having the same issue, I can run googlesamples-assistant-pushtotalk, but get and error when I try to use with hotword.

root@raspberry:~/google-assistant-hotword-raspi# python gassistant.py models/snowboy.umdl Traceback (most recent call last): File "gassistant.py", line 6, in from assistant import Assistant File "/root/google-assistant-hotword-raspi/assistant.py", line 9, in from googlesamples.assistant import ( ImportError: cannot import name assistant_helpers