@Merlin513 @mstackoverflow @ptillisch - Wondering if we should either mark this
thread as not solved, or move some of this to a new thread.
Merlin... I am trying out your stuff. I created a quick and dirty requirements.txt file in
the python sketch, cleared out the buffers, and cache and tried running and python
errored with:
Using CPython 3.13.9 interpreter at: /usr/local/bin/python
Creating virtual environment at: .cache/.venv
Activating python virtual environment
Using Python 3.13.9 environment at: .cache/.venv
Resolved 1 package in 399ms
Building spidev==3.8
× Failed to build `spidev==3.8`
├─▶ The build backend returned an error
╰─▶ Call to `setuptools.build_meta.build_wheel` failed (exit status: 1)
[stdout]
running bdist_wheel
running build
running build_ext
building 'spidev' extension
creating build/temp.linux-aarch64-cpython-313
gcc -fno-strict-overflow -Wsign-compare -DNDEBUG -g -O3
-Wall -fPIC -I/app/.cache/uv/builds-v0/.tmpfvcfz7/include
-I/usr/local/include/python3.13 -c spidev_module.c -o
build/temp.linux-aarch64-cpython-313/spidev_module.o
[stderr]
/app/.cache/uv/builds-v0/.tmpfvcfz7/lib/python3.13/site-packages/setuptools/dist.py:765:
SetuptoolsDeprecationWarning: License classifiers are deprecated.
!!
********************************************************************************
Please consider removing the following classifiers in favor of a
SPDX license expression:
License :: OSI Approved :: MIT License
See
https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license
for details.
********************************************************************************
!!
self._finalize_license_expression()
error: command 'gcc' failed: No such file or directory
hint: This usually indicates a problem with the package or the build
environment.
Clearing cache at: .cache/uv
Removed 467 files (4.1MiB)
Traceback (most recent call last):
File "/app/python/main.py", line 4, in <module>
import spidev
ModuleNotFoundError: No module named 'spidev'
exited with code 1
Note: I also earlier in a command prompt installed: sudo apt install python3-spidev
Get:1 http://deb.debian.org/debian trixie/main arm64 python3-spidev arm64 3.6-1+b6 [14.4 kB]
Fetched 14.4 kB in 0s (100 kB/s)
Selecting previously unselected package python3-spidev.
(Reading database ... 78092 files and directories currently installed.)
Preparing to unpack .../python3-spidev_3.6-1+b6_arm64.deb ...
Unpacking python3-spidev (3.6-1+b6) ...
Setting up python3-spidev (3.6-1+b6) ...
Scanning processes...
Scanning processor microcode...
Scanning linux images...
So first I am going to try to set the spidev==3.6 and see if it works.
Else wondering about the message: error: command 'gcc' failed: No such file or directory
Edit I tried with 3.6 version as well and it errored the same way (other than the version number)
Building spidev==3.6
× Failed to build `spidev==3.6