Google assistant “No module named googles…”

后端 未结 3 838
有刺的猬
有刺的猬 2021-02-06 05:48

Whenever I run this command

py -m googlesamples.assistant.auth_helpers -client-secrets  

I get an error saying:

<
相关标签:
3条回答
  • 2021-02-06 06:23

    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.

    0 讨论(0)
  • 2021-02-06 06:28

    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
    
    0 讨论(0)
  • 2021-02-06 06:44

    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

    0 讨论(0)
提交回复
热议问题