Open beyond-space21 opened 1 year ago
While attempting to install spidev through
pip install spidev
the process returned with an error as below,Failed to build spidev ERROR: Could not build wheels for spidev, which is required to install pyproject.toml-based projects
@beyond-space21 This could be a cascade error, which means this error is caused by another error that happened earlier. Could you try to read the error thrown just before this error in the traceback error stack?
As this package embeds C code, pip tries to compile the C code before installing. Hence a C compiler is required for this purpose. Sometimes, this process could be causing the issue, so I suggest installing a C compiler like gcc.
I am getting the same error message. I have gcc installed.
`$ sudo pip3 install spidev --pre Collecting spidev Using cached spidev-3.6.tar.gz (11 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing metadata (pyproject.toml) ... done Building wheels for collected packages: spidev Building wheel for spidev (pyproject.toml) ... error error: subprocess-exited-with-error
× Building wheel for spidev (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [69 lines of output]
/usr/lib/python3/dist-packages/setuptools/dist.py:723: 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 bdist_wheel
running build
running build_ext
building 'spidev' extension
creating build
creating build/temp.linux-armv7l-3.11
arm-linux-gnueabihf-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/include/python3.11 -c spidev_module.c -o build/temp.linux-armv7l-3.11/spidev_module.o
creating build/lib.linux-armv7l-3.11
arm-linux-gnueabihf-gcc -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -g -fwrapv -O2 build/temp.linux-armv7l-3.11/spidev_module.o -L/usr/lib/arm-linux-gnueabihf -o build/lib.linux-armv7l-3.11/spidev.cpython-311-arm-linux-gnueabihf.so
installing to build/bdist.linux-armv7l/wheel
running install
running install_lib
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for spidev Failed to build spidev ERROR: Could not build wheels for spidev, which is required to install pyproject.toml-based projects `
While attempting to install spidev through
pip install spidev
the process returned with an error as below,