rhasspy / wyoming-openwakeword

Wyoming protocol server for openWakeWord wake word detection system
MIT License
83 stars 23 forks source link

ERROR: Could not find a version that satisfies the requirement tflite-runtime-nightly (from versions: none) #19

Closed sayam93 closed 2 months ago

sayam93 commented 2 months ago

The openwakeword script probably needs an update because when I run the following command:

git clone https://github.com/rhasspy/wyoming-openwakeword.git cd wyoming-openwakeword script/setup

I get this error towards the end:

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple ERROR: Could not find a version that satisfies the requirement tflite-runtime-nightly (from versions: none) ERROR: No matching distribution found for tflite-runtime-nightly Traceback (most recent call last): File "/home/pi/wyoming-openwakeword/script/setup", line 26, in subprocess.check_call(pip + ["install", "-r", str(_PROGRAM_DIR / "requirements.txt")]) File "/usr/lib/python3.9/subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/home/pi/wyoming-openwakeword/.venv/bin/python3', '-m', 'pip', 'install', '-r', '/home/pi/wyoming-openwakeword/requirements.txt']' returned non-zero exit status 1.

Please help!

sajov commented 2 months ago

Facing same issue on PI3

supernerd76 commented 2 months ago

Seeing the same issue on newly built pi-zero 2Ws:

Successfully installed setuptools-69.5.1 wheel-0.43.0 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple ERROR: Could not find a version that satisfies the requirement tflite-runtime-nightly (from versions: none) ERROR: No matching distribution found for tflite-runtime-nightly Traceback (most recent call last): File "/app/wyoming-openwakeword/script/setup", line 26, in subprocess.check_call(pip + ["install", "-r", str(_PROGRAM_DIR / "requirements.txt")]) File "/usr/lib/python3.9/subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/app/wyoming-openwakeword/.venv/bin/python3', '-m', 'pip', 'install', '-r', '/app/wyoming-openwakeword/requirements.txt']' returned non-zero exit status 1.

Edit: changed requirements.txt line from "tflite-runtime-nightly" to:

tflite-runtime>=2.10.0

And it works.

sayam93 commented 2 months ago

Seeing the same issue on newly built pi-zero 2Ws:

Successfully installed setuptools-69.5.1 wheel-0.43.0 Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple ERROR: Could not find a version that satisfies the requirement tflite-runtime-nightly (from versions: none) ERROR: No matching distribution found for tflite-runtime-nightly Traceback (most recent call last): File "/app/wyoming-openwakeword/script/setup", line 26, in subprocess.check_call(pip + ["install", "-r", str(_PROGRAM_DIR / "requirements.txt")]) File "/usr/lib/python3.9/subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/app/wyoming-openwakeword/.venv/bin/python3', '-m', 'pip', 'install', '-r', '/app/wyoming-openwakeword/requirements.txt']' returned non-zero exit status 1.

just do the following:

git clone https://github.com/rhasspy/wyoming-openwakeword.git cd ~/wyoming-openwakeword

then run sudo nano requirements.txt

Change ‘tflite-runtime-nightly’ to ‘tflite-runtime’

script/setup.