rhasspy / rhasspy-satellite

Collection of Rhasspy libraries for satellites only
MIT License
9 stars 1 forks source link

levenshtein.hpp: No such file or directory #2

Open StuartIanNaylor opened 4 years ago

StuartIanNaylor commented 4 years ago
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, se                                                      tuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-o_l2j09v/rapidfuzz/setup                                                      .py'"'"'; __file__='"'"'/tmp/pip-install-o_l2j09v/rapidfuzz/setup.py'"'"';f=geta                                                      ttr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'                                                      "', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' insta                                                      ll --record /tmp/pip-record-qsovsl5n/install-record.txt --single-version-externa                                                      lly-managed --compile --install-headers /home/pi/rhasspy-satellite/.venv/include                                                      /site/python3.7/rapidfuzz
         cwd: /tmp/pip-install-o_l2j09v/rapidfuzz/
    Complete output (31 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-armv7l-3.7
    creating build/lib.linux-armv7l-3.7/rapidfuzz
    copying src/rapidfuzz/fuzz.py -> build/lib.linux-armv7l-3.7/rapidfuzz
    copying src/rapidfuzz/process.py -> build/lib.linux-armv7l-3.7/rapidfuzz
    copying src/rapidfuzz/utils.py -> build/lib.linux-armv7l-3.7/rapidfuzz
    copying src/rapidfuzz/__init__.py -> build/lib.linux-armv7l-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-armv7l-3.7
    creating build/temp.linux-armv7l-3.7/src
    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-pr                                                      otector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2                                                       -fPIC -Isrc/rapidfuzz-cpp/src -Isrc/rapidfuzz-cpp/extern -I/home/pi/rhasspy-sate                                                      llite/.venv/include -I/usr/include/python3.7m -c src/py_levenshtein.cpp -o build                                                      /temp.linux-armv7l-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 d                                                      irectory
     #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-o_l2j09v/rapidfuzz/setup.py'"'"'; __file__='"'"'/tmp/pip-install-o_l2j0                                                      9v/rapidfuzz/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);c                                                      ode=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code,                                                       __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-qsovsl5n/install-re                                                      cord.txt --single-version-externally-managed --compile --install-headers /home/p                                                      i/rhasspy-satellite/.venv/include/site/python3.7/rapidfuzz Check the logs for fu                                                      ll command output.
dannyqwertz commented 4 years ago

Try checking and updating your cloned requirements.txt file, as mentioned here.

StuartIanNaylor commented 4 years ago

Try checking and updating your cloned requirements.txt file, as mentioned here.

I will pull the repo and see if it happens again as that image got deleted whilst playing with something else. I will do what you say though but is that file not checked into the repo or something?! as it was a fresh pull from master.

StuartIanNaylor commented 4 years ago

bin/rhasspy-satellite --profile en Starting up... /home/pi/rhasspy-satellite/.venv/bin/python3: No module named rhasspysupervisor There is a rhasspy-supervisor in there though

Line 95 Rhasspy-satellite but quick name change doesn't work either

"${this_dir}/add-python-paths" \
    python3 -m rhasspy-supervisor \
    --profile "${profile_name}" \
    --user-profiles "${user_profiles}" \
    --docker-compose '' \
    "${extra_supervisor_args[@]}" \
    --debug

Ps just an observation but rhasspy-satellite looks a lot like a complete rhasspy and more satel than lite? Is this under the process of being stripped back? It looks very similar to Voltron without Deepspeech. Satelites don't really do anything but relay info back in terms of voice AI prob only an initiate KWS should be the main module. What is here is great but prob wrongly named but trying to work out what its a satellite of.

https://community.rhasspy.org/t/slightly-confused-about-rhasspy-satellite/903