Finally got Rhasspy working! Now I can't re-train :-(

Below is the log from the Rhasspy Add-on in Hassio

[DEBUG:2020-10-10 19:31:17,448] rhasspyserver_hermes: Loading sentences from [PosixPath('/share/rhasspy/profiles/en/sentences.ini')]
[DEBUG:2020-10-10 19:31:17,449] rhasspyserver_hermes: Generating intent graph
[DEBUG:2020-10-10 19:31:17,452] rhasspynlu.ini_jsgf: Loaded ini file
[DEBUG:2020-10-10 19:31:17,464] rhasspynlu.slots: Running program for slot rhasspy/number,0,100,1: ['/usr/lib/rhasspy/rhasspy-profile/rhasspyprofile/profiles/en/slot_programs/rhasspy/number', '0', '100', '1']
[WARNING:2020-10-10 19:31:17,678] rhasspynlu.slots: Failed to load file/program for slot hass/colors (tried: [PosixPath('/share/rhasspy/profiles/en/slots'), PosixPath('/usr/lib/rhasspy/rhasspy-profile/rhasspyprofile/profiles/en/slots')], [PosixPath('/share/rhasspy/profiles/en/slot_programs'), PosixPath('/usr/lib/rhasspy/rhasspy-profile/rhasspyprofile/profiles/en/slot_programs')])
[WARNING:2020-10-10 19:31:17,680] rhasspynlu.slots: Failed to load file/program for slot hass/entities,light (tried: [PosixPath('/share/rhasspy/profiles/en/slots'), PosixPath('/usr/lib/rhasspy/rhasspy-profile/rhasspyprofile/profiles/en/slots')], [PosixPath('/share/rhasspy/profiles/en/slot_programs'), PosixPath('/usr/lib/rhasspy/rhasspy-profile/rhasspyprofile/profiles/en/slot_programs')])
[WARNING:2020-10-10 19:31:17,682] rhasspynlu.slots: Failed to load file/program for slot hass/entities,cover (tried: [PosixPath('/share/rhasspy/profiles/en/slots'), PosixPath('/usr/lib/rhasspy/rhasspy-profile/rhasspyprofile/profiles/en/slots')], [PosixPath('/share/rhasspy/profiles/en/slot_programs'), PosixPath('/usr/lib/rhasspy/rhasspy-profile/rhasspyprofile/profiles/en/slot_programs')])
[WARNING:2020-10-10 19:31:17,683] rhasspynlu.slots: Failed to load file/program for slot hass/entities,switch (tried: [PosixPath('/share/rhasspy/profiles/en/slots'), PosixPath('/usr/lib/rhasspy/rhasspy-profile/rhasspyprofile/profiles/en/slots')], [PosixPath('/share/rhasspy/profiles/en/slot_programs'), PosixPath('/usr/lib/rhasspy/rhasspy-profile/rhasspyprofile/profiles/en/slot_programs')])
[ERROR:2020-10-10 19:31:17,704] rhasspyserver_hermes: Missing slot $hass/entities,light
Traceback (most recent call last):
  File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/quart/app.py", line 1821, in full_dispatch_request
result = await self.dispatch_request(request_context)
  File "/usr/lib/rhasspy/.venv/lib/python3.7/site-packages/quart/app.py", line 1869, in dispatch_request
return await handler(**request_.view_args)
  File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__main__.py", line 1235, in api_train
result = await core.train()
  File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__init__.py", line 359, in train
word_transform=word_transform,
  File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/train.py", line 106, in sentences_to_graph
sentences, replacements=replacements, add_intent_weights=add_intent_weights
  File "/usr/lib/rhasspy/rhasspy-nlu/rhasspynlu/jsgf_graph.py", line 426, in sentences_to_graph
expand_slots=expand_slots,
  File "/usr/lib/rhasspy/rhasspy-nlu/rhasspynlu/jsgf_graph.py", line 124, in expression_to_graph
expand_slots=expand_slots,
  File "/usr/lib/rhasspy/rhasspy-nlu/rhasspynlu/jsgf_graph.py", line 124, in expression_to_graph
expand_slots=expand_slots,
  File "/usr/lib/rhasspy/rhasspy-nlu/rhasspynlu/jsgf_graph.py", line 194, in expression_to_graph
expand_slots=expand_slots,
  File "/usr/lib/rhasspy/rhasspy-nlu/rhasspynlu/jsgf_graph.py", line 124, in expression_to_graph
expand_slots=expand_slots,
  File "/usr/lib/rhasspy/rhasspy-nlu/rhasspynlu/jsgf_graph.py", line 124, in expression_to_graph
expand_slots=expand_slots,
  File "/usr/lib/rhasspy/rhasspy-nlu/rhasspynlu/jsgf_graph.py", line 100, in expression_to_graph
expand_slots=expand_slots,
  File "/usr/lib/rhasspy/rhasspy-nlu/rhasspynlu/jsgf_graph.py", line 194, in expression_to_graph
expand_slots=expand_slots,
  File "/usr/lib/rhasspy/rhasspy-nlu/rhasspynlu/jsgf_graph.py", line 124, in expression_to_graph
expand_slots=expand_slots,
  File "/usr/lib/rhasspy/rhasspy-nlu/rhasspynlu/jsgf_graph.py", line 124, in expression_to_graph
expand_slots=expand_slots,
  File "/usr/lib/rhasspy/rhasspy-nlu/rhasspynlu/jsgf_graph.py", line 206, in expression_to_graph
assert slot_values, f"Missing slot {slot_name}"
AssertionError: Missing slot $hass/entities,light

So, ummmm, anyone know what I did wrong? :grinning:

It seems like you have an error in your sentences, it can’t find a slot it needs.

1 Like

ah HAH! Thanks! I’ve been pulling my hair out on this all day. I messed with the sentences a while ago, but Rhasspy wasn’t fully working yet, so I was thinking it was slot related. I have much to learn with all these component working together.