[問題] No module named googlesamples.assistant.__main

作者: achilles2550 (facker)   2018-01-07 09:59:53
各位高手好
小弟我最近在上玩google assistant
安裝完後
輸入以下指令啟動
卻得到錯誤訊息
C:\Windows\system32>python -m googlesamples.assistant
z:\python\python.exe: No module named googlesamples.assistant.__main__; 'googlesamples.assistant' is a package and cannot be directly executed
爬到的文章叫我使用以下指令修正
python -m googlesamples.assistant.grpc.pushtotalk
卻得到此結果
C:\Windows\system32>python -m googlesamples.assistant.grpc.pushtotalk
INFO:root:Connecting to embeddedassistant.googleapis.com
WARNING:root:Device config not found: [Errno 2] No such file or directory: 'C:\\Users\\user\\AppData\\Roaming\\googlesaples-assistant\\device_config.json'
INFO:root:Registering device
ERROR:root:Option
作者: kenduest (小州)   2018-01-07 16:21:00
建議你可能先看一下 google 官方文件你提供那網址文件都是很片段不完整的資訊https://pypi.python.org/pypi/google-assistant-sdk/至少這是你用那個套件提供的簡易使用說明文件至少先完成註冊一個裝置後再進行後續流程google 官方文件: https://goo.gl/Zacynt
作者: achilles2550 (facker)   2018-01-07 16:38:00
好的 感謝 我再試試

Links booklink

Contact Us: admin [ a t ] ucptt.com