Rhasspy-satellite on Pi Zero

Hello,

I have a Pi Zero with a respeaker 2-mics pi hat running Buster lite.

I am trying to install rhasspy-satellite (https://github.com/rhasspy/rhasspy-satellite) but I have the following error each time I try to do it :

Building wheels for collected packages: rapidfuzz
Building wheel for rapidfuzz (setup.py) … error
ERROR: Command errored out with exit status 1:
command: /home/pi/rhasspy-satellite/.venv/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-5tepkws6/rapidfuzz/setup.py’"’"’; file=’"’"’/tmp/pip-install-5tepkws6/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-orjp6k6e
cwd: /tmp/pip-install-5tepkws6/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/home/pi/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: Aucun fichier ou dossier de ce type
#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, multidict, idna, yarl, async-timeout, attrs, chardet, aiohttp, marshmallow, marshmallow-enum, mypy-extensions, typing-extensions, typing-inspect, stringcase, dataclasses-json, json5, decorator, networkx, docopt, num2words, paho-mqtt, precise-runner, pydash, pyyaml, h11, wsproto, toml, hpack, hyperframe, h2, priority, hypercorn, werkzeug, blinker, MarkupSafe, jinja2, click, itsdangerous, quart, quart-cors, rapidfuzz, swagger-ui-py, webrtcvad, tornado, zipp, importlib-metadata, Markdown, six, livereload, mkdocs
Running setup.py install for rapidfuzz … error
ERROR: Command errored out with exit status 1:
command: /home/pi/rhasspy-satellite/.venv/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-5tepkws6/rapidfuzz/setup.py’"’"’; file=’"’"’/tmp/pip-install-5tepkws6/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-maks2o0o/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/rhasspy-satellite/.venv/include/site/python3.7/rapidfuzz
cwd: /tmp/pip-install-5tepkws6/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/home/pi/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: Aucun fichier ou dossier de ce type
#include “levenshtein.hpp”
^~~~~~~~~~~~~~~~~
compilation terminated.
error: command ‘arm-linux-gnueabihf-gcc’ failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /home/pi/rhasspy-satellite/.venv/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-5tepkws6/rapidfuzz/setup.py’"’"’; file=’"’"’/tmp/pip-install-5tepkws6/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-maks2o0o/install-record.txt --single-version-externally-managed --compile --install-headers /home/pi/rhasspy-satellite/.venv/include/site/python3.7/rapidfuzz Check the logs for full command output.
make: *** [Makefile:14: venv] Error 1

Any idea ?

I have tried to directly install Rhasspy Fuzzywuzzy from here (https://github.com/rhasspy/rhasspy-fuzzywuzzy/tree/c8617f7873e769cf79c303c90563013ce118464d) it is working but installing rapidfuzz-0. 7.11 whereas in rhasspy-satellite requirements.txt, this version is referenced :

rapidfuzz==0.7.8

I will try with this version in the requirements.txt and let you know.

1 Like

The installation is now ok after changing rapidfuzz version from 0.7.8 to 0.7.11 in the requirement file.

But when starting it, I have the following error :

Traceback (most recent call last):
File “/usr/lib/python3.7/runpy.py”, line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File “/usr/lib/python3.7/runpy.py”, line 142, in _get_module_details
return _get_module_details(pkg_main_name, error)
File “/usr/lib/python3.7/runpy.py”, line 109, in _get_module_details
import(pkg_name)
File “/home/pi/rhasspy-satellite/rhasspy-tts-cli-hermes/rhasspytts_cli_hermes/init.py”, line 9, in
from rhasspyhermes.audioserver import AudioPlayBytes, AudioPlayError, AudioPlayFinished
File “/home/pi/rhasspy-satellite/rhasspy-hermes/rhasspyhermes/audioserver.py”, line 11, in
from .base import Message
File “/home/pi/rhasspy-satellite/rhasspy-hermes/rhasspyhermes/base.py”, line 5, in
from dataclasses_json import DataClassJsonMixin, LetterCase, dataclass_json
ModuleNotFoundError: No module named ‘dataclasses_json’

And the Web UI is not available.

I also had to change the requirements in rhasspy-hermes regarding “dataclasses-json” from version 0.4.2 to 0.4.5 to make it works :slight_smile:

1 Like