Google Assistant "There is no module named googles ...."

Whenever I run this command

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

I get an error message:

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

I am not sure what the problem is, because it worked on another device with the same steps.

+6
source share
2 answers

According to the 0.3.0SDK version, gRPC samples use 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 follow the instructions from the SDK and gRPC package and study the sample link

+10
source

I got this error when I did not enter the voice shell

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

and then repeat

(env) pi@raspberrypi:~/voice-recognizer-raspi $ ./src/main.py
+1
source

Source: https://habr.com/ru/post/1017363/


All Articles