Training fails ngramcount

Hi all,

When training, I get the following “Command failed: ‘ngramcount /home/pi/.config/rhasspy/profiles/de/intent.fst /home/pi/.config/rhasspy/profiles/de/intent.fst.counts’ returned 1” error:

INFO: main :Starting training
DEBUG:DialogueManager:asleep -> training_sentences
[2020-01-22 15:44:32,645] 127.0.0.1:57076 GET /api/unknown-words 1.1 200 2 50321
INFO:quart.serving:127.0.0.1:57076 GET /api/unknown-words 1.1 200 2 50321
DEBUG:train:Parsing ini file(s): [’/home/pi/.config/rhasspy/profiles/de/sentences.ini’]
DEBUG:rhasspynlu.ini_jsgf:Loaded ini file
– ini_graph
– intent_fst
. language_model:intent_counts
ngramcount: /lib/arm-linux-gnueabihf/libm.so.6: version GLIBC_2.27' not found (required by ngramcount) ngramcount: /lib/arm-linux-gnueabihf/libm.so.6: version GLIBC_2.27’ not found (required by /home/pi/rhasspy/.venv/lib/libngram.so.134)
TaskFailed - taskid:language_model:intent_counts
Command failed: ‘ngramcount /home/pi/.config/rhasspy/profiles/de/intent.fst /home/pi/.config/rhasspy/profiles/de/intent.fst.counts’ returned 1

########################################
language_model:intent_counts :

DEBUG:DialogueManager:training_sentences -> ready
INFO:DialogueManager:Automatically listening for wake word
DEBUG:DialogueManager:ready -> asleep
DEBUG:InboxActor: -> stopped
ERROR: main :Training failed: <Task: language_model:intent_counts>: TaskFailed
Command failed: ‘ngramcount /home/pi/.config/rhasspy/profiles/de/intent.fst /home/pi/.config/rhasspy/profiles/de/intent.fst.counts’ returned 1
Traceback (most recent call last):
File “/home/pi/rhasspy/.venv/lib/python3.7/site-packages/quart/app.py”, line 1471, in full_dispatch_request
result = await self.dispatch_request(request_context)
File “/home/pi/rhasspy/.venv/lib/python3.7/site-packages/quart/app.py”, line 1519, in dispatch_request
return await handler(**request_.view_args)
File “app.py”, line 610, in api_train
raise Exception(f"Training failed: {result.reason}")
Exception: Training failed: <Task: language_model:intent_counts>: TaskFailed
Command failed: ‘ngramcount /home/pi/.config/rhasspy/profiles/de/intent.fst /home/pi/.config/rhasspy/profiles/de/intent.fst.counts’ returned 1

[2020-01-22 15:44:32,855] 127.0.0.1:57072 POST /api/train 1.1 500 209 288358
INFO:quart.serving:127.0.0.1:57072 POST /api/train 1.1 500 209 288358
DEBUG:InboxActor: -> stopped
[2020-01-22 15:44:33,042] 127.0.0.1:57072 GET /api/problems 1.1 200 292 35427
INFO:quart.serving:127.0.0.1:57072 GET /api/problems 1.1 200 292 35427

I do not know if there is a connection but I changed from a docker install to venv recently. intent.fst, intent.fst.model and intent.fst.count exist and my sentence.ini looks like this

[GetTest]
test

Thank you very much for any help!

There was already an issue in github:

1 Like

Rhasspy will be moving to mitlm in the very near term, which should be much easier to build on different platforms/distros.

My pre-built binaries are done using a Debian Stretch Docker image. Does anyone have a better suggestion for a base image that’s more compatible (and works on ARM)?

1 Like

hass.io recently changed their base Linux image for builds, if I remember correctly. I’ll go search the HA forums and blogs to see if I can find what they’re using.

Edit: Here ya go . . .

1 Like

Thank you all for the information provided! Unfortunately, it didn’t help :confused: I’ll wait for mitlm then