I want to add grove sensors to home assistant, but for them to be detected by the Pi you need to install the grove dependencies. When I try to install them I run into this error:
pip install .
Processing /root/grove.py
Requirement already satisfied: smbus2 in /usr/lib/python3.8/site-packages (from grove.py==0.6) (0.4.1)
Collecting RPi.GPIO
Using cached RPi.GPIO-0.7.0.tar.gz (30 kB)
Collecting rpi_ws281x
Using cached rpi_ws281x-4.2.5.tar.gz (62 kB)
Using legacy ‘setup.py install’ for grove.py, since package ‘wheel’ is not installed.
Using legacy ‘setup.py install’ for RPi.GPIO, since package ‘wheel’ is not installed.
Using legacy ‘setup.py install’ for rpi-ws281x, since package ‘wheel’ is not installed.
Installing collected packages: rpi-ws281x, RPi.GPIO, grove.py
Running setup.py install for rpi-ws281x … error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-0ar9u36a/rpi-ws281x_d236301168974c039d211d2d7c1cf81c/setup.py’"’"’; file=’"’"’/tmp/pip-install-0ar9u36a/rpi-ws281x_d236301168974c039d211d2d7c1cf81c/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-rehbhjac/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.8/rpi-ws281x
cwd: /tmp/pip-install-0ar9u36a/rpi-ws281x_d236301168974c039d211d2d7c1cf81c/
Complete output (16 lines):
running install
running build
running build_py
Compiling ws281x library…
creating build
creating build/lib.linux-aarch64-3.8
creating build/lib.linux-aarch64-3.8/rpi_ws281x
copying rpi_ws281x/rpi_ws281x.py -> build/lib.linux-aarch64-3.8/rpi_ws281x
copying rpi_ws281x/init.py -> build/lib.linux-aarch64-3.8/rpi_ws281x
running build_ext
building ‘_rpi_ws281x’ extension
creating build/temp.linux-aarch64-3.8
creating build/temp.linux-aarch64-3.8/lib
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -g -fno-semantic-interposition -g -fno-semantic-interposition -g -fno-semantic-interposition -DTHREAD_STACK_SIZE=0x100000 -fPIC -I. -I/usr/include/python3.8 -c rpi_ws281x_wrap.c -o build/temp.linux-aarch64-3.8/rpi_ws281x_wrap.o
unable to execute ‘gcc’: No such file or directory
error: command ‘gcc’ failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-0ar9u36a/rpi-ws281x_d236301168974c039d211d2d7c1cf81c/setup.py’"’"’; file=’"’"’/tmp/pip-install-0ar9u36a/rpi-ws281x_d236301168974c039d211d2d7c1cf81c/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-rehbhjac/install-record.txt --single-version-externally-managed --compile --install-headers /usr/include/python3.8/rpi-ws281x Check the logs for full command output.
Has anybody tried to add grv sensors to home assistant? I’m using HASSIO