wyoming-openwakeword: wyoming-openwakeword fails at startup

Running on Raspberry pi 4 (8gb): Debian GNU/Linux 11 (bullseye) 64 bit

Running on Raspberry pi zero 2W: Debian GNU/Linux 11 (bullseye) 32 bit

I am trying to setup wyoming-satellite but get this failure ( ImportError: numpy.core.multiarray failed to import) on both the raspberry pi bullseye 32 bit (Pi0 2W) and 64 bit (Pi4).

I have tried the following:

uninstall existing numpy and install opencv-python uninstall numpy and reinstall numpy wyoming-satelite has no errors…

Not sure what else to do. Here is the error I get from wyoming-openwakeword. Appreciate any help with this. Thanks!

wyoming-openwakeword.service - Wyoming openWakeWord Loaded: loaded (/etc/systemd/system/wyoming-openwakeword.service; disabled; vendor preset: enabled) Active: active (running) since Tue 2024-06-18 12:08:30 CDT; 6min ago Main PID: 519 (python3) Tasks: 5 (limit: 8755) CPU: 12.243s CGroup: /system.slice/wyoming-openwakeword.service |-519 python3 /home/pi/wyoming-openwakeword/script/run --uri tcp://127.0.0.1:10400 `-664 /home/pi/wyoming-openwakeword/.venv/bin/python3 -m wyoming_openwakeword --uri tcp://127.0.0.1:10400

Jun 18 12:15:22 pi4 run[664]: AttributeError: _ARRAY_API not found Jun 18 12:15:22 pi4 run[664]: ERROR:root:Unexpected error in wake word thread (alexa_v0.1) Jun 18 12:15:22 pi4 run[664]: ImportError: numpy.core.multiarray failed to import Jun 18 12:15:22 pi4 run[664]: The above exception was the direct cause of the following exception: Jun 18 12:15:22 pi4 run[664]: Traceback (most recent call last): Jun 18 12:15:22 pi4 run[664]: File “/home/pi/wyoming-openwakeword/wyoming_openwakeword/openwakeword.py”, line 248, in ww_proc Jun 18 12:15:22 pi4 run[664]: ww_model = tflite.Interpreter(model_path=str(ww_model_path), num_threads=1) Jun 18 12:15:22 pi4 run[664]: File “/home/pi/wyoming-openwakeword/.venv/lib/python3.9/site-packages/tflite_runtime/interpreter.py”, line 464, in init Jun 18 12:15:22 pi4 run[664]: self._interpreter = _interpreter_wrapper.CreateWrapperFromFile( Jun 18 12:15:22 pi4 run[664]: SystemError: <built-in method CreateWrapperFromFile of PyCapsule object at 0x7f9af423c0> returned a result with an error set

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 2
  • Comments: 19 (1 by maintainers)

Most upvoted comments

ok, got it to work. Running on Pi 4 (8 gb) Bookworm 64 bit (Desktop, etc). Nice to be able to move on from Bullseye. Thanks everyone for your help!

With this change it works again:

diff --git a/requirements.txt b/requirements.txt
index bab6cef..7ac5c00 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,2 +1,3 @@
-tflite-runtime-nightly
+tflite-runtime==2.14.0
 wyoming==1.5.3
+numpy==1.23.5

I had to remove the entire .venv dir in wyoming-openwakeword?dir though and had to restart ``scripts/setup`.

If you disable the service first you won’t have to remove the .venv

sudo systemctl disable --now wyoming-openwakeword.service