Open cmonty14 opened 2 years ago
You must have the relevant Linux kernel headers installed on your system at build time.
https://pkgs.alpinelinux.org/contents?file=spidev.h&path=&name=&branch=edge
I guess I have the same issue with MacOS 13.3 M2 ` spidev_module.c:33:10: fatal error: 'linux/spi/spidev.h' file not found
Can you give me a hint how to install those headers for MacOS?!
@BANDWBEAR In general, it would be best to open a separate issue instead of tagging on to an existing one (for a different OS, with a solution), but...
I don't know much about MacOS but I assume that it doesn't have an spidev subsystem implemented (in the kernel or user space) at all, in which case py-spidev won't work with it.
If in-fact it does have an equivalent to Linux's spidev, then possibly you need to install the correct headers, or submit a PR to locate them correctly on MacOS.
I'm trying to install Python Spidev on a RPi 4 Alpine Linux Edge OS.
Using this command
pip install spidev
for Python Spidev installation fails with this error:Can you please advise how to fix this issue?
THX Thomas