Problems with installing a new Wake word with Wake word Trainer

Hey all,
I tried to change the Wake Word to “Edith” with the Wake Word Trainer, unfortunately an error occured and I don’t know how to handle that (even though I searched the internet for it). Maybe you have a clue? I post my output afterwards.
Thank you very much and kind regards,
JulianFV

Removing event wake-word-skill.gras64:RecordingFeedback
12:05:53.654 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/wake-word/en-short/edith-en-3f5a135c-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.654 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/wake-word/en-short/edith-en-2cbc3e1e-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.655 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/wake-word/en-short/edith-en-256a9426-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.656 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/wake-word/en-short/edith-en-1d802dac-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.657 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/wake-word/en-short/edith-en-3c96c6e2-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.657 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/wake-word/en-short/edith-en-434e7520-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.658 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/wake-word/en-short/edith-en-30b1342a-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.659 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/wake-word/en-short/edith-en-29f934b6-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.659 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/wake-word/en-short/edith-en-220ec018-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.660 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/wake-word/en-short/edith-en-3809a9b4-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.660 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/wake-word/en-short/edith-en-48758016-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.662 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/not-wake-word/en-short/notedith-en-7645dd38-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.662 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/not-wake-word/en-short/notedith-en-604a1fee-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.662 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/not-wake-word/en-short/notedith-en-604a1fee-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.663 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/not-wake-word/en-short/notedith-en-38096e22-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.663 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/not-wake-word/en-short/notedith-en-6af79ed0-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.664 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/not-wake-word/en-short/notedith-en-7a3b1052-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.666 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/not-wake-word/en-short/notedith-en-1d8016d2-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.667 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/not-wake-word/en-short/notedith-en-1abbde9a-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.668 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/not-wake-word/en-short/notedith-en-7a3b27c2-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.672 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/not-wake-word/en-short/notedith-en-50134f6a-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.673 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/not-wake-word/en-short/notedith-en-6f8867f4-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.674 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/not-wake-word/en-short/notedith-en-6702a388-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.676 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/not-wake-word/en-short/notedith-en-63a64d16-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.677 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/not-wake-word/en-short/notedith-en-72e7e7a8-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.679 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/not-wake-word/en-short/notedith-en-5a27d2a0-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.680 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/not-wake-word/en-short/notedith-en-5764a584-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.682 | INFO | 689 | WakeWord | move file: /tmp/mycroft_wakeword/edith/not-wake-word/en-short/notedith-en-5d862e88-b56d-11eb-bd73-e45f011d08d3.wav
12:05:53.682 | INFO | 689 | WakeWord | calculating
12:05:53.682 | INFO | 689 | WakeWord | downloading soundbackup
12:05:53.692 | INFO | 689 | WakeWord | beginn add noise: /home/pi/.mycroft/skills/WakeWord/data/edith/wake-word
Data:
0.00%
3.85%
7.69%
11.54%
15.38%
19.23%
23.08%
26.92%
30.77%
34.62%
38.46%
42.31%
46.15%
50.00%
53.85%
57.69%
61.54%
65.38%
69.23%
73.08%
76.92%
80.77%
84.62%
88.46%
92.31%
96.15%
100.00%
Done!
12:06:10.448 | INFO | 689 | WakeWord | add noise wakeword
WARNING: Found 17 wavs but no tags file specified!
Data:
Done!
12:06:11.571 | INFO | 689 | WakeWord | add not noise wakeword /home/pi/.mycroft/precise-trainer/hey-mycroft.train.net /home/pi/.mycroft/skills/WakeWord/edith.net
Using TensorFlow backend.
WARNING:tensorflow:From tensorflow/python/framework/op_def_library.py:263: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
Colocations handled automatically by placer.
WARNING:tensorflow:From keras/backend/tensorflow_backend.py:3445: calling dropout (from tensorflow.python.ops.nn_ops) with keep_prob is deprecated and will be removed in a future version.
Instructions for updating:
Please use rate instead of keep_prob. Rate should be set to rate = 1 - keep_prob.
Data:
Loading wake-word…

1.43%
2.86%
4.29%
5.71%
[……]
95.00%
97.50%
100.00%
[4093] Failed to execute script train
Traceback (most recent call last):
File “precise/scripts/train.py”, line 182, in
File “precise/scripts/train.py”, line 178, in main
File “precise/scripts/train.py”, line 111, in init
File “keras/callbacks.py”, line 745, in init
File “”, line 2237, in _find_and_load
File “”, line 2226, in _find_and_load_unlocked
File “”, line 1200, in _load_unlocked
File “”, line 1129, in _exec
File “/home/mycroft/mycroft-precise/.venv/lib/python3.4/site-packages/PyInstaller/loader/pyimod03_importers.py”, line 627, in exec_module
File “tensorflow/contrib/init.py”, line 30, in
File “”, line 2237, in _find_and_load
File “”, line 2226, in _find_and_load_unlocked
File “”, line 1200, in _load_unlocked
File “”, line 1129, in _exec
File “/home/mycroft/mycroft-precise/.venv/lib/python3.4/site-packages/PyInstaller/loader/pyimod03_importers.py”, line 627, in exec_module
File “tensorflow/contrib/cloud/init.py”, line 28, in
File “”, line 2237, in _find_and_load
File “”, line 2226, in _find_and_load_unlocked
File “”, line 1200, in _load_unlocked
File “”, line 1129, in _exec
File “/home/mycroft/mycroft-precise/.venv/lib/python3.4/site-packages/PyInstaller/loader/pyimod03_importers.py”, line 627, in exec_module
File “tensorflow/contrib/bigtable/init.py”, line 29, in
File “”, line 2237, in _find_and_load
File “”, line 2226, in _find_and_load_unlocked
File “”, line 1200, in _load_unlocked
File “”, line 1129, in _exec
File “/home/mycroft/mycroft-precise/.venv/lib/python3.4/site-packages/PyInstaller/loader/pyimod03_importers.py”, line 627, in exec_module
File “tensorflow/contrib/bigtable/python/ops/bigtable_api.py”, line 44, in
File “tensorflow/contrib/util/loader.py”, line 56, in load_op_library
File “tensorflow/python/framework/load_library.py”, line 61, in load_op_library

Inputs shape: (190, 29, 13)
Outputs shape: (190, 1)
Test inputs shape: (80, 29, 13)
Test outputs shape: (80, 1)
12:06:26.481 | ERROR    |   689 | mycroft.skills.mycroft_skill.mycroft_skill:on_error:835 | An error occurred while processing a request in Wake Word
Traceback (most recent call last):
  File "/home/pi/mycroft-core/mycroft/skills/mycroft_skill/event_container.py", line 66, in wrapper
    handler(message)
  File "/opt/mycroft/skills/wake-word-skill.gras64/__init__.py", line 198, in wake_word_intent
    self.config(name, message)
  File "/opt/mycroft/skills/wake-word-skill.gras64/__init__.py", line 582, in config
    precise_file = self.select_precise_file(name, message)
  File "/opt/mycroft/skills/wake-word-skill.gras64/__init__.py", line 570, in select_precise_file
    self.train_wake_word_intent(message)
  File "/opt/mycroft/skills/wake-word-skill.gras64/__init__.py", line 330, in train_wake_word_intent
    self.calculating_intent(self.new_name)
  File "/opt/mycroft/skills/wake-word-skill.gras64/__init__.py", line 496, in calculating_intent
    thresh = self.calc_thresh(model_file, samples_raw_folder)
  File "/opt/mycroft/skills/wake-word-skill.gras64/__init__.py", line 841, in calc_thresh
    av_max = sum(all_max) / len(all_max)
ZeroDivisionError: division by zero
 12:06:26.484 | INFO     |   689 | mycroft.skills.settings:save_settings:116 | Skill settings successfully saved to /home/pi/.config/mycroft/skills/wake-word-skill.gras64/settings.json
[4164] Failed to execute script engine
Using TensorFlow backend.
Traceback (most recent call last):
  File "precise/scripts/engine.py", line 64, in <module>
  File "precise/scripts/engine.py", line 52, in main
  File "precise/network_runner.py", line 94, in __init__
  File "precise/network_runner.py", line 74, in __init__
  File "precise/model.py", line 48, in load_precise_model
  File "keras/engine/saving.py", line 417, in load_model
  File "keras/utils/io_utils.py", line 186, in __init__
  File "h5py/_hl/files.py", line 312, in __init__
  File "h5py/_hl/files.py", line 142, in make_fid
  File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "h5py/h5f.pyx", line 78, in h5py.h5f.open
OSError: Unable to open file (unable to open file: name = '/home/pi/.mycroft/skills/WakeWord/edith.net', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)

Seems pretty straightforward?

Hey Baconator,
thank you for your fast reply!
Even though there may be the error because that file can’t get opened, there is the problem, that this file did not had to be created in the first place. As far as I understand it, the Wake word trainer should run the whole implementation of a new wake word so if that file is not there, what should I do?
Thank you for your answers in advance,
best,
JulianFV

It’s probably a permissions issue that it can’t create that file.

Okay, but shouldn’t the wake word trainer be able to create that file when it is its purpose to install a new wake word? What should I do to get that new wake word done?
Thanks!

Yes. That’s the problem, it’s having trouble either creating it or reading it. As to why, that’s an issue you need to do some work on–did you install as root and now running as another user? Drive issues? Gamma rays? Electron shortages?