0

I try to execute this code but it results in the following error.

(env) pi@raspberrypi:~ $ googlesamples-assistant-pushtotalk --project-id inner-bonus-190416 --device-model-id inner-bonus-190416

INFO:root:Connecting to embeddedassistant.googleapis.com

WARNING:root:Device config not found: [Errno 2] No such file or directory: '/home/pi/.config/googlesamples-assistant/device_config.json'
INFO:root:Registering device
ERROR:root:Failed to register device: {
  "error": {
    "code": 400,
    "message": "Could not create the device instance. Client type need to be specified as SDK_LIBRARY or SDK_SERVICE.",
    "status": "INVALID_ARGUMENT"
  }
}
Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
  • 1
    Please tell us what your problem is after reading: https://stackoverflow.com/help/mcve – Jonathan Jan 09 '18 at 15:05
  • i type in (env) pi@raspberrypi:~ $ googlesamples-assistant-pushtotalk --project-id inner-bonus-190416 --device-model-id inner-bonus-190416 But then i get an erro – John Clark Jan 09 '18 at 15:11
  • please edit your question explaining what you do, what your environment is and consider using the tools like ```this is some code``` to make code readable. – Jonathan Jan 09 '18 at 15:13
  • After editing your question I can tell you that the configuration file at ```/home/pi/.config/googlesamples-assistant/device_config.json``` is missing. The error itself tells you that you need to add another argument or maybe configure it in the config if it's an ```SDK_LIBRARY``` or a ```SDK_SERVICE``` – Jonathan Jan 09 '18 at 15:18
  • This is the error: Could not create the device instance. Client type need to be specified as SDK_LIBRARY or SDK_SERVICE.", – John Clark Jan 09 '18 at 15:18
  • 1
    but if the error: "message": "Could not create the device instance. Client type need to be specified as SDK_LIBRARY or SDK_SERVICE.", was fixed then it would create the device_config.json i think – John Clark Jan 09 '18 at 15:19
  • do you kow how to fix yet – John Clark Jan 09 '18 at 16:42

0 Answers0