Trying to download HA Entities I'm getting an error: returned non-zero exit status 1

Good afternoon,
I am having a training issue on my HomeAssistant Add-on based Rhasspy.

I’m using the slot_program from this repository

Thus far I’ve only attempted to add the following to sentences.

[HassTurnOn]
lights = $hass/entities,light
switches = $hass/entities,switch
entities = <lights> | <switches>
turn on [the] (<entities>){name}

It results in an errors as follows:

[ERROR:2021-09-15 16:55:46,188] rhasspyserver_hermes: Command '['fstcompile', '--isymbols=/share/rhasspy/profiles/en/kaldi/model/data/lang/words.txt', '--osymbols=/share/rhasspy/profiles/en/kaldi/model/data/lang/words.txt', '--keep_isymbols=false', '--keep_osymbols=false', '/share/rhasspy/profiles/en/kaldi/language_model.txt', '/share/rhasspy/profiles/en/kaldi/model/data/lang/G.fst']' returned non-zero exit status 1.
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 1306, in api_train
    result = await core.train()
  File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__init__.py", line 471, in train
    raise TrainingFailedException(reason=asr_response.error)
rhasspyserver_hermes.TrainingFailedException: Command '['fstcompile', '--isymbols=/share/rhasspy/profiles/en/kaldi/model/data/lang/words.txt', '--osymbols=/share/rhasspy/profiles/en/kaldi/model/data/lang/words.txt', '--keep_isymbols=false', '--keep_osymbols=false', '/share/rhasspy/profiles/en/kaldi/language_model.txt', '/share/rhasspy/profiles/en/kaldi/model/data/lang/G.fst']' returned non-zero exit status 1.
[ERROR:2021-09-15 16:55:46,188] rhasspyserver_hermes: AsrError(error="Command '['fstcompile', '--isymbols=/share/rhasspy/profiles/en/kaldi/model/data/lang/words.txt', '--osymbols=/share/rhasspy/profiles/en/kaldi/model/data/lang/words.txt', '--keep_isymbols=false', '--keep_osymbols=false', '/share/rhasspy/profiles/en/kaldi/language_model.txt', '/share/rhasspy/profiles/en/kaldi/model/data/lang/G.fst']' returned non-zero exit status 1.", site_id='HA', context=None, session_id='c332c8b2-20d9-4581-8566-e3e1c880abba')
[DEBUG:2021-09-15 16:55:46,186] rhasspyserver_hermes: Handling AsrError (topic=hermes/error/asr, id=acab25b1-652d-4d92-b844-093931eb7fef)
[DEBUG:2021-09-15 16:55:43,543] rhasspyserver_hermes: Handling NluTrainSuccess (topic=rhasspy/nlu/HA/trainSuccess, id=acab25b1-652d-4d92-b844-093931eb7fef)
[DEBUG:2021-09-15 16:55:43,356] rhasspyserver_hermes: Publishing 6792 bytes(s) to rhasspy/nlu/HA/train
[DEBUG:2021-09-15 16:55:43,355] rhasspyserver_hermes: -> NluTrain
[DEBUG:2021-09-15 16:55:43,354] rhasspyserver_hermes: Publishing 6792 bytes(s) to rhasspy/asr/HA/train
[DEBUG:2021-09-15 16:55:43,354] rhasspyserver_hermes: -> AsrTrain
[DEBUG:2021-09-15 16:55:43,352] rhasspyserver_hermes: Finished writing /share/rhasspy/profiles/en/intent_graph.pickle.gz
[DEBUG:2021-09-15 16:55:43,329] rhasspyserver_hermes: Writing /share/rhasspy/profiles/en/intent_graph.pickle.gz
[DEBUG:2021-09-15 16:55:43,032] rhasspynlu.slots: Running program for slot hass/entities,light: ['/share/rhasspy/profiles/en/slot_programs/hass/entities', 'light']
[DEBUG:2021-09-15 16:55:42,638] rhasspynlu.slots: Running program for slot hass/entities,switch: ['/share/rhasspy/profiles/en/slot_programs/hass/entities', 'switch']
[DEBUG:2021-09-15 16:55:42,635] rhasspynlu.ini_jsgf: Loaded ini file
[DEBUG:2021-09-15 16:55:42,635] rhasspyserver_hermes: Generating intent graph
[DEBUG:2021-09-15 16:55:42,634] rhasspyserver_hermes: Loading sentences from [PosixPath('/share/rhasspy/profiles/en/sentences.ini')]
[INFO:2021-09-15 16:55:42,634] rhasspyserver_hermes: Starting training
[DEBUG:2021-09-15 16:55:41,323] rhasspyserver_hermes: Writing /share/rhasspy/profiles/en/sentences.ini
[DEBUG:2021-09-15 09:05:41,487] rhasspyprofile.download: Skipping tts/larynx/hifi_gan/vctk_small/ (/share/rhasspy/profiles/en/tts/larynx/hifi_gan/vctk_small)
[DEBUG:2021-09-15 09:05:41,486] rhasspyprofile.download: (and text_to_speech.system text_to_speech.larynx.vocoder) (larynx vctk_small) ['larynx', 'vctk_small'] = True
[DEBUG:2021-09-15 09:05:41,486] rhasspyprofile.download: (and text_to_speech.system text_to_speech.larynx.vocoder) (larynx vctk_medium) ['larynx', 'vctk_small'] = False
[DEBUG:2021-09-15 09:05:41,486] rhasspyprofile.download: (and text_to_speech.system text_to_speech.larynx.vocoder) (larynx universal_large) ['larynx', 'vctk_small'] = False
[DEBUG:2021-09-15 09:05:41,486] rhasspyprofile.download: (and text_to_speech.system text_to_speech.larynx.default_voice) (larynx kathleen) ['larynx', 'harvard'] = False
[DEBUG:2021-09-15 09:05:41,486] rhasspyprofile.download: (and text_to_speech.system text_to_speech.larynx.default_voice) (larynx ljspeech) ['larynx', 'harvard'] = False
[DEBUG:2021-09-15 09:05:41,486] rhasspyprofile.download: (and text_to_speech.system text_to_speech.larynx.default_voice) (larynx ek) ['larynx', 'harvard'] = False
[DEBUG:2021-09-15 09:05:41,486] rhasspyprofile.download: (and text_to_speech.system text_to_speech.larynx.default_voice) (larynx blizzard_fls) ['larynx', 'harvard'] = False
[DEBUG:2021-09-15 09:05:41,486] rhasspyprofile.download: (and text_to_speech.system text_to_speech.larynx.default_voice) (larynx cmu_slt) ['larynx', 'harvard'] = False
[DEBUG:2021-09-15 09:05:41,486] rhasspyprofile.download: (and text_to_speech.system text_to_speech.larynx.default_voice) (larynx cmu_slp) ['larynx', 'harvard'] = False
[DEBUG:2021-09-15 09:05:41,486] rhasspyprofile.download: (and text_to_speech.system text_to_speech.larynx.default_voice) (larynx cmu_rxr) ['larynx', 'harvard'] = False
[DEBUG:2021-09-15 09:05:41,486] rhasspyprofile.download: (and text_to_speech.system text_to_speech.larynx.default_voice) (larynx cmu_rms) ['larynx', 'harvard'] = False
[DEBUG:2021-09-15 09:05:41,485] rhasspyprofile.download: (and text_to_speech.system text_to_speech.larynx.default_voice) (larynx cmu_lnh) ['larynx', 'harvard'] = False
[DEBUG:2021-09-15 09:05:41,485] rhasspyprofile.download: (and text_to_speech.system text_to_speech.larynx.default_voice) (larynx cmu_ljm) ['larynx', 'harvard'] = False
[DEBUG:2021-09-15 09:05:41,485] rhasspyprofile.download: (and text_to_speech.system text_to_speech.larynx.default_voice) (larynx cmu_ksp) ['larynx', 'harvard'] = False
[DEBUG:2021-09-15 09:05:41,485] rhasspyprofile.download: (and text_to_speech.system text_to_speech.larynx.default_voice) (larynx cmu_jmk) ['larynx', 'harvard'] = False
[DEBUG:2021-09-15 09:05:41,485] rhasspyprofile.download: (and text_to_speech.system text_to_speech.larynx.default_voice) (larynx cmu_fem) ['larynx', 'harvard'] = False
[DEBUG:2021-09-15 09:05:41,485] rhasspyprofile.download: (and text_to_speech.system text_to_speech.larynx.default_voice) (larynx cmu_eey) ['larynx', 'harvard'] = False
[DEBUG:2021-09-15 09:05:41,485] rhasspyprofile.download: (and text_to_speech.system text_to_speech.larynx.default_voice) (larynx cmu_clb) ['larynx', 'harvard'] = False
[DEBUG:2021-09-15 09:05:41,485] rhasspyprofile.download: (and text_to_speech.system text_to_speech.larynx.default_voice) (larynx cmu_bdl) ['larynx', 'harvard'] = False
[DEBUG:2021-09-15 09:05:41,485] rhasspyprofile.download: (and text_to_speech.system text_to_speech.larynx.default_voice) (larynx cmu_aup) ['larynx', 'harvard'] = False
[DEBUG:2021-09-15 09:05:41,485] rhasspyprofile.download: (and text_to_speech.system text_to_speech.larynx.default_voice) (larynx cmu_ahw) ['larynx', 'harvard'] = False
[DEBUG:2021-09-15 09:05:41,485] rhasspyprofile.download: (and text_to_speech.system text_to_speech.larynx.default_voice) (larynx cmu_aew) ['larynx', 'harvard'] = False
[DEBUG:2021-09-15 09:05:41,485] rhasspyprofile.download: Skipping tts/larynx/en-us/harvard-glow_tts/ (/share/rhasspy/profiles/en/tts/larynx/en-us/harvard-glow_tts)
[DEBUG:2021-09-15 09:05:41,484] rhasspyprofile.download: (and text_to_speech.system text_to_speech.larynx.default_voice) (larynx harvard) ['larynx', 'harvard'] = True
[DEBUG:2021-09-15 09:05:41,484] rhasspyprofile.download: speech_to_text.deepspeech.mix_weight >0 0 = False
[DEBUG:2021-09-15 09:05:41,484] rhasspyprofile.download: speech_to_text.kaldi.mix_weight >0 0 = False
[DEBUG:2021-09-15 09:05:41,484] rhasspyprofile.download: speech_to_text.pocketsphinx.mix_weight >0 0 = False
[DEBUG:2021-09-15 09:05:41,484] rhasspyprofile.download: speech_to_text.deepspeech.open_transcription True False = False
[DEBUG:2021-09-15 09:05:41,484] rhasspyprofile.download: speech_to_text.kaldi.open_transcription True False = False
[DEBUG:2021-09-15 09:05:41,483] rhasspyprofile.download: speech_to_text.pocketsphinx.open_transcription True False = False
[DEBUG:2021-09-15 09:05:41,483] rhasspyprofile.download: speech_to_text.system deepspeech kaldi = False
[DEBUG:2021-09-15 09:05:41,483] rhasspyprofile.download: Skipping kaldi/model/phones/silence_phones.txt (/share/rhasspy/profiles/en/kaldi/model/phones/silence_phones.txt)
[DEBUG:2021-09-15 09:05:41,483] rhasspyprofile.download: Skipping kaldi/model/phones/optional_silence.txt (/share/rhasspy/profiles/en/kaldi/model/phones/optional_silence.txt)
[DEBUG:2021-09-15 09:05:41,483] rhasspyprofile.download: Skipping kaldi/model/phones/nonsilence_phones.txt (/share/rhasspy/profiles/en/kaldi/model/phones/nonsilence_phones.txt)
[DEBUG:2021-09-15 09:05:41,483] rhasspyprofile.download: Skipping kaldi/model/phones/extra_questions.txt (/share/rhasspy/profiles/en/kaldi/model/phones/extra_questions.txt)
[DEBUG:2021-09-15 09:05:41,483] rhasspyprofile.download: Skipping kaldi/model/model/tree (/share/rhasspy/profiles/en/kaldi/model/model/tree)
[DEBUG:2021-09-15 09:05:41,483] rhasspyprofile.download: Skipping kaldi/model/model/normalization.fst (/share/rhasspy/profiles/en/kaldi/model/model/normalization.fst)
[DEBUG:2021-09-15 09:05:41,482] rhasspyprofile.download: Skipping kaldi/model/model/final.mdl (/share/rhasspy/profiles/en/kaldi/model/model/final.mdl)
[DEBUG:2021-09-15 09:05:41,482] rhasspyprofile.download: Skipping kaldi/model/model/den.fst (/share/rhasspy/profiles/en/kaldi/model/model/den.fst)
[DEBUG:2021-09-15 09:05:41,482] rhasspyprofile.download: Skipping kaldi/model/model/cmvn_opts (/share/rhasspy/profiles/en/kaldi/model/model/cmvn_opts)
[DEBUG:2021-09-15 09:05:41,482] rhasspyprofile.download: Skipping kaldi/model/extractor/splice_opts (/share/rhasspy/profiles/en/kaldi/model/extractor/splice_opts)
[DEBUG:2021-09-15 09:05:41,482] rhasspyprofile.download: Skipping kaldi/model/extractor/online_cmvn.conf (/share/rhasspy/profiles/en/kaldi/model/extractor/online_cmvn.conf)
[DEBUG:2021-09-15 09:05:41,482] rhasspyprofile.download: Skipping kaldi/model/extractor/global_cmvn.stats (/share/rhasspy/profiles/en/kaldi/model/extractor/global_cmvn.stats)
[DEBUG:2021-09-15 09:05:41,482] rhasspyprofile.download: Skipping kaldi/model/extractor/final.mat (/share/rhasspy/profiles/en/kaldi/model/extractor/final.mat)
[DEBUG:2021-09-15 09:05:41,481] rhasspyprofile.download: Skipping kaldi/model/extractor/final.ie (/share/rhasspy/profiles/en/kaldi/model/extractor/final.ie)
[DEBUG:2021-09-15 09:05:41,481] rhasspyprofile.download: Skipping kaldi/model/extractor/final.dubm (/share/rhasspy/profiles/en/kaldi/model/extractor/final.dubm)
[DEBUG:2021-09-15 09:05:41,481] rhasspyprofile.download: Skipping kaldi/model/conf/online_cmvn.conf (/share/rhasspy/profiles/en/kaldi/model/conf/online_cmvn.conf)
[DEBUG:2021-09-15 09:05:41,481] rhasspyprofile.download: Skipping kaldi/model/conf/mfcc_hires.conf (/share/rhasspy/profiles/en/kaldi/model/conf/mfcc_hires.conf)
[DEBUG:2021-09-15 09:05:41,481] rhasspyprofile.download: Skipping kaldi/model/conf/mfcc.conf (/share/rhasspy/profiles/en/kaldi/model/conf/mfcc.conf)
[DEBUG:2021-09-15 09:05:41,481] rhasspyprofile.download: Skipping kaldi/g2p.corpus (/share/rhasspy/profiles/en/kaldi/g2p.corpus)
[DEBUG:2021-09-15 09:05:41,480] rhasspyprofile.download: Skipping kaldi/g2p.fst (/share/rhasspy/profiles/en/kaldi/g2p.fst)
[DEBUG:2021-09-15 09:05:41,480] rhasspyprofile.download: Skipping kaldi/base_dictionary.txt (/share/rhasspy/profiles/en/kaldi/base_dictionary.txt)
[DEBUG:2021-09-15 09:05:41,479] rhasspyprofile.download: speech_to_text.system kaldi kaldi = True
[DEBUG:2021-09-15 09:05:41,479] rhasspyprofile.download: speech_to_text.system pocketsphinx kaldi = False
[DEBUG:2021-09-15 09:05:41,420] rhasspyserver_hermes: [AsrTrainSuccess(id='e40664cf-91ec-4b5d-bdb3-66b3cfe6b4a5'), NluTrainSuccess(id='e40664cf-91ec-4b5d-bdb3-66b3cfe6b4a5')]
[DEBUG:2021-09-15 09:05:41,420] rhasspyserver_hermes: Handling AsrTrainSuccess (topic=rhasspy/asr/HA/trainSuccess, id=dbac42f8-1cb1-4554-8f9c-45a2bb51a946)
[DEBUG:2021-09-15 09:05:39,106] rhasspyserver_hermes: Handling NluTrainSuccess (topic=rhasspy/nlu/HA/trainSuccess, id=dbac42f8-1cb1-4554-8f9c-45a2bb51a946)
[DEBUG:2021-09-15 09:05:38,912] rhasspyserver_hermes: Publishing 995 bytes(s) to rhasspy/nlu/HA/train
[DEBUG:2021-09-15 09:05:38,912] rhasspyserver_hermes: -> NluTrain
[DEBUG:2021-09-15 09:05:38,912] rhasspyserver_hermes: Publishing 995 bytes(s) to rhasspy/asr/HA/train
[DEBUG:2021-09-15 09:05:38,912] rhasspyserver_hermes: -> AsrTrain
[DEBUG:2021-09-15 09:05:38,911] rhasspyserver_hermes: Finished writing /share/rhasspy/profiles/en/intent_graph.pickle.gz
[DEBUG:2021-09-15 09:05:38,910] rhasspyserver_hermes: Writing /share/rhasspy/profiles/en/intent_graph.pickle.gz
[DEBUG:2021-09-15 09:05:38,907] rhasspynlu.ini_jsgf: Loaded ini file
[DEBUG:2021-09-15 09:05:38,906] rhasspyserver_hermes: Generating intent graph
[DEBUG:2021-09-15 09:05:38,905] rhasspyserver_hermes: Loading sentences from [PosixPath('/share/rhasspy/profiles/en/sentences.ini')]
[INFO:2021-09-15 09:05:38,905] rhasspyserver_hermes: Starting training
[DEBUG:2021-09-15 09:05:37,551] rhasspyserver_hermes: Writing /share/rhasspy/profiles/en/sentences.ini
[ERROR:2021-09-15 08:37:16,905] rhasspyserver_hermes: Command '['fstcompile', '--isymbols=/share/rhasspy/profiles/en/kaldi/model/data/lang/words.txt', '--osymbols=/share/rhasspy/profiles/en/kaldi/model/data/lang/words.txt', '--keep_isymbols=false', '--keep_osymbols=false', '/share/rhasspy/profiles/en/kaldi/language_model.txt', '/share/rhasspy/profiles/en/kaldi/model/data/lang/G.fst']' returned non-zero exit status 1.
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 1306, in api_train
    result = await core.train()
  File "/usr/lib/rhasspy/rhasspy-server-hermes/rhasspyserver_hermes/__init__.py", line 471, in train
    raise TrainingFailedException(reason=asr_response.error)
rhasspyserver_hermes.TrainingFailedException: Command '['fstcompile', '--isymbols=/share/rhasspy/profiles/en/kaldi/model/data/lang/words.txt', '--osymbols=/share/rhasspy/profiles/en/kaldi/model/data/lang/words.txt', '--keep_isymbols=false', '--keep_osymbols=false', '/share/rhasspy/profiles/en/kaldi/language_model.txt', '/share/rhasspy/profiles/en/kaldi/model/data/lang/G.fst']' returned non-zero exit status 1.
[ERROR:2021-09-15 08:37:16,905] rhasspyserver_hermes: AsrError(error="Command '['fstcompile', '--isymbols=/share/rhasspy/profiles/en/kaldi/model/data/lang/words.txt', '--osymbols=/share/rhasspy/profiles/en/kaldi/model/data/lang/words.txt', '--keep_isymbols=false', '--keep_osymbols=false', '/share/rhasspy/profiles/en/kaldi/language_model.txt', '/share/rhasspy/profiles/en/kaldi/model/data/lang/G.fst']' returned non-zero exit status 1.", site_id='HA', context=None, session_id='a2cf14af-0d12-4fa3-b17a-280ab6877603')
[DEBUG:2021-09-15 08:37:16,904] rhasspyserver_hermes: Handling AsrError (topic=hermes/error/asr, id=0fcc54f8-7a27-4ce2-9b11-39d3e5d024db)
[DEBUG:2021-09-15 08:37:13,907] rhasspyserver_hermes: Handling NluTrainSuccess (topic=rhasspy/nlu/HA/trainSuccess, id=0fcc54f8-7a27-4ce2-9b11-39d3e5d024db)
[DEBUG:2021-09-15 08:37:13,724] rhasspyserver_hermes: Publishing 6738 bytes(s) to rhasspy/nlu/HA/train
[DEBUG:2021-09-15 08:37:13,724] rhasspyserver_hermes: -> NluTrain
[DEBUG:2021-09-15 08:37:13,722] rhasspyserver_hermes: Publishing 6738 bytes(s) to rhasspy/asr/HA/train
[DEBUG:2021-09-15 08:37:13,722] rhasspyserver_hermes: -> AsrTrain
[DEBUG:2021-09-15 08:37:13,719] rhasspyserver_hermes: Finished writing /share/rhasspy/profiles/en/intent_graph.pickle.gz
[DEBUG:2021-09-15 08:37:13,695] rhasspyserver_hermes: Writing /share/rhasspy/profiles/en/intent_graph.pickle.gz
[DEBUG:2021-09-15 08:37:13,376] rhasspynlu.slots: Running program for slot hass/entities,light: ['/share/rhasspy/profiles/en/slot_programs/hass/entities', 'light']
[DEBUG:2021-09-15 08:37:12,922] rhasspynlu.slots: Running program for slot hass/entities,switch: ['/share/rhasspy/profiles/en/slot_programs/hass/entities', 'switch']
[DEBUG:2021-09-15 08:37:12,920] rhasspynlu.ini_jsgf: Loaded ini file
[DEBUG:2021-09-15 08:37:12,919] rhasspyserver_hermes: Generating intent graph
[DEBUG:2021-09-15 08:37:12,919] rhasspyserver_hermes: Loading sentences from [PosixPath('/share/rhasspy/profiles/en/sentences.ini')]
[INFO:2021-09-15 08:37:12,919] rhasspyserver_hermes: Starting training
[DEBUG:2021-09-15 08:37:11,539] rhasspyserver_hermes: Writing /share/rhasspy/profiles/en/sentences.ini

Despite using the add-on, I’ve added a long lived token in an attempt to remedy, to no affect.
Any guidance you can provide will be greatly appreciated.

I could resolve this by checking all my HA entities for proper friendly names.

1 Like