Google assistant "No module named googles...."
Asked Answered
B

3

8

Whenever I run this command

py -m googlesamples.assistant.auth_helpers -client-secrets <secrete-location> 

I get an error saying:

C:\Users\chand\AppData\Local\Programs\Python\Python36\python.exe:
  No module named googlesamples.assistant.auth_helpers

I'm not sure what the issue is as it worked on a different device with the same steps.

Bickering answered 18/5, 2017 at 19:23 Comment(5)
which version of the sdk are you using?Entryway
I think 0.3.0 i'm not sure. How can i check that?Bickering
python -m pip show google-assistant-sdkEntryway
Also make sure you are running this command from the virtualenv where you pip installed the google-assistant-sdk packageEntryway
@Entryway i'm using version 0.3.0Bickering
E
13

As per version 0.3.0 of the SDK the gRPC samples are using a different auth helpers.

pip install --upgrade google-auth-oauthlib[tool]
google-oauthlib-tool --client-secrets path/to/client_secret_XXXXX.json --scope https://www.googleapis.com/auth/assistant-sdk-prototype --save --headless

From there, you should be able to follow the instructions from the SDK package and gRPC package page and explore the reference sample

Entryway answered 21/5, 2017 at 17:16 Comment(0)
W
2

I got this error when I didn't enter the voice shell

. /home/pi/bin/voice-recognizer-shell.sh

then rerun

(env) pi@raspberrypi:~/voice-recognizer-raspi $ ./src/main.py
Womanize answered 6/6, 2017 at 18:11 Comment(0)
M
2

I have got the same Issue and I used these commands

python3 -m pip install --upgrade google-auth-oauthlib[tool]

google-oauthlib-tool --scope https://www.googleapis.com/auth/assistant-sdk- prototype \
  --scope https://www.googleapis.com/auth/gcm \
  --save --headless --client-secrets /path/to/client_secret_client-id.json

Be Sure to replace the path to client_Secrets file.

It worked for me. Hope this helps.

Moritz answered 31/7, 2018 at 16:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.