作者achilles2550 (facker)
看板Python
标题[问题] No module named googlesamples.assistant.__main
时间Sun Jan 7 09:59:53 2018
各位高手好
小弟我最近在上玩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 go
oglesamples.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 --device-model-id required when registering a device instance.
相关资料:
https://justjii.justdrink.com.tw/google-assistant-%E5%AE%89%E8%A3%9D/
https://community.htc.com/tw/chat.php?mod=viewthread&tid=75603
请问该如何解决
感谢!!
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 114.45.117.216
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Python/M.1515290399.A.3D7.html
※ 编辑: achilles2550 (114.45.117.216), 01/07/2018 10:10:22
1F:→ kenduest: 建议你可能先看一下 google 官方文件 01/07 16:21
2F:→ kenduest: 你提供那网址文件都是很片段不完整的资讯 01/07 16:22
4F:→ kenduest: 至少这是你用那个套件提供的简易使用说明文件 01/07 16:23
5F:→ kenduest: 至少先完成注册一个装置後再进行後续流程 01/07 16:24
7F:→ achilles2550: 好的 感谢 我再试试 01/07 16:38