Closed cmonty14 closed 1 year ago
Faced a similar issue on a Raspberry Pi 4 with Home Assistant OS (arch).
I believe the error can be solved by running:
apk add linux-headers
I also had to modify the install script and change:
CODENAME='lsb_release -sc'
to CODENAME="bullseye"
since I am using Python 3 and lsb_release
command is not supported.
The full list of commands I executed to make it work was:
apk add linux-headers
apk add build-base
apk add --no-cache python3 py3-pip
apk add python3-dev
pip3 install spidev
./install.sh
Note to Home Assistant users: Originally, I started messing with the script in this repo because native rpi gpio integration was removed in HA version 2022.6. However, you can still use the HACS custom integration: https://github.com/thecode/ha-rpi_gpio
Hello, I have installed Alpine Linux aarch64 on RPi 4 and now I want to deploy software and config for Fanshim. Fanshim has some Python dependencies of which one is Spidev.
I'm using this command
pip install spidev
for Python Spidev installation fails with this error:Can you please advise how to fix this issue?
This error is not reproducible on Debian, though.
THX Thomas