Error installing Adafruit-Blinka on Buster in v2024.12.06_04
@Alex-developer I just installed the pre-release of v2024.12.06_04 on a Buster Pi 4 and go this:
=== Package # 11 of 14: [Adafruit-Blinka]
*** ERROR:
**********
Python_dependencies [Adafruit-Blinka] failed
**********
* The full log file is in /home/pi/allsky/config/logs/Python_dependencies.11.log
The end of the file is:
swig -python -o lgpio_wrap.c lgpio.i
unable to execute 'swig': No such file or directory
error: command 'swig' failed with exit status 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for lgpio
Running setup.py clean for lgpio
Failed to build lgpio
ERROR: Could not build wheels for lgpio, which is required to install pyproject.toml-based projects
Looks like 'swig' is missing. I dont have a pi that I can install Buster on anymore, the more recent Pi's will not allow it to be installed due to firmware incompatibility issues.
I suspect you are right in that the adafruit packages probably have been changed recently
Can you try
sudo apt install swig
the re do the installer and see if it sorts it
Added "swig" to requirements-buster.txt and got farther, but failed with a different error:
Building wheels for collected packages: lgpio
Building wheel for lgpio (setup.py): started
Building wheel for lgpio (setup.py): finished with status 'error'
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
running bdist_wheel
running build
running build_py
running build_ext
building '_lgpio' extension
swigging lgpio.i to lgpio_wrap.c
swig -python -o lgpio_wrap.c lgpio.i
creating build
creating build/temp.linux-armv7l-3.7
arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -Isrc -I/usr/include/python3.7m -c lgpio_wrap.c -o build/temp.linux-armv7l-3.7/lgpio_wrap.o
creating build/lib.linux-armv7l-3.7
arm-linux-gnueabihf-gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-armv7l-3.7/lgpio_wrap.o -llgpio -o build/lib.linux-armv7l-3.7/_lgpio.cpython-37m-arm-linux-gnueabihf.so
/usr/bin/ld: cannot find -llgpio
collect2: error: ld returned 1 exit status
error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
[end of output]
...
Try
sudo apt-get install lgpio
Then reinstall
Closing - installing _04 on Buster works now. Perhaps the errors above were temporary?