Install failing on macos [missing linux/spi/spidev.h]
tc-mgriff opened this issue · comments
i tried installing spidev on macos and the issue seems to be with missing header files. I have xcode and gcc installed so I'm not sure how to get the missing header file. linux/spi/spidev.h
× Running setup.py install for spidev did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
/usr/local/lib/python3.9/site-packages/setuptools/dist.py:772: UserWarning: Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead
warnings.warn(
running install
/usr/local/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_ext
building 'spidev' extension
creating build
creating build/temp.macosx-11-x86_64-cpython-39
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk -I/usr/local/opt/python@3.9/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c spidev_module.c -o build/temp.macosx-11-x86_64-cpython-39/spidev_module.o
spidev_module.c:33:10: fatal error: 'linux/spi/spidev.h' file not found
#include <linux/spi/spidev.h>
^~~~~~~~~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> spidev
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
This library is a python wrapper for linux spidev. Mac does not have spidev, so installation on a mac is not supported.