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] GET /api/unknown-words 1.1 200 2 50321
INFO:quart.serving: 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/ version GLIBC_2.27' not found (required by ngramcount) ngramcount: /lib/arm-linux-gnueabihf/ version GLIBC_2.27’ not found (required by /home/pi/rhasspy/.venv/lib/
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/”, line 1471, in full_dispatch_request
result = await self.dispatch_request(request_context)
File “/home/pi/rhasspy/.venv/lib/python3.7/site-packages/quart/”, line 1519, in dispatch_request
return await handler(**request_.view_args)
File “”, 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] POST /api/train 1.1 500 209 288358
INFO:quart.serving: POST /api/train 1.1 500 209 288358
DEBUG:InboxActor: -> stopped
[2020-01-22 15:44:33,042] GET /api/problems 1.1 200 292 35427
INFO:quart.serving: 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


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 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

Solved it by installing lib6c :tada:

1 Like

Is there anything that speaks against using debian buster? Debian Stretch reached end of life in january

1 Like

I was using stretch because some users were having libc version issues. I assumed building against an older libc was better for compatibility.

I’ve been using Debian Buster to host everything for over four weeks now. Nothing bad to report.

1 Like