无法注册设备

时间:2018-02-05 12:13:08

标签: google-assistant-sdk

当我运行googlesamples-assistant-pushtotalk --device-model-id 'my-model-id' project-id 'my-project-id'时 我收到以下错误:

NFO:root:Connecting to embeddedassistant.googleapis.com
WARNING:root:Device config not found: [Errno 2] No such file or 
directory: '/Users/rick/Library/Application Support/googlesamples-
assistant/device_config.json'
INFO:root:Registering device
ERROR:root:Failed to register device: {
"error": {
     "code": 403,
     "message": "Could not create the device instance. Account doesn't have permission to perform this operation for project sign-language-with-nao. See https://developers.google.com/assistant/sdk/guides/library/python/embed/register-device",
     "status": "PERMISSION_DENIED"
     }
}

我使用了google-oauthlib-tool并确认了对项目所有者帐户的访问权限。 我还设置了一个设备模型(googlesamples-assistant-devicetool register-model),工作正常。 我在mac上使用python 3.6和google-assistant-sdk 0.4.2

任何想法缺少哪些权限?我确保我的帐户是项目的所有者。

1 个答案:

答案 0 :(得分:0)

检查/ home / pi文件夹中的.asoundrc文件。我也做了同样的事情,因为我在该文件中有额外的命令可以解决所有问题。