shivasiddharth / Assistants-Pi

Headless Google Assistant and Alexa on Raspberry Pi
345 stars 116 forks source link

Manual Start of Google Assistant gives "No module named 'google.assistant.library' #49

Closed rutherb closed 6 years ago

rutherb commented 6 years ago

Hi Shiva,

I have followed the correct instructions for the post December 20th installation from this link https://github.com/shivasiddharth/Assistants-Pi#readme but when I try to start the Google Assistant manually using the /home/pi/env/bin/python -u /home/pi/GassistPi/src/main.py --project_id 'replace this with your project id' --device_model_id 'replace this with the model id' command I get an error as below:-

Traceback (most recent call last): File "/home/pi/GassistPi/src/main.py", line 29, in from google.assistant.library import Assistant ImportError: No module named 'google.assistant.library'

Can you help please?

shadowscott commented 6 years ago

I had this same problem. I had to follow instructions here, however @shivasiddharth mentioned that this is not the way to do it. I would like to know why it isn't installed as part of the scripts either.

https://github.com/googlesamples/assistant-sdk-python

rutherb commented 6 years ago

Thanks for the info shadowscott - I will refresh Raspbian and follow above instructions and post update.

shadowscott commented 6 years ago

Sure thing. I will say that I reinstalled Raspbian and installed the google assistant from GassistPi instead. That worked flawlessly without hitch. I'm now trying to get Alexa installed as well (either through AssistantPi which hasn't worked, or maybe AlexaPi or some other method)

If you manage to get both working on the Google AIY Voice Kit, please let me know!!!

nicusorflorin commented 6 years ago

any updates on this?, have the same problem

rutherb commented 6 years ago

Hi - i upgraded to a later Raspberry Pi and reinstalled the Google assistant using these instructions https://github.com/googlesamples/assistant-sdk-python and it installed OK so I think it may have been the version of the PI I was using that caused the issue.