The same thing now happens when attempting install of rpi_ws281x.
Using the suggested --use-pep517 option also did not work.
Again, some others install fine(e.g. pip install StupidArtnet).
And all of them installed fine on the same Pi a month ago.
Since I'm a beginner here, any insight into understanding, or at least best practices for, pip/wheel/setup.py etc would be appreciated. Especially why python-dev would be required here when it wasn't needed a month ago (some deprecation / new strict checking?). I thought the whole point of PyPi/pip/wheel was that you didn't need to worry about dev and build stuff?
recommended method error result:workaround method --use-pep517 error result:
Using the suggested --use-pep517 option also did not work.
Again, some others install fine(e.g. pip install StupidArtnet).
And all of them installed fine on the same Pi a month ago.
Since I'm a beginner here, any insight into understanding, or at least best practices for, pip/wheel/setup.py etc would be appreciated. Especially why python-dev would be required here when it wasn't needed a month ago (some deprecation / new strict checking?). I thought the whole point of PyPi/pip/wheel was that you didn't need to worry about dev and build stuff?
recommended method error result:
Code:
(venv) pi@raspberrypi2:~ $ pip install rpi_ws281xLooking in indexes: https://pypi.org/simple, https://www.piwheels.org/simpleCollecting rpi_ws281x Using cached rpi_ws281x-5.0.0.tar.gz (64 kB) Preparing metadata (setup.py) ... doneInstalling collected packages: rpi_ws281x DEPRECATION: rpi_ws281x is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559 Running setup.py install for rpi_ws281x ... error error: subprocess-exited-with-error
Code:
(venv) pi@raspberrypi2:~ $ pip install rpi_ws281x --use-pep517Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simpleCollecting rpi_ws281x Using cached rpi_ws281x-5.0.0.tar.gz (64 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... doneBuilding wheels for collected packages: rpi_ws281x Building wheel for rpi_ws281x (pyproject.toml) ... error.......rpi_ws281x_wrap.c:154:11: fatal error: Python.h: No such file or directory 154 | # include <Python.h> | ^~~~~~~~~~ compilation terminated. error: command '/usr/bin/aarch64-linux-gnu-gcc' failed with exit code 1 [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for rpi_ws281x
Statistics: Posted by ericjforman — Tue Dec 17, 2024 8:29 pm