I believe it is this one
So with the 2.5.0-pre-arm32v6
tag.
I believe it is this one
So with the 2.5.0-pre-arm32v6
tag.
I tried virtual env install, but got this. Will try docker image now.
Cantâ find documention on parameters required for rhasspy\rhasspy though
Building wheels for collected packages: rapidfuzz
Building wheel for rapidfuzz (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /opt/rhasspy-satellite/.venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1wsxn38m/rapidfuzz/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1wsxn38m/rapidfuzz/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-d9ehhno2
cwd: /tmp/pip-install-1wsxn38m/rapidfuzz/
Complete output (31 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv6l-3.7
creating build/lib.linux-armv6l-3.7/rapidfuzz
copying src/rapidfuzz/fuzz.py -> build/lib.linux-armv6l-3.7/rapidfuzz
copying src/rapidfuzz/process.py -> build/lib.linux-armv6l-3.7/rapidfuzz
copying src/rapidfuzz/utils.py -> build/lib.linux-armv6l-3.7/rapidfuzz
copying src/rapidfuzz/__init__.py -> build/lib.linux-armv6l-3.7/rapidfuzz
running egg_info
writing src/rapidfuzz.egg-info/PKG-INFO
writing dependency_links to src/rapidfuzz.egg-info/dependency_links.txt
writing top-level names to src/rapidfuzz.egg-info/top_level.txt
reading manifest file 'src/rapidfuzz.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.hpp' under directory 'cpp/src'
warning: no files found matching '*.txx' under directory 'cpp/src'
warning: no files found matching '*' under directory 'cpp/extern/boost'
warning: no files found matching '*.hpp' under directory 'python/src'
writing manifest file 'src/rapidfuzz.egg-info/SOURCES.txt'
running build_ext
building 'rapidfuzz.levenshtein' extension
creating build/temp.linux-armv6l-3.7
creating build/temp.linux-armv6l-3.7/src
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Isrc/rapidfuzz-cpp/src -Isrc/rapidfuzz-cpp/extern -I/opt/rhasspy-satellite/.venv/include -I/usr/include/python3.7m -c src/py_levenshtein.cpp -o build/temp.linux-armv6l-3.7/src/py_levenshtein.o -O3 -std=c++14 -DVERSION_INFO="0.7.4"
src/py_levenshtein.cpp:7:10: fatal error: levenshtein.hpp: No such file or directory
#include "levenshtein.hpp"
^~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for rapidfuzz
Running setup.py clean for rapidfuzz
Failed to build rapidfuzz
Installing collected packages: aiofiles, chardet, attrs, multidict, idna, yarl, async-timeout, aiohttp, marshmallow, typing-extensions, mypy-extensions, typing-inspect, stringcase, marshmallow-enum, dataclasses-json, json5, decorator, networkx, docopt, num2words, paho-mqtt, precise-runner, pydash, pyyaml, werkzeug, blinker, itsdangerous, hpack, hyperframe, h2, h11, toml, priority, wsproto, hypercorn, click, MarkupSafe, jinja2, quart, quart-cors, rapidfuzz, swagger-ui-py, webrtcvad, Markdown, six, tornado, livereload, mkdocs
Running setup.py install for rapidfuzz ... error
ERROR: Command errored out with exit status 1:
command: /opt/rhasspy-satellite/.venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1wsxn38m/rapidfuzz/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1wsxn38m/rapidfuzz/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-vq00bisw/install-record.txt --single-version-externally-managed --compile --install-headers /opt/rhasspy-satellite/.venv/include/site/python3.7/rapidfuzz
cwd: /tmp/pip-install-1wsxn38m/rapidfuzz/
Complete output (31 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-armv6l-3.7
creating build/lib.linux-armv6l-3.7/rapidfuzz
copying src/rapidfuzz/fuzz.py -> build/lib.linux-armv6l-3.7/rapidfuzz
copying src/rapidfuzz/process.py -> build/lib.linux-armv6l-3.7/rapidfuzz
copying src/rapidfuzz/utils.py -> build/lib.linux-armv6l-3.7/rapidfuzz
copying src/rapidfuzz/__init__.py -> build/lib.linux-armv6l-3.7/rapidfuzz
running egg_info
writing src/rapidfuzz.egg-info/PKG-INFO
writing dependency_links to src/rapidfuzz.egg-info/dependency_links.txt
writing top-level names to src/rapidfuzz.egg-info/top_level.txt
reading manifest file 'src/rapidfuzz.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.hpp' under directory 'cpp/src'
warning: no files found matching '*.txx' under directory 'cpp/src'
warning: no files found matching '*' under directory 'cpp/extern/boost'
warning: no files found matching '*.hpp' under directory 'python/src'
writing manifest file 'src/rapidfuzz.egg-info/SOURCES.txt'
running build_ext
building 'rapidfuzz.levenshtein' extension
creating build/temp.linux-armv6l-3.7
creating build/temp.linux-armv6l-3.7/src
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Isrc/rapidfuzz-cpp/src -Isrc/rapidfuzz-cpp/extern -I/opt/rhasspy-satellite/.venv/include -I/usr/include/python3.7m -c src/py_levenshtein.cpp -o build/temp.linux-armv6l-3.7/src/py_levenshtein.o -O3 -std=c++14 -DVERSION_INFO="0.7.4"
src/py_levenshtein.cpp:7:10: fatal error: levenshtein.hpp: No such file or directory
#include "levenshtein.hpp"
^~~~~~~~~~~~~~~~~
compilation terminated.
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /opt/rhasspy-satellite/.venv/bin/python3 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1wsxn38m/rapidfuzz/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1wsxn38m/rapidfuzz/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-vq00bisw/install-record.txt --single-version-externally-managed --compile --install-headers /opt/rhasspy-satellite/.venv/include/site/python3.7/rapidfuzz Check the logs for full command output.
Okay, this worked!
docker run -d -p 12101:12101 \
-v "/home/pi/.config/rhasspy/profiles:/profiles" \
--restart unless-stopped \
--name "rhasspy" \
--device /dev/snd:/dev/snd \
rhasspy/rhasspy:2.5.0-pre-arm32v6 \
--user-profiles "/profiles" \
--profile "ru"
Hi all,
I tested the rhasspy-satellite and it works well on pi 0 and 3 B+ only if i change rapidfuzzy to 0.7.7 in requirements.txt
I wrote a french blog article on it : https://www.coxprod.org/domotique/rhasspy-en-mode-satellite/
thanks to @synesthesiam @koan @fastjack @KiboOst , your work is usefull I can think now to switch from snips to rhasspy. And many others people too
Ced
This sounds like the version of rapidfuzz your using is something before 0.7.5, where some wrong files where I changed the directory structure but forgot to upate the Manifest file. it should be fixed in 0.7.5. The latest version on the master branch is using 0.7.8 could you try it with this version?
You should use 0.7.8 instead of 0.7.7, since it had a bug that affects the rhasspy fuzzywuzzy NLU aswell https://github.com/maxbachmann/rapidfuzz/issues/27
Thanks for this info
Ced
Gotcha. Well since I got it working with docker its preferred anyway, as its a lot quicker and easier to deploy, so the only reason for me to try running it in venv is if I decide to contribute something to the project, I guess. Thanks for the info anyway, Iâm sure someone (maybe even myself in the future) will find it useful!
I have got my usual comment to make that without AEC playing any media is likely to create Forrest Rhasspy syndrome.
Say âRhasspy play the newsâ and it will likely be a case of âRHASSPY I SAID BLOODY STOP!â as Forrest Rhasspy continues to play regardless.
If you are doing no media playback then a Pi-0 can work if you are doing media playback you need AEC and a $70 mic array on a $5 SoC just doesnât make sense.
Just been trying the Zero with SpeexDsp-AEC and wow its much less load than I expected but on the Zero results are not great.
Strangely far better than I expected as didnât expect it to work at all.
Its a shame as its very close to usable on a Zero! But that also means there is far more scope for software improvement on a Pi3/4
So not sure if the zero is all that a good idea but guess as long as you never play a continuous or long media stream you will be OK.
I am not sure about the Pi-zero so apols if no help but thought I would mention there if media is needed then its no to software EC and hardware EC is quite expensive.