MycroftAI / mycroft-precise

A lightweight, simple-to-use, RNN wake word listener
Apache License 2.0
818 stars 228 forks source link

with binary package on linux mint "ImportError: load_model requires h5py." #200

Open gras64 opened 3 years ago

gras64 commented 3 years ago

Describe the bug i have a problem with the binary package on linux mint. i wanted to test the presice trainer skill and came across this problem. I start the recording "Train precise for my voice" and give the name. File is recorded correctly but this error occurs when dividing the file. I have already installed the package manually and it is also available in the Prisice_trainer directory." and give the name. File is recorded correctly but this error occurs when dividing the file. I have already installed the package h5py manually on mycroft venv and h5py is also available in the .mycroft/presice_trainer/presice directory.

To Reproduce Steps to reproduce the behavior: say "Train precise for my voice"

Expected behavior A clear and concise description of what you expected to happen.

Log files Aufnahme: WAVE '/tmp/tmpp5pzvkjj.wav' : Signed 16 bit Little Endian, Rate: 16000 Hz, mono [25245] Failed to execute script engine Using TensorFlow backend. Traceback (most recent call last): File "precise/scripts/engine.py", line 64, in 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 414, in load_model ImportError: load_model requires h5py. 17:01:58.500 | ERROR | 21469 | mycroft.skills.mycroft_skill.mycroft_skill:on_error:835 | Bei der Verarbeitung der Anfrage ist ein Fehler im Skill Precise Trainer aufgetreten. Traceback (most recent call last): File "/home/andreas/mycroft-core/mycroft/skills/mycroft_skill/event_container.py", line 66, in wrapper handler(message) File "/opt/mycroft/skills/mycroft-precise-trainer.gras64/init.py", line 171, in handle_trainer_precise self.handle_train('wake-word', 'trainer.precise') File "/opt/mycroft/skills/mycroft-precise-trainer.gras64/init.py", line 150, in handle_train ww_positions = self.extract_ww_positions(frames, engine) File "/opt/mycroft/skills/mycroft-precise-trainer.gras64/init.py", line 208, in extract_ww_positions prob = engine.get_prediction(chunk) File "/home/andreas/mycroft-core/.venv/lib/python3.8/site-packages/precise_runner/runner.py", line 64, in get_prediction self.proc.stdin.flush() BrokenPipeError: [Errno 32] Broken pipe

Environment (please complete the following information):

Device type:Linux mint 20
OS: [e.g. Ubuntu, Picroft]
Mycroft-core version: [e.g. 20.08] dev

Additional context Add any other context about the problem here.

Please think carefully about whether you have modified anything in Mycroft's code or configuration files. If so, can you reproduce this on a clean installation of Mycroft? Many "bugs" turn out to be non-standard configuration errors.