No module named googlesamples.assistant.auth_helpers

后端 未结 2 1055
无人共我
无人共我 2021-01-15 23:02

I\'m receiving this error when trying to install Google Assistant, and I am using Windows 10, Python 3.6 and SDK 0.3.3. C

相关标签:
2条回答
  • 2021-01-15 23:24

    After running command: google-oauthlib-tool --client-secrets c:\client_secret_XXXXX.json --scope https://www.googleapis.com/auth/assistant-sdk-prototype --save --headless

    On very next line, it says: Please visit this URL to authorize this application

    Open this link and authorize on google and it will provide authorization code, enter this code against "Enter the authorization code:" and you are done.

    0 讨论(0)
  • 2021-01-15 23:36

    Easy fix but hard to find. You just need to make sure that all the settings are there as mentioned before. I completed the above actions, and then I set it to administrator and input the 3 commands: pip install --upgrade google-api-python-client

    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

    Success!

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