-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wyoming-openwakeword fails at startup #24
Comments
Same issues for me. Open wake word fails. The satellite will work before installing Open wake Word. |
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 |
If you disable the service first you won't have to remove the
|
Im sorry, Im not an expert with this stuff. What do I do with this information? |
So I take it you diff’ed a working Wyoming-openwakeword against one that is
failing and you see the difference in tflite-runtime and numpy? If so, I
should just
uninstall tflite-runtime and numpy and reinstall them with these versions?
Please let me know. Thanks!
Not sure what wyoming is in requirements.txt.
…On Thu, Jun 20, 2024 at 10:53 AM rich33584 ***@***.***> wrote:
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`.
Im sorry, Im not an expert with this stuff. What do I do with this
information?
—
Reply to this email directly, view it on GitHub
<#24 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AC47NPARHBS6G45MEMAS5JDZIL3I7AVCNFSM6AAAAABJSN4KRSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOBRGAZTGNJQHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
--
Tim Owings
***@***.***
|
I get the following error trying to install tflite-runtime==2.14.0. What am I missing? pi@pi4:~/wyoming-openwakeword $ pip install tflite-runtime==2.14.0 |
Updated these two, rebooted same error as before...so something I am missing... pi@pi4:~ $ pip list | grep numpy 1.23.5 I was unable to get tflite-runtime to 2.14.0 as not available in repository. I then followed a stackoverflow post on adding Wheels to get latest version...but no luck. Any ideas? |
I had the same issue. This is how I got it working: Stopped all the wyoming services on the satellite. Renamed my current wyoming-openwakeword directory (can be deleted) From my user home, I ran the git command from the instructions again: Changed to the wyoming-openwakeword directory: Edited the requirements.txt file (use your favorite editor) When done editing, it should look like this:
Save the file and follow the documented process for setting up the service files I hope this helps |
Made the changes and ran, but still get same error. I am assuming that this is due to not being able to get to Here is the error: same as before. |
Sorry, I don't know how to resolve that. I started with a new install of Raspberry Pi OS 64-bit on a Pi4. I followed these instructions: I had to fight with getting wyoming-satellite to use my speaker when running via systemctl, though I got past that. As far as wyoming-openwakeword, once I updated the requirements.txt and ran setup, I had no errors. I am assuming you ran these commands from the instructions (near the top) to get the latest packages:
|
Is that OS 64-bit bookworm or bullseye...regular or lite...? |
I probably should have used the lite version, though I did not, I used this: |
If the voice assistant works well for me, I plan on building a few. Since I had to fight with some sound configuration, I ended up not having the install procedure documented as well as I would like. A little later today, I will put in a new card (with fresh 64-bit Lite OS image), and go through the process again (and document it for myself). I will post an update if I run into the issue you are seeing or not. |
It still works for me with the lite version of Rasberry PI OS (64-bit). Here are the steps and results for the openwakeword install... Make sure to be in home directory: Run the gitclone:
Change to the openwakeword directory: I then edited the requirements.txt file Contents of file after editing:
Run the setup script:
No errors reported (just some junk since my terminal is not configured for the block graphics), the last line shows the versions of the packages installed startup openwakeword from command prompt to test:
No errors, just sits at "Ready". So I think all as expected. |
I decided to try 64-bit bookworm, but unable to get to github from the rpi...but i am able to do so from my mac...so not sure what that can be. pi@pi4:~ $ git clone https://github.com/rhasspy/wyoming-satellite.git So I am working on that before I can get back to openwakeword... |
Still working here, I just did a clone into my temp dir to be sure:
|
I moved back to rpi zero 2 W with bullseye 64-bit lite and tried it multiple times, but cannot get past this error. I found a post on this issue but the fix did not help. The first time I got wyoming satellite to work with none of these issues. Not sure what else to do to get around this issue... ERROR: Could not find a version that satisfies the requirement tflite-runtime==2.14.0 |
There is no 2.14 version of tflite-runtime wheel for bullseye, last is 2.13 |
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! |
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
The text was updated successfully, but these errors were encountered: