-1

I am trying to get Google Assistant installed on a Windows computer, following the instructions from Set Up Hardware and Network Access (Google Assistant SDK).

I have been able to complete all but the last step. I am at the point of running the sample code. https://developers.google.com/assistant/sdk/guides/service/python/embed/run-sample?refresh=1.

In this last step a 'device instance ID' should be generated, but that does not happen. See the screenshot:

Enter image description here

The error message states that the client type needs to be specified as SDK_LIBRARY or SDK_SERVICE. However, when registering the model the '--client-type [SERVICE|LIBRARY]' option is not allowed (see Registration Tool Help).

How can I run the sample code ... so that it generates a 'device instance ID'?

My problem seems to be similar to an issue reported by another user. This user reported the issue however for the Raspberry Pi, while I am reporting it for a Windows computer. See Raspberry Pi and Google Voice client type

Peter Mortensen
  • 28,342
  • 21
  • 95
  • 123
  • solution: update the library, using the following command py -m pip install --upgrade google-assistant-sdk[samples] Apparently there was a bug in the library. Updating the library solved the issue. – Piet Jansens Jan 14 '18 at 18:18

1 Answers1

0

Navigate to the folder you downloaded the client secrets JSON file to, and paste in the following code:

googlesamples-assistant-devicetool --project-id PROJECT_ID register-model --model 'my-model-identifier' --type LIGHT --trait action.devices.traits.OnOff --manufacturer 'Assistant SDK developer' --product-name 'Assistant SDK light' --description 'Assistant SDK light device'

NB: Replace all details with the correct corresponding details.

Peter Mortensen
  • 28,342
  • 21
  • 95
  • 123
Sir George
  • 373
  • 2
  • 7
  • 20