【发布时间】:2020-11-28 15:03:10
【问题描述】:
使用本指南在我的 pi 上安装 Google 助手:https://developers.google.com/assistant/sdk/guides/library/python/embed/run-sample
(env) pi@raspberrypi:~ $ source env/bin/activate
(env) pi@raspberrypi:~ $ googlesamples-assistant-hotword --project_id 'celius-54926' --device_model_id 'celius-54926-celius-qyn1r6'
device_model_id: celius-54926-celius-qyn1r6
device_id: A1CE24415E5C880BCA74644CD6315DC2
Segmentation fault
【问题讨论】:
-
你有哪个版本的SDK?你可以通过运行 pip freeze 来找出答案。
-
(env) pi@raspberrypi:~ $ pip freeze cachetools==2.1.0 certifi==2018.4.16 cffi==1.11.5 chardet==3.0.4 click==6.7 enum34== 1.1.6 期货==3.1.1 google-assistant-grpc==0.2.0 google-assistant-library==1.0.0 google-assistant-sdk==0.5.0 google-auth==1.4.1 google-auth -oauthlib==0.2.0 googleapis-common-protos==1.5.3 grpcio==1.12.0 idna==2.6 oauthlib==2.0.7 pathlib2==2.3.2 pkg-resources==0.0.0 protobuf== 3.5.2.post1 pyasn1==0.4.2 pyasn1-modules==0.2.1 pycparser==2.18 requests==2.18.4 requests-oauthlib==0.8.0 rsa==3.4.2 六==1.11.0 sounddevice ==0.3.11 坚韧==4.12.0 urllib3==1.22
-
你能在 GitHub 页面上提出问题吗:github.com/googlesamples/assistant-sdk-python/issues?
-
我遇到了同样的问题并尝试了所有建议(为项目启用了助手 api,使用
googlesamples-assistant-devicetool删除和注册我的设备。)我相信 devicetool 正在工作,因为我可以注册新设备或删除现有设备并在设备注册页面上查看更改。我试过googlesamples-assistant-hotword和google-assistant-demo都给我Segmentation Fault没有更多信息。 -
另外,根据文档,
When you run the sample the first time, it will generate a device instance for your particular device.但是在我运行googlesamples-assistant-hotword然后使用googlesamples-assistant-devicetool --project-id my-prj-id list --device之后,没有创建设备实例。我手动创建了一个,但仍然出现段错误。