Google 助理 "No module named googles...."
Google assistant "No module named googles...."
每当我 运行 这个命令
py -m googlesamples.assistant.auth_helpers -client-secrets <secrete-location>
我收到一条错误消息:
C:\Users\chand\AppData\Local\Programs\Python\Python36\python.exe:
No module named googlesamples.assistant.auth_helpers
我不确定问题出在哪里,因为它在不同的设备上以相同的步骤运行。
根据 SDK 版本 0.3.0
,gRPC 示例使用不同的身份验证助手。
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
从那里,您应该能够按照 SDK package and gRPC package page and explore the reference sample
中的说明进行操作
没有输入语音就出现这个错误shell
. /home/pi/bin/voice-recognizer-shell.sh
然后重新运行
(env) pi@raspberrypi:~/voice-recognizer-raspi $ ./src/main.py
我遇到了同样的问题,我使用了这些命令
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
务必替换 client_Secrets 文件的路径。
它对我有用。希望这可以帮助。
每当我 运行 这个命令
py -m googlesamples.assistant.auth_helpers -client-secrets <secrete-location>
我收到一条错误消息:
C:\Users\chand\AppData\Local\Programs\Python\Python36\python.exe:
No module named googlesamples.assistant.auth_helpers
我不确定问题出在哪里,因为它在不同的设备上以相同的步骤运行。
根据 SDK 版本 0.3.0
,gRPC 示例使用不同的身份验证助手。
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
从那里,您应该能够按照 SDK package and gRPC package page and explore the reference sample
中的说明进行操作没有输入语音就出现这个错误shell
. /home/pi/bin/voice-recognizer-shell.sh
然后重新运行
(env) pi@raspberrypi:~/voice-recognizer-raspi $ ./src/main.py
我遇到了同样的问题,我使用了这些命令
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
务必替换 client_Secrets 文件的路径。
它对我有用。希望这可以帮助。