Expected model version 0.17.0 but found 0.19.0


#1

downloaded assistant won’t be recognized by snips add-on in home assistant


#2

Update the snips addin inside HA
This addin is not created by snips, so if there is no update you will have to contact the creator of the addin


#3

It’s a totally fresh installation. Everything is up to date. Managed to get a custom assistant in the hass add-on , the text is captured but no intent is recognized…

INFO:snips_nlu_hermes: loading nlu engine “/usr/share/snips/assistant/nlu_engine”
ERROR:snips_nlu_hermes: nlu thread ended with error: Unable to read file ‘/usr/share/snips/assistant/nlu_engine/nlu_engine.json’
-> caused by: Expected model version 0.17.0 but found 0.19.0
1551950833: Socket error on client snips-nlu|185-core-snips-1, disconnecting.
ERROR:snips_nlu : Fail to wait end of pipeline
-> caused by: Unable to read file ‘/usr/share/snips/assistant/nlu_engine/nlu_engine.json’
-> caused by: Expected model version 0.17.0 but found 0.19.0
ERROR:rumqtt::client : snips-nlu|185-core-snips-1 Disconnected: (Error(SyncMpsc(Disconnected), State { next_error: None, backtrace: None }))
2019-03-07 11:27:13,758 INFO exited: snips-nlu (exit status 1; not expected)
2019-03-07 11:27:14,762 INFO gave up: snips-nlu entered FATAL state, too many start retries too quickly

I get this error in snips log, everything else seems to be ok

1551950826: New connection from 127.0.0.1 on port 1883.
1551950826: New client connected from 127.0.0.1 as snips-asr|71-core-snips-3 (c0, k10).
INFO:snips_asr: Connecting using MQTT site-id default
INFO:snips_asr_hermes: Using model from “/usr/share/snips/assistant/custom_asr”
INFO:snips_kaldi::decode::model: Loading model v2
INFO:snips_asr_lib::parameters_overriding: Overriding beam_size: 8
INFO:snips_asr_hermes : Preparing decoder
2019-03-07 11:27:06,821 INFO success: snips-tts entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-03-07 11:27:06,824 INFO success: snips-dialogue entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-03-07 11:27:06,828 INFO success: snips-asr entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-03-07 11:27:06,839 INFO spawned: ‘snips-nlu’ with pid 157
2019-03-07 11:27:06,843 INFO success: snips-analytics entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-03-07 11:27:06,844 INFO success: snips-hotword entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2019-03-07 11:27:06,844 INFO success: snips-audio-server entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
1551950826: New connection from 127.0.0.1 on port 1883.
1551950826: New client connected from 127.0.0.1 as snips-nlu|157-core-snips-1 (c0, k10).

…any clue??


#4

what do you get with snips-flu --version


#5

that’s the version

snips-asr 0.60.8
snips-audio-server 0.60.8
snips-dialogue 0.60.8
snips-hotword 0.60.8
snips-nlu 0.60.8


#6

you said you had the latest??

the latest version for snips is 0.61.1

NLU v0.60.8 wants the console version 17
but since the console has been updated and the assistant you would have download would have been v19 then you need to use the latest NLU 0.61.1 for it to work

update snips


#7

the add-on in home assistant wii download 0.60.8
how can I bring it to date??


#8

HA has nothing to do with installing/updating or running snips

open a terminal and type in and run
apt-get update && apt-get upgrade snips-platform-voice


#9

There’s an add-on for hass.io that is an installation of snips in a separate docker container (hass.io is itself a docker container running Home Assistant). There’s no simple access to the container for installing updates to snips. You can run the commands above in the container, but the next time you restart the snips add-on – to update your assistant, e.g. – you might lose those updates (I’ve never looked closely at how the add-on containers are configured, so the updates might be persistent). I’d recommend doing your own docker container for snips, since the add-on is extremely limited. See https://github.com/dYalib/snips-docker for one example that’s easily extended.