Training-error when using second slot

I get an error with training as soon as I try to use a second slot in my sentences.ini.

Here my slots:

"activities": [
"color": [
"rooms": [
    "(wohnzimmer|stube):living room",
"states": [

And my sentences.ini:

light_name = (wohnzimmerlampe | garagenlicht | licht) {name}
\[schalte|schalt|mach|mache] [(die | das)] <light_name> [(im|in der|auf dem)] [($rooms){room}] ($states){state}

\[schalte|schalt] [um] [auf] ($activities){activity}

When using only ChangeLightState everything works fine. But as soon, as i write a sentence with another slot (SetActivity in this case), I get the following error:

ERROR:main:Training failed: <Task: ini_graph>: TaskError
PythonAction Error
Traceback (most recent call last):
File “/usr/local/lib/python3.6/dist-packages/doit/”, line 424, in execute
returned_value = self.py_callable(*self.args, **kwargs)
File “/usr/share/rhasspy/rhasspy/train/”, line 206, in do_intents_to_graph
graph = intents_to_graph(intents, replacements)
File “/usr/local/lib/python3.6/dist-packages/rhasspynlu/”, line 213, in intents_to_graph
num_sentences_lcm = lcm(*intent_counts.values())
File “/usr/local/lib/python3.6/dist-packages/rhasspynlu/”, line 491, in lcm
nums_lcm = (nums_lcm * n) // math.gcd(nums_lcm, n)
ZeroDivisionError: integer division or modulo by zero

Any idea, what is wrong here?


Looks like @KiboOst had the same error and posted on GitHub: