Google Assistant on Raspberry pi Segmentation fault

♀尐吖头ヾ 提交于 2019-11-29 14:40:42

问题


Installing Google assistant on my pi with this guide: 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

回答1:


I had the same issue.

I carried on reading the page : https://developers.google.com/assistant/sdk/guides/library/python/embed/run-sample under the heading "Find the device instance ID" it seems my device was not registered.

So I manually registered the device from the pi with the help page here: https://developers.google.com/assistant/sdk/reference/device-registration/device-tool#register-device.

(env) pi@raspberrypi:~ $  googlesamples-assistant-devicetool --project-id YOUR_DEVICE_ID register-device --device 4D609xxxxxxxxxxxxxxxxxxx --model YOUR_MODEL_ID --client-type SERVICE
Creating new device
Error: Failed to register device: 403
Google Assistant API has not been used in project 5739xxxxxxxx before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/embeddedassistant.googleapis.com/overview?project=5739xxxxxxxx then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

So I followed the link and enabled the API under my google account, and retried.

(env) pi@raspberrypi:~ $ googlesamples-assistant-devicetool --project-id YOUR-PROJECT-ID register-device --device 4D60xxxxxxxxxxxxxxx --model YOUR_MODEL_ID --client-type SERVICE

Creating new device

Device instance 4D60xxxxxxxxx successfully registered

Now it works ok.




回答2:


I was facing the same issue. After a lot of research, I found that there was a new version of google-assistant-library

Once I upgraded the same to v1.0.1 from 1.0.0, the issue was resolved.

Open your env and run

python -m pip install --upgrade google-assistant-library==1.0.1

Let me know if any issues.




回答3:


I face same problem for Ubuntu assistant setup, I found my google assistant api was not enabled. I enable it from api console and it started working.



来源:https://stackoverflow.com/questions/50440960/google-assistant-on-raspberry-pi-segmentation-fault

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!