MichaIng / DietPi

Lightweight justice for your single-board computer!
https://dietpi.com/
GNU General Public License v2.0
4.89k stars 498 forks source link

Debian Bookworm testing and upgrade script feedback #6227

Closed MichaIng closed 6 months ago

MichaIng commented 1 year ago

This issue aims to collect feedback, testing results and info around the upcoming Debian Bookworm release.

Please read our article to get an overview: T.b.d.

Additional info can be found on our wiki: https://github.com/MichaIng/DietPi/wiki/Debian-Bookworm-testing

To run the Bookworm migration script on Bullseye systems:

sudo bash <(curl -sSf 'https://raw.githubusercontent.com/MichaIng/DietPi/master/.meta/dietpi-bookworm-upgrade')
Joulinar commented 1 year ago

How does Docker Compose has been installed? Because Docker developer changed the why how Docker Compose should be used. They switched the command from docker-compose to docker compose (without dash). Using dietpi-software will install docker plugin package docker-compose-plugin offering the new method. Therefore docker-compose (with dash) should not be working anymore.

root@DietPi4:~# echo $G_DISTRO_NAME
bookworm
root@DietPi4:~# docker compose version
Docker Compose version v2.18.1
root@DietPi4:~#
aszurnasirpal commented 1 year ago

How does Docker Compose has been installed? Because Docker developer changed the why how Docker Compose should be used. They switched the command from docker-compose to docker compose (without dash). Using dietpi-software will install docker plugin package docker-compose-plugin offering the new method. Therefore docker-compose (with dash) should not be working anymore.

root@DietPi4:~# echo $G_DISTRO_NAME
bookworm
root@DietPi4:~# docker compose version
Docker Compose version v2.18.1
root@DietPi4:~#

Thanks for the explanation. This explains a lot. On my system, both are present (with and without a dash).

Joulinar commented 1 year ago

you should be able to remove executable docker-compose (with dash) manually.

MichaIng commented 1 year ago

Thanks for the explanation. This explains a lot. On my system, both are present (with and without a dash).

Hmm strange, a reinstall should actually remove the old standalone binary. This is the code that runs on reinstall:

[[ -f '/usr/local/bin/docker-compose' ]] && G_EXEC rm /usr/local/bin/docker-compose

The standalone binary is btw still a legit option: https://github.com/docker/compose/releases We migrated to the module variant as it will be automatically updated via apt upgrade.

However, quite possible that older docker-compose binaries are not compatible yet with Python 3.11. Such exact issue cannot happen with the packaged module version πŸ™‚. Should we reinstall Docker Compose as part of the Bookworm upgrade script and in the same turn inform about the new docker compose command?

Joulinar commented 1 year ago

Should we reinstall Docker Compose as part of the Bookworm upgrade script

We already do (ID 134)

https://github.com/MichaIng/DietPi/blob/8e8408834eceecee0c9b063acbf755db8a7a33ae/.meta/dietpi-bookworm-upgrade#L85C107-L85C111

droogi commented 1 year ago

MHerger seems to have patched Logitech Media Server to be compatible to perl 5.3.6 https://forums.slimdevices.com/forum/user-forums/logitech-media-server/1638213-lms-on-debian-bookworm https://github.com/Logitech/slimserver/actions/runs/5281501230 https://www.dropbox.com/s/oxeuhc4jtb5sg14/536-aarch64-linux-thread-multi.tar.gz?dl=0

MichaIng commented 1 year ago

Many thanks for the info. Then I hope there will be a release of LMS 8.4 soon.

HyperCriSiS commented 1 year ago

Hi,

the update went fine. :+1: :grinning: The only issue I have seen so far is HA still showing errors:

home-assistant_2023-07-08T21-43-39.822Z.log

Logger: homeassistant.setup
Source: setup.py:209
First occurred: 03:53:27 (2 occurrences)
Last logged: 03:53:35

Setup failed for stream: Requirements for stream not found: ['ha-av==10.1.0'].
Setup failed for default_config: (DependencyError(...), 'Could not setup dependencies: stream')
Logger: homeassistant.setup
Source: setup.py:207
First occurred: 03:53:35 (1 occurrences)
Last logged: 03:53:35

Unable to set up dependencies of default_config. Setup failed for dependencies: stream
Logger: homeassistant.util.package
Source: util/package.py:107
First occurred: 03:44:50 (3 occurrences)
Last logged: 03:53:27

Unable to install package ha-av==10.1.0: error: subprocess-exited-with-error Γ— Building wheel for ha-av (pyproject.toml) did not run successfully. β”‚ exit code: 1 ╰─> [173 lines of output] running bdist_wheel running build running build_py creating build creating build/lib.linux-aarch64-cpython-311 creating build/lib.linux-aarch64-cpython-311/av copying av/deprecation.py -> build/lib.linux-aarch64-cpython-311/av copying av/datasets.py -> build/lib.linux-aarch64-cpython-311/av copying av/about.py -> build/lib.linux-aarch64-cpython-311/av copying av/__main__.py -> build/lib.linux-aarch64-cpython-311/av copying av/__init__.py -> build/lib.linux-aarch64-cpython-311/av creating build/lib.linux-aarch64-cpython-311/av/video copying av/video/__init__.py -> build/lib.linux-aarch64-cpython-311/av/video creating build/lib.linux-aarch64-cpython-311/av/subtitles copying av/subtitles/__init__.py -> build/lib.linux-aarch64-cpython-311/av/subtitles creating build/lib.linux-aarch64-cpython-311/av/sidedata copying av/sidedata/__init__.py -> build/lib.linux-aarch64-cpython-311/av/sidedata creating build/lib.linux-aarch64-cpython-311/av/filter copying av/filter/__init__.py -> build/lib.linux-aarch64-cpython-311/av/filter creating build/lib.linux-aarch64-cpython-311/av/data copying av/data/__init__.py -> build/lib.linux-aarch64-cpython-311/av/data creating build/lib.linux-aarch64-cpython-311/av/container copying av/container/__init__.py -> build/lib.linux-aarch64-cpython-311/av/container creating build/lib.linux-aarch64-cpython-311/av/codec copying av/codec/__init__.py -> build/lib.linux-aarch64-cpython-311/av/codec creating build/lib.linux-aarch64-cpython-311/av/bitstream copying av/bitstream/__init__.py -> build/lib.linux-aarch64-cpython-311/av/bitstream creating build/lib.linux-aarch64-cpython-311/av/audio copying av/audio/__init__.py -> build/lib.linux-aarch64-cpython-311/av/audio copying av/utils.pxd -> build/lib.linux-aarch64-cpython-311/av copying av/stream.pxd -> build/lib.linux-aarch64-cpython-311/av copying av/plane.pxd -> build/lib.linux-aarch64-cpython-311/av copying av/packet.pxd -> build/lib.linux-aarch64-cpython-311/av copying av/option.pxd -> build/lib.linux-aarch64-cpython-311/av copying av/logging.pxd -> build/lib.linux-aarch64-cpython-311/av copying av/frame.pxd -> build/lib.linux-aarch64-cpython-311/av copying av/format.pxd -> build/lib.linux-aarch64-cpython-311/av copying av/error.pxd -> build/lib.linux-aarch64-cpython-311/av copying av/enum.pxd -> build/lib.linux-aarch64-cpython-311/av copying av/dictionary.pxd -> build/lib.linux-aarch64-cpython-311/av copying av/descriptor.pxd -> build/lib.linux-aarch64-cpython-311/av copying av/bytesource.pxd -> build/lib.linux-aarch64-cpython-311/av copying av/buffer.pxd -> build/lib.linux-aarch64-cpython-311/av copying av/__init__.pxd -> build/lib.linux-aarch64-cpython-311/av copying av/video/stream.pxd -> build/lib.linux-aarch64-cpython-311/av/video copying av/video/reformatter.pxd -> build/lib.linux-aarch64-cpython-311/av/video copying av/video/plane.pxd -> build/lib.linux-aarch64-cpython-311/av/video copying av/video/frame.pxd -> build/lib.linux-aarch64-cpython-311/av/video copying av/video/format.pxd -> build/lib.linux-aarch64-cpython-311/av/video copying av/video/codeccontext.pxd -> build/lib.linux-aarch64-cpython-311/av/video copying av/video/__init__.pxd -> build/lib.linux-aarch64-cpython-311/av/video copying av/subtitles/subtitle.pxd -> build/lib.linux-aarch64-cpython-311/av/subtitles copying av/subtitles/stream.pxd -> build/lib.linux-aarch64-cpython-311/av/subtitles copying av/subtitles/codeccontext.pxd -> build/lib.linux-aarch64-cpython-311/av/subtitles copying av/subtitles/__init__.pxd -> build/lib.linux-aarch64-cpython-311/av/subtitles copying av/sidedata/sidedata.pxd -> build/lib.linux-aarch64-cpython-311/av/sidedata copying av/sidedata/motionvectors.pxd -> build/lib.linux-aarch64-cpython-311/av/sidedata copying av/sidedata/__init__.pxd -> build/lib.linux-aarch64-cpython-311/av/sidedata copying av/filter/pad.pxd -> build/lib.linux-aarch64-cpython-311/av/filter copying av/filter/link.pxd -> build/lib.linux-aarch64-cpython-311/av/filter copying av/filter/graph.pxd -> build/lib.linux-aarch64-cpython-311/av/filter copying av/filter/filter.pxd -> build/lib.linux-aarch64-cpython-311/av/filter copying av/filter/context.pxd -> build/lib.linux-aarch64-cpython-311/av/filter copying av/filter/__init__.pxd -> build/lib.linux-aarch64-cpython-311/av/filter copying av/data/stream.pxd -> build/lib.linux-aarch64-cpython-311/av/data copying av/data/__init__.pxd -> build/lib.linux-aarch64-cpython-311/av/data copying av/container/streams.pxd -> build/lib.linux-aarch64-cpython-311/av/container copying av/container/pyio.pxd -> build/lib.linux-aarch64-cpython-311/av/container copying av/container/output.pxd -> build/lib.linux-aarch64-cpython-311/av/container copying av/container/input.pxd -> build/lib.linux-aarch64-cpython-311/av/container copying av/container/core.pxd -> build/lib.linux-aarch64-cpython-311/av/container copying av/container/__init__.pxd -> build/lib.linux-aarch64-cpython-311/av/container copying av/codec/context.pxd -> build/lib.linux-aarch64-cpython-311/av/codec copying av/codec/codec.pxd -> build/lib.linux-aarch64-cpython-311/av/codec copying av/codec/__init__.pxd -> build/lib.linux-aarch64-cpython-311/av/codec copying av/bitstream/filter.pxd -> build/lib.linux-aarch64-cpython-311/av/bitstream copying av/bitstream/context.pxd -> build/lib.linux-aarch64-cpython-311/av/bitstream copying av/audio/stream.pxd -> build/lib.linux-aarch64-cpython-311/av/audio copying av/audio/resampler.pxd -> build/lib.linux-aarch64-cpython-311/av/audio copying av/audio/plane.pxd -> build/lib.linux-aarch64-cpython-311/av/audio copying av/audio/layout.pxd -> build/lib.linux-aarch64-cpython-311/av/audio copying av/audio/frame.pxd -> build/lib.linux-aarch64-cpython-311/av/audio copying av/audio/format.pxd -> build/lib.linux-aarch64-cpython-311/av/audio copying av/audio/fifo.pxd -> build/lib.linux-aarch64-cpython-311/av/audio copying av/audio/codeccontext.pxd -> build/lib.linux-aarch64-cpython-311/av/audio copying av/audio/__init__.pxd -> build/lib.linux-aarch64-cpython-311/av/audio running build_ext building 'av.utils' extension creating build/temp.linux-aarch64-cpython-311 creating build/temp.linux-aarch64-cpython-311/src creating build/temp.linux-aarch64-cpython-311/src/av gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/utils.c -o build/temp.linux-aarch64-cpython-311/src/av/utils.o gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/utils.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/utils.cpython-311-arm-linux-gnueabihf.so building 'av.stream' extension gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/stream.c -o build/temp.linux-aarch64-cpython-311/src/av/stream.o gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/stream.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/stream.cpython-311-arm-linux-gnueabihf.so building 'av.plane' extension gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/plane.c -o build/temp.linux-aarch64-cpython-311/src/av/plane.o gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/plane.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/plane.cpython-311-arm-linux-gnueabihf.so building 'av.packet' extension gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/packet.c -o build/temp.linux-aarch64-cpython-311/src/av/packet.o gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/packet.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/packet.cpython-311-arm-linux-gnueabihf.so building 'av.option' extension gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/option.c -o build/temp.linux-aarch64-cpython-311/src/av/option.o gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/option.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/option.cpython-311-arm-linux-gnueabihf.so building 'av.logging' extension gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/logging.c -o build/temp.linux-aarch64-cpython-311/src/av/logging.o gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/logging.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/logging.cpython-311-arm-linux-gnueabihf.so building 'av.frame' extension gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/frame.c -o build/temp.linux-aarch64-cpython-311/src/av/frame.o gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/frame.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/frame.cpython-311-arm-linux-gnueabihf.so building 'av.format' extension gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/format.c -o build/temp.linux-aarch64-cpython-311/src/av/format.o gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/format.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/format.cpython-311-arm-linux-gnueabihf.so building 'av.error' extension gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/error.c -o build/temp.linux-aarch64-cpython-311/src/av/error.o gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/error.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/error.cpython-311-arm-linux-gnueabihf.so building 'av.enum' extension gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/enum.c -o build/temp.linux-aarch64-cpython-311/src/av/enum.o gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/enum.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/enum.cpython-311-arm-linux-gnueabihf.so building 'av.dictionary' extension gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/dictionary.c -o build/temp.linux-aarch64-cpython-311/src/av/dictionary.o gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/dictionary.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/dictionary.cpython-311-arm-linux-gnueabihf.so building 'av.descriptor' extension gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/descriptor.c -o build/temp.linux-aarch64-cpython-311/src/av/descriptor.o gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/descriptor.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/descriptor.cpython-311-arm-linux-gnueabihf.so building 'av.bytesource' extension gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/bytesource.c -o build/temp.linux-aarch64-cpython-311/src/av/bytesource.o gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/bytesource.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/bytesource.cpython-311-arm-linux-gnueabihf.so building 'av.buffer' extension gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/buffer.c -o build/temp.linux-aarch64-cpython-311/src/av/buffer.o gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/buffer.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/buffer.cpython-311-arm-linux-gnueabihf.so building 'av._core' extension gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/_core.c -o build/temp.linux-aarch64-cpython-311/src/av/_core.o gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/_core.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/_core.cpython-311-arm-linux-gnueabihf.so building 'av.video.stream' extension creating build/temp.linux-aarch64-cpython-311/src/av/video gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/video/stream.c -o build/temp.linux-aarch64-cpython-311/src/av/video/stream.o gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/video/stream.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/video/stream.cpython-311-arm-linux-gnueabihf.so building 'av.video.reformatter' extension gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/video/reformatter.c -o build/temp.linux-aarch64-cpython-311/src/av/video/reformatter.o gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/video/reformatter.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/video/reformatter.cpython-311-arm-linux-gnueabihf.so building 'av.video.plane' extension gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/video/plane.c -o build/temp.linux-aarch64-cpython-311/src/av/video/plane.o gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/video/plane.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/video/plane.cpython-311-arm-linux-gnueabihf.so building 'av.video.frame' extension gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/video/frame.c -o build/temp.linux-aarch64-cpython-311/src/av/video/frame.o gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/video/frame.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/video/frame.cpython-311-arm-linux-gnueabihf.so building 'av.video.format' extension gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/video/format.c -o build/temp.linux-aarch64-cpython-311/src/av/video/format.o gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/video/format.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/video/format.cpython-311-arm-linux-gnueabihf.so building 'av.video.codeccontext' extension gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/video/codeccontext.c -o build/temp.linux-aarch64-cpython-311/src/av/video/codeccontext.o gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/video/codeccontext.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/video/codeccontext.cpython-311-arm-linux-gnueabihf.so building 'av.subtitles.subtitle' extension creating build/temp.linux-aarch64-cpython-311/src/av/subtitles gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/subtitles/subtitle.c -o build/temp.linux-aarch64-cpython-311/src/av/subtitles/subtitle.o gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/subtitles/subtitle.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/subtitles/subtitle.cpython-311-arm-linux-gnueabihf.so building 'av.subtitles.stream' extension gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/subtitles/stream.c -o build/temp.linux-aarch64-cpython-311/src/av/subtitles/stream.o gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/subtitles/stream.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/subtitles/stream.cpython-311-arm-linux-gnueabihf.so building 'av.subtitles.codeccontext' extension gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/subtitles/codeccontext.c -o build/temp.linux-aarch64-cpython-311/src/av/subtitles/codeccontext.o gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/subtitles/codeccontext.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/subtitles/codeccontext.cpython-311-arm-linux-gnueabihf.so building 'av.sidedata.sidedata' extension creating build/temp.linux-aarch64-cpython-311/src/av/sidedata gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/sidedata/sidedata.c -o build/temp.linux-aarch64-cpython-311/src/av/sidedata/sidedata.o src/av/sidedata/sidedata.c: In function β€˜__pyx_pymod_exec_sidedata’: src/av/sidedata/sidedata.c:5664:9: error: β€˜AV_FRAME_DATA_SEI_UNREGISTERED’ undeclared (first use in this function) 5664 | if (((AV_FRAME_DATA_SEI_UNREGISTERED != -1L) != 0)) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/av/sidedata/sidedata.c:5664:9: note: each undeclared identifier is reported only once for each function it appears in error: command '/usr/bin/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 ha-av ERROR: Could not build wheels for ha-av, which is required to install pyproject.toml-based projects
MichaIng commented 1 year ago

Why the hack is it trying to build a wheel for ha-av on an aarch64 system? PyPI ships pre-compiled feels for it: https://pypi.org/project/ha-av/#files

Let's see whether it does the same here: https://github.com/MichaIng/DietPi/actions/runs/5511821033

Restarting the service does not help, does it?

systemctl restart home-assistant
HyperCriSiS commented 1 year ago

Why the hack is it trying to build a wheel for ha-av on an aarch64 system? PyPI ships pre-compiled feels for it: https://pypi.org/project/ha-av/#files

Let's see whether it does the same here: https://github.com/MichaIng/DietPi/actions/runs/5511821033

Restarting the service does not help, does it?

systemctl restart home-assistant

I have a 32bit system. When I do this, HA does not even start anymore. I had to restart the system. Strange thing is because of the systemctl command the errors are not shown in HA anymore but still many integrations are not loaded, so the problem still persists.

HyperCriSiS commented 1 year ago

Now it is as before. Integrations are working again and the Invalid config shows also up again. I had switched from Pi-Hole to Adguard and now back to Pi-Hole.

MichaIng commented 1 year ago

I have a 32bit system.

That is interesting, as in your logs it tries to build 64-bit aarch64 wheels:

  Γ— Building wheel for ha-av (pyproject.toml) did not run successfully.
  β”‚ exit code: 1
  ╰─> [173 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-aarch64-cpython-311
      creating build/lib.linux-aarch64-cpython-311/av
      copying av/deprecation.py -> build/lib.linux-aarch64-cpython-311/av
      copying av/datasets.py -> build/lib.linux-aarch64-cpython-311/av
      copying av/about.py -> build/lib.linux-aarch64-cpython-311/av
      copying av/__main__.py -> build/lib.linux-aarch64-cpython-311/av
      copying av/__init__.py -> build/lib.linux-aarch64-cpython-311/av

Can you verify:

uname -m
dpkg --print-architecture

However, great that it works again.

HyperCriSiS commented 1 year ago

uname -m aarch64

dpkg armhf

getconf LONG_BIT 32

I am confused πŸ˜…

Joulinar commented 1 year ago

You are running RPi4?

MichaIng commented 1 year ago

So it is a 32-bit image, but RPi 4 loads the 64-bit kernel regardless since its Linux 6.1 update. Indeed pip somehow labels wheels/paths falsely in this situation, as it cannot possibly be actual aarch64 wheels. However, they work all fine. Also it makes sense then that the ha-av wheel is compiled, as PyPI serves aarch64 ones only and piwheels does not support Python 3.11 yet.

HyperCriSiS commented 1 year ago

So it is a 32-bit image, but RPi 4 loads the 64-bit kernel regardless since its Linux 6.1 update. Indeed pip somehow labels wheels/paths falsely in this situation, as it cannot possibly be actual aarch64 wheels. However, they work all fine. Also it makes sense then that the ha-av wheel is compiled, as PyPI serves aarch64 ones only and piwheels does not support Python 3.11 yet.

What is the solution then to get rid of the error notifications :grinning: ?

MichaIng commented 1 year ago

I thought it works now? Or does it, but the ha-av compiling error keeps showing up in

journalctl -u home-assistant

?

HyperCriSiS commented 1 year ago

I thought it works now? Or does it, but the ha-av compiling error keeps showing up in

journalctl -u home-assistant

?

Integrations working, yes, but errors still show up.

Building wheel for ha-av (pyproject.toml) did not run successfully.

The companion app still shows the same errors in stream and default config.

MichaIng commented 1 year ago

Hmm strange. Does it work to manually compile it?

sudo -u homeassistant bash
. /home/homeassistant/pyenv-activate.sh
pip3 install ha-av
HyperCriSiS commented 1 year ago

Hmm strange. Does it work to manually compile it?

sudo -u homeassistant bash
. /home/homeassistant/pyenv-activate.sh
pip3 install ha-av
  Building wheel for ha-av (pyproject.toml) ... error
  error: subprocess-exited-with-error

  Γ— Building wheel for ha-av (pyproject.toml) did not run successfully.
  β”‚ exit code: 1
  ╰─> [173 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-aarch64-cpython-311
      creating build/lib.linux-aarch64-cpython-311/av
      copying av/deprecation.py -> build/lib.linux-aarch64-cpython-311/av
      copying av/datasets.py -> build/lib.linux-aarch64-cpython-311/av
      copying av/about.py -> build/lib.linux-aarch64-cpython-311/av
      copying av/__main__.py -> build/lib.linux-aarch64-cpython-311/av
      copying av/__init__.py -> build/lib.linux-aarch64-cpython-311/av
      creating build/lib.linux-aarch64-cpython-311/av/video
      copying av/video/__init__.py -> build/lib.linux-aarch64-cpython-311/av/video
      creating build/lib.linux-aarch64-cpython-311/av/subtitles
      copying av/subtitles/__init__.py -> build/lib.linux-aarch64-cpython-311/av/subtitles
      creating build/lib.linux-aarch64-cpython-311/av/sidedata
      copying av/sidedata/__init__.py -> build/lib.linux-aarch64-cpython-311/av/sidedata
      creating build/lib.linux-aarch64-cpython-311/av/filter
      copying av/filter/__init__.py -> build/lib.linux-aarch64-cpython-311/av/filter
      creating build/lib.linux-aarch64-cpython-311/av/data
      copying av/data/__init__.py -> build/lib.linux-aarch64-cpython-311/av/data
      creating build/lib.linux-aarch64-cpython-311/av/container
      copying av/container/__init__.py -> build/lib.linux-aarch64-cpython-311/av/container
      creating build/lib.linux-aarch64-cpython-311/av/codec
      copying av/codec/__init__.py -> build/lib.linux-aarch64-cpython-311/av/codec
      creating build/lib.linux-aarch64-cpython-311/av/bitstream
      copying av/bitstream/__init__.py -> build/lib.linux-aarch64-cpython-311/av/bitstream
      creating build/lib.linux-aarch64-cpython-311/av/audio
      copying av/audio/__init__.py -> build/lib.linux-aarch64-cpython-311/av/audio
      copying av/utils.pxd -> build/lib.linux-aarch64-cpython-311/av
      copying av/stream.pxd -> build/lib.linux-aarch64-cpython-311/av
      copying av/plane.pxd -> build/lib.linux-aarch64-cpython-311/av
      copying av/packet.pxd -> build/lib.linux-aarch64-cpython-311/av
      copying av/option.pxd -> build/lib.linux-aarch64-cpython-311/av
      copying av/logging.pxd -> build/lib.linux-aarch64-cpython-311/av
      copying av/frame.pxd -> build/lib.linux-aarch64-cpython-311/av
      copying av/format.pxd -> build/lib.linux-aarch64-cpython-311/av
      copying av/error.pxd -> build/lib.linux-aarch64-cpython-311/av
      copying av/enum.pxd -> build/lib.linux-aarch64-cpython-311/av
      copying av/dictionary.pxd -> build/lib.linux-aarch64-cpython-311/av
      copying av/descriptor.pxd -> build/lib.linux-aarch64-cpython-311/av
      copying av/bytesource.pxd -> build/lib.linux-aarch64-cpython-311/av
      copying av/buffer.pxd -> build/lib.linux-aarch64-cpython-311/av
      copying av/__init__.pxd -> build/lib.linux-aarch64-cpython-311/av
      copying av/video/stream.pxd -> build/lib.linux-aarch64-cpython-311/av/video
      copying av/video/reformatter.pxd -> build/lib.linux-aarch64-cpython-311/av/video
      copying av/video/plane.pxd -> build/lib.linux-aarch64-cpython-311/av/video
      copying av/video/frame.pxd -> build/lib.linux-aarch64-cpython-311/av/video
      copying av/video/format.pxd -> build/lib.linux-aarch64-cpython-311/av/video
      copying av/video/codeccontext.pxd -> build/lib.linux-aarch64-cpython-311/av/video
      copying av/video/__init__.pxd -> build/lib.linux-aarch64-cpython-311/av/video
      copying av/subtitles/subtitle.pxd -> build/lib.linux-aarch64-cpython-311/av/subtitles
      copying av/subtitles/stream.pxd -> build/lib.linux-aarch64-cpython-311/av/subtitles
      copying av/subtitles/codeccontext.pxd -> build/lib.linux-aarch64-cpython-311/av/subtitles
      copying av/subtitles/__init__.pxd -> build/lib.linux-aarch64-cpython-311/av/subtitles
      copying av/sidedata/sidedata.pxd -> build/lib.linux-aarch64-cpython-311/av/sidedata
      copying av/sidedata/motionvectors.pxd -> build/lib.linux-aarch64-cpython-311/av/sidedata
      copying av/sidedata/__init__.pxd -> build/lib.linux-aarch64-cpython-311/av/sidedata
      copying av/filter/pad.pxd -> build/lib.linux-aarch64-cpython-311/av/filter
      copying av/filter/link.pxd -> build/lib.linux-aarch64-cpython-311/av/filter
      copying av/filter/graph.pxd -> build/lib.linux-aarch64-cpython-311/av/filter
      copying av/filter/filter.pxd -> build/lib.linux-aarch64-cpython-311/av/filter
      copying av/filter/context.pxd -> build/lib.linux-aarch64-cpython-311/av/filter
      copying av/filter/__init__.pxd -> build/lib.linux-aarch64-cpython-311/av/filter
      copying av/data/stream.pxd -> build/lib.linux-aarch64-cpython-311/av/data
      copying av/data/__init__.pxd -> build/lib.linux-aarch64-cpython-311/av/data
      copying av/container/streams.pxd -> build/lib.linux-aarch64-cpython-311/av/container
      copying av/container/pyio.pxd -> build/lib.linux-aarch64-cpython-311/av/container
      copying av/container/output.pxd -> build/lib.linux-aarch64-cpython-311/av/container
      copying av/container/input.pxd -> build/lib.linux-aarch64-cpython-311/av/container
      copying av/container/core.pxd -> build/lib.linux-aarch64-cpython-311/av/container
      copying av/container/__init__.pxd -> build/lib.linux-aarch64-cpython-311/av/container
      copying av/codec/context.pxd -> build/lib.linux-aarch64-cpython-311/av/codec
      copying av/codec/codec.pxd -> build/lib.linux-aarch64-cpython-311/av/codec
      copying av/codec/__init__.pxd -> build/lib.linux-aarch64-cpython-311/av/codec
      copying av/bitstream/filter.pxd -> build/lib.linux-aarch64-cpython-311/av/bitstream
      copying av/bitstream/context.pxd -> build/lib.linux-aarch64-cpython-311/av/bitstream
      copying av/audio/stream.pxd -> build/lib.linux-aarch64-cpython-311/av/audio
      copying av/audio/resampler.pxd -> build/lib.linux-aarch64-cpython-311/av/audio
      copying av/audio/plane.pxd -> build/lib.linux-aarch64-cpython-311/av/audio
      copying av/audio/layout.pxd -> build/lib.linux-aarch64-cpython-311/av/audio
      copying av/audio/frame.pxd -> build/lib.linux-aarch64-cpython-311/av/audio
      copying av/audio/format.pxd -> build/lib.linux-aarch64-cpython-311/av/audio
      copying av/audio/fifo.pxd -> build/lib.linux-aarch64-cpython-311/av/audio
      copying av/audio/codeccontext.pxd -> build/lib.linux-aarch64-cpython-311/av/audio
      copying av/audio/__init__.pxd -> build/lib.linux-aarch64-cpython-311/av/audio
      running build_ext
      building 'av.utils' extension
      creating build/temp.linux-aarch64-cpython-311
      creating build/temp.linux-aarch64-cpython-311/src
      creating build/temp.linux-aarch64-cpython-311/src/av
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/utils.c -o build/temp.linux-aarch64-cpython-311/src/av/utils.o
      gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/utils.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/utils.cpython-311-arm-linux-gnueabihf.so
      building 'av.stream' extension
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/stream.c -o build/temp.linux-aarch64-cpython-311/src/av/stream.o
      gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/stream.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/stream.cpython-311-arm-linux-gnueabihf.so
      building 'av.plane' extension
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/plane.c -o build/temp.linux-aarch64-cpython-311/src/av/plane.o
      gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/plane.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/plane.cpython-311-arm-linux-gnueabihf.so
      building 'av.packet' extension
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/packet.c -o build/temp.linux-aarch64-cpython-311/src/av/packet.o
      gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/packet.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/packet.cpython-311-arm-linux-gnueabihf.so
      building 'av.option' extension
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/option.c -o build/temp.linux-aarch64-cpython-311/src/av/option.o
      gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/option.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/option.cpython-311-arm-linux-gnueabihf.so
      building 'av.logging' extension
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/logging.c -o build/temp.linux-aarch64-cpython-311/src/av/logging.o
      gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/logging.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/logging.cpython-311-arm-linux-gnueabihf.so
      building 'av.frame' extension
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/frame.c -o build/temp.linux-aarch64-cpython-311/src/av/frame.o
      gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/frame.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/frame.cpython-311-arm-linux-gnueabihf.so
      building 'av.format' extension
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/format.c -o build/temp.linux-aarch64-cpython-311/src/av/format.o
      gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/format.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/format.cpython-311-arm-linux-gnueabihf.so
      building 'av.error' extension
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/error.c -o build/temp.linux-aarch64-cpython-311/src/av/error.o
      gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/error.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/error.cpython-311-arm-linux-gnueabihf.so
      building 'av.enum' extension
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/enum.c -o build/temp.linux-aarch64-cpython-311/src/av/enum.o
      gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/enum.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/enum.cpython-311-arm-linux-gnueabihf.so
      building 'av.dictionary' extension
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/dictionary.c -o build/temp.linux-aarch64-cpython-311/src/av/dictionary.o
      gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/dictionary.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/dictionary.cpython-311-arm-linux-gnueabihf.so
      building 'av.descriptor' extension
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/descriptor.c -o build/temp.linux-aarch64-cpython-311/src/av/descriptor.o
      gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/descriptor.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/descriptor.cpython-311-arm-linux-gnueabihf.so
      building 'av.bytesource' extension
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/bytesource.c -o build/temp.linux-aarch64-cpython-311/src/av/bytesource.o
      gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/bytesource.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/bytesource.cpython-311-arm-linux-gnueabihf.so
      building 'av.buffer' extension
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/buffer.c -o build/temp.linux-aarch64-cpython-311/src/av/buffer.o
      gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/buffer.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/buffer.cpython-311-arm-linux-gnueabihf.so
      building 'av._core' extension
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/_core.c -o build/temp.linux-aarch64-cpython-311/src/av/_core.o
      gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/_core.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/_core.cpython-311-arm-linux-gnueabihf.so
      building 'av.video.stream' extension
      creating build/temp.linux-aarch64-cpython-311/src/av/video
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/video/stream.c -o build/temp.linux-aarch64-cpython-311/src/av/video/stream.o
      gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/video/stream.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/video/stream.cpython-311-arm-linux-gnueabihf.so
      building 'av.video.reformatter' extension
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/video/reformatter.c -o build/temp.linux-aarch64-cpython-311/src/av/video/reformatter.o
      gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/video/reformatter.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/video/reformatter.cpython-311-arm-linux-gnueabihf.so
      building 'av.video.plane' extension
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/video/plane.c -o build/temp.linux-aarch64-cpython-311/src/av/video/plane.o
      gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/video/plane.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/video/plane.cpython-311-arm-linux-gnueabihf.so
      building 'av.video.frame' extension
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/video/frame.c -o build/temp.linux-aarch64-cpython-311/src/av/video/frame.o
      gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/video/frame.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/video/frame.cpython-311-arm-linux-gnueabihf.so
      building 'av.video.format' extension
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/video/format.c -o build/temp.linux-aarch64-cpython-311/src/av/video/format.o
      gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/video/format.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/video/format.cpython-311-arm-linux-gnueabihf.so
      building 'av.video.codeccontext' extension
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/video/codeccontext.c -o build/temp.linux-aarch64-cpython-311/src/av/video/codeccontext.o
      gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/video/codeccontext.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/video/codeccontext.cpython-311-arm-linux-gnueabihf.so
      building 'av.subtitles.subtitle' extension
      creating build/temp.linux-aarch64-cpython-311/src/av/subtitles
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/subtitles/subtitle.c -o build/temp.linux-aarch64-cpython-311/src/av/subtitles/subtitle.o
      gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/subtitles/subtitle.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/subtitles/subtitle.cpython-311-arm-linux-gnueabihf.so
      building 'av.subtitles.stream' extension
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/subtitles/stream.c -o build/temp.linux-aarch64-cpython-311/src/av/subtitles/stream.o
      gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/subtitles/stream.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/subtitles/stream.cpython-311-arm-linux-gnueabihf.so
      building 'av.subtitles.codeccontext' extension
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/subtitles/codeccontext.c -o build/temp.linux-aarch64-cpython-311/src/av/subtitles/codeccontext.o
      gcc -shared -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib -L/home/homeassistant/.pyenv/versions/3.11.4/lib -Wl,-rpath,/home/homeassistant/.pyenv/versions/3.11.4/lib build/temp.linux-aarch64-cpython-311/src/av/subtitles/codeccontext.o -L/home/homeassistant/.pyenv/versions/3.11.4/lib -lavformat -lavcodec -lavdevice -lavutil -lavfilter -lswscale -lswresample -o build/lib.linux-aarch64-cpython-311/av/subtitles/codeccontext.cpython-311-arm-linux-gnueabihf.so
      building 'av.sidedata.sidedata' extension
      creating build/temp.linux-aarch64-cpython-311/src/av/sidedata
      gcc -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/include/arm-linux-gnueabihf -I/home/homeassistant/.pyenv/versions/3.11.4/include/python3.11 -c src/av/sidedata/sidedata.c -o build/temp.linux-aarch64-cpython-311/src/av/sidedata/sidedata.o
      src/av/sidedata/sidedata.c: In function β€˜__pyx_pymod_exec_sidedata’:
      src/av/sidedata/sidedata.c:5664:9: error: β€˜AV_FRAME_DATA_SEI_UNREGISTERED’ undeclared (first use in this function)
       5664 |   if (((AV_FRAME_DATA_SEI_UNREGISTERED != -1L) != 0)) {
            |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      src/av/sidedata/sidedata.c:5664:9: note: each undeclared identifier is reported only once for each function it appears in
      error: command '/usr/bin/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 ha-av
Failed to build ha-av
ERROR: Could not build wheels for ha-av, which is required to install pyproject.toml-based projects
denisfrench commented 1 year ago

I had this same issue after running the Bookworm upgrade script on RPi 3B; ongoing errors about unable to build ha-av, and unable to load various integrations. I tried pip3 install ha-av, with same result.

Home assistant controls my house/life, so I had to roll-back to my backup of Bullseye. I will therefore unfortunately be unable to test further for now. I will give it another go if there is any progress on this and an update to the script.

denisfrench commented 1 year ago

I noticed v8.20 included #6492, which resolves an issue with FFmpeg version conflicts on Bookworm for RPi, so tried the upgrade script again after dietpi-update.

There was an issue with the script not handling the perceived version downgrade, which was resolved by running apt upgrade within the console manually. Possibly this was due to me not rebooting after the v8.20 update.

I'm pleased to report this resolves the issue on RPi 3B.

HyperCriSiS commented 1 year ago

I have also no errors anymore.πŸ‘πŸ‘ I am unsure if it was after apt upgrade or after update to 2023.8.1.

MichaIng commented 1 year ago

Right, I missed a flag to really enforce the FFmpeg package "downgrade" (which is actually an upgrade from v4 to v5) and fixed it here: https://github.com/MichaIng/DietPi/commit/bda4e69

Good that finally this issue with its rats tail is all solved πŸ™‚.

HyperCriSiS commented 1 year ago

Seems some integrations are not working anymore. I totally oversaw this. Google cast Mobile app Power calc Nanoleaf

Anyone else having this issue? Just tried readding google cast. It loads like forever, it is in the list then but error "not loaded".

denisfrench commented 1 year ago

The only integration we have in common is the mobile app, which is working fine for me on RPi 3B.

After the script reinstalled home assistant, I did go through the whole systemctl restart home-assistant process outlined at https://dietpi.com/docs/software/home_automation/#home-assistant, after which everything worked fine.

I'm not an expert, but I would run dietpi-software reinstall 157 and go through the process again, watching for errors.

HyperCriSiS commented 1 year ago

Yes, thank you, that worked.πŸ‘

MichaIng commented 1 year ago

Was HA not automatically reinstalled as part of the distro upgrade?

HyperCriSiS commented 1 year ago

I was doing the distro update before you released the fix

Mausy5043 commented 1 year ago

What option should I add to dietpi.txt so that the installer does not need to ask me which distro (bookworm or trixie) I want to use?

MichaIng commented 1 year ago

dietpi.txt only affects the final DietPi system, not the installer. You can automate the installer via environment variables: https://github.com/MichaIng/DietPi/blob/master/.build/images/dietpi-installer#L19-L26

To skip the distro question in particular, e.g. for Bookworm:

export DISTRO_TARGET=7
Mausy5043 commented 1 year ago

I see why I got the question. DISTRO_TARGET defaults to 6, while that is nolonger a valid value once I'm on bookworm; I remember seeing only Bookworm(7) and Trixie(8) being offered in the dialog.
Please consider changing the default in line 26 to 7.

MichaIng commented 1 year ago

Nope, it has no default value, you must pass a valid one or get the prompt. I just missed to update the comments (no effective code!) to reflect the "suggested" distro version.

Bullseye is not offered if you run the script on a Bookworm or newer Debian version, as downgrading it is impossible and does not make any sense either.

Btw, this issue is about the debian-bookworm-upgrade script, not the dietpi-installer πŸ˜‰.

rogerthn2019 commented 1 year ago

As said in https://dietpi.com/blog/?p=3128#comment-5882 I did try the bookworm upgrade script. Some information DietPi v8.21.1 : 13:12 - Mon 09/11/23 Device model : ASUS Tinker Board (armv7l)

lshw product: Rockchip RK3288 Asus Tinker Board S

cat /etc/os-release

PRETTY_NAME="Armbian 23.8.1 bullseye"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.armbian.com"
SUPPORT_URL="https://forum.armbian.com"
BUG_REPORT_URL="https://www.armbian.com/bugs"
ARMBIAN_PRETTY_NAME="Armbian 23.8.1 bullseye"

cat /etc/debian_version 11.7

dpkg -l base-files

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version         Architecture Description
+++-==============-===============-============-=======================================
ii  base-files     23.8.1-bullseye armhf        Armbian base system miscellaneous files

apt update

Hit:1 https://deb.debian.org/debian bookworm InRelease
Hit:2 https://deb.debian.org/debian bookworm-updates InRelease
Hit:3 https://deb.debian.org/debian-security bookworm-security InRelease
Hit:4 https://deb.debian.org/debian bookworm-backports InRelease
Hit:5 https://fi.mirror.armbian.de/apt bookworm InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
W: https://apt.armbian.com/dists/bookworm/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
MichaIng commented 1 year ago

Hmm, your Armbian repo is at Bookworm, but their base-files packages is still at Bullseye. I guess because the version string 23.8.1-bullseye is alphanumerically higher than 23.8.1-bookworm πŸ˜„. A little glitch their end, using the code name instead of the number as package version suffix. Please "downgrade" it manually to the correct version:

apt install base-files=23.8.1-bookworm

We should simply block this package from being installed from the Armbian repo und use the one from the Debian repo instead πŸ€”.

To fix the warning:

curl -sSfL 'https://apt.armbian.com/armbian.key' | gpg --dearmor -o /etc/apt/trusted.gpg.d/dietpi-armbian.gpg --yes
rm /etc/apt/trusted.gpg
apt update
rogerthn2019 commented 1 year ago

Thanks! apt install base-files=23.8.1-bookworm cat /etc/os-release

PRETTY_NAME="Armbian 23.8.1 bookworm"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.armbian.com"
SUPPORT_URL="https://forum.armbian.com"
BUG_REPORT_URL="https://www.armbian.com/bugs"
ARMBIAN_PRETTY_NAME="Armbian 23.8.1 bookworm"

cat /etc/debian_version 12.1 curl -sSfL 'https://apt.armbian.com/armbian.key' | gpg --dearmor -o /etc/apt/trusted.gpg.d/dietpi-armbian.gpg --yes mv /etc/apt/trusted.gpg /root/ apt update

Hit:1 https://deb.debian.org/debian bookworm InRelease
Hit:2 https://deb.debian.org/debian bookworm-updates InRelease
Hit:3 https://deb.debian.org/debian-security bookworm-security InRelease
Hit:4 https://deb.debian.org/debian bookworm-backports InRelease
Hit:5 https://fi.mirror.armbian.de/apt bookworm InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
InnovoDeveloper commented 1 year ago

Just in case, I ended up adding the following code to handle this issue in the upgrade script. Seems to handle it. I am sure there is a more elegant way to do this, but this was my Q&D solution.

G_DIETPI-NOTIFY 2 'Applying the actual upgrade to Debian Bookworm'
/boot/dietpi/dietpi-services stop
G_AGUP
G_AGUG
G_AGDUG

/boot/dietpi/func/dietpi-obtain_hw_model
. /boot/dietpi/.hw_model
output=$(head -4 /etc/os-release)
if [[ "$output" =~ "bullseye" ]]; 
then

G_DIETPI-NOTIFY 0 'Still says bullseye, updating...'
apt install base-files=23.8.1-bookworm
curl -sSfL 'https://apt.armbian.com/armbian.key' | gpg --dearmor -o /etc/apt/trusted.gpg.d/dietpi-armbian.gpg --yes
rm /etc/apt/trusted.gpg
apt update
/boot/dietpi/func/dietpi-obtain_hw_model
. /boot/dietpi/.hw_model
else
G_DIETPI-NOTIFY 0 'Congratulations, you are now on Bookworm:'
head -4 /etc/os-release
echo
fi

read -rp 'Next, some migrations are done for all software to run nicely on Bookworm. This can include dietpi-software reinstalls. Press ENTER to continue or CTRL+C to abort ...'
Nama commented 1 year ago

This is somewhat related. The download page of RPI B/Zero says "Bullseye Images", but there aren't any links. image

MichaIng commented 1 year ago

The green "here" link brings you to the article about the Bookworm release: https://dietpi.com/blog/?p=3128 It contains all information regarding incompatible software, followed by a link to the image download directory where you find all Bullseye images: https://dietpi.com/downloads/images/

Nama commented 1 year ago

Thanks. I went on the blog post twice and didn't find it.

MichaIng commented 1 year ago

Ah the end of 2. πŸ™‚: https://dietpi.com/blog/?p=3128#incompatible Not too prominent indeed πŸ€”.

MichaIng commented 1 year ago

The issue with the base-files package will be solved with next DietPi update: https://github.com/MichaIng/DietPi/commit/b38163c

Generally we are now blocking the installation of any package from their repo, aside of kernel, dtb, headers, bootloader and firmware.

pedrom34 commented 1 year ago

Hi!

I just went on bookworm on my rock64, it took a while with the backup and all, but it's running alright πŸŽ‰ . Quick feedback:

For both issue, I think it was related to dietpi-log option in dietpi-software. It was switched from ram log to none. I don't know why. Anyway I resolved it.

Also, I had to reinstall required dependencies for my calibre-web setup. But that's not really in dietpi scope.

And last issue I couldn't resolve yet, is that error I'm getting when I launch apt update now

https://apt.sonarr.tv/debian/dists/buster/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
MichaIng commented 1 year ago

I had to uninstall and reinstall proftpd because the service kept on crashing for some reason 😐

You do not have the service logs anymore, do you? There was this issue when upgrading from Buster to Bullseye: #4666 But hence it should have caused an error on Bullseye already, if installed prior to the fix.

I had to create an empty apache2 folder in /var/logs for apache2 to start for some reason 😐

Was this causing an error already during the installation, or afterwards, when the service finally attempts to start up? We enforce system journal logging with our default config. However, if you installed Apache before we did this change, and then the package ist upgraded, which implies a service (re)start, if this must succeed for the package upgrade to complete, then we might need to mask the service prior to the upgrade and unmask it afterwards, after the new config with disabled file logging has been installed.

https://apt.sonarr.tv/debian/dists/buster/InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.

Ah right, the last software title were we install the key via legacy apt-key. This prints the particular key in your case, right?

apt-key --keyring /etc/apt/trusted.gpg list '2009837CBFFD68F45BC180471F4F90DE2A9B4BF8'

You can replace it that way:

G_EXEC gpg --keyserver 'hkp://keyserver.ubuntu.com:80' --no-default-keyring --keyring /etc/apt/trusted.gpg.d/dietpi-sonarr.gpg --recv-keys '2009837CBFFD68F45BC180471F4F90DE2A9B4BF8'
[[ $(apt-key --keyring /etc/apt/trusted.gpg list 2> /dev/null) ]] || G_EXEC rm /etc/apt/trusted.gpg

The second step should remove the legacy /etc/apt/trusted.gpg, unless there are other keys inside it. I'll apply this patch to all systems with DietPi v6.23 as well. EDIT: Done: https://github.com/MichaIng/DietPi/commit/a93f4fd

pedrom34 commented 1 year ago

You do not have the service logs anymore, do you? There was this issue when upgrading from Buster to Bullseye: #4666 But hence it should have caused an error on Bullseye already, if installed prior to the fix.

No I'm sorry 😞 No logs anymore. I don't remember if that error was there when I upgraded from Buster...

Was this causing an error already during the installation, or afterwards, when the service finally attempts to start up? We enforce system journal logging with our default config. However, if you installed Apache before we did this change, and then the package ist upgraded, which implies a service (re)start, if this must succeed for the package upgrade to complete, then we might need to mask the service prior to the upgrade and unmask it afterwards, after the new config with disabled file logging has been installed.

The error was only when the service attempted to start. The error in dietpi-services status was about the folder apache2 not found in /var/logs, so I just created it by hand and that was it.

You can replace it that way:

Thanks! that did the trick πŸ‘

WolfganP commented 1 year ago

I also used the script to move my raspi2 to bookworm. Thx a lot for putting it all together.

Everything went OK on the OS side, just a few issues with python based programs (had to reinstall some packages with pip) and an internal server based on nginx / fastcgi dynamic pages (error in simple pages that worked before, it was solved looking at the nginx logs and were related to newer versions of ngnix rejecting headers of the composed html as per https://trac.nginx.org/nginx/ticket/2437)

MichaIng commented 1 year ago

@pedrom34

The error was only when the service attempted to start. The error in dietpi-services status was about the folder apache2 not found in /var/logs, so I just created it by hand and that was it.

Very strange, as we enforce ErrorLog syslog in /etc/apache2/conf-available/dietpi.conf. Do you have a vhost or other drop-in config which overrides this and/or adds AccessLog with a target file in /var/log/apache2?

@WolfganP Many thanks for the feedback. Yes since Python 3.9 is upgraded to 3.11, it makes sense that all modules and dependencies installed via pip need to be reinstalled.

pedrom34 commented 1 year ago

Very strange, as we enforce ErrorLog syslog in /etc/apache2/conf-available/dietpi.conf. Do you have a vhost or other drop-in config which overrides this and/or adds AccessLog with a target file in /var/log/apache2?

Damn, you're right! 000-default.conf in /sites-enabled reads:

<VirtualHost *:81>
    DocumentRoot /var/www
    ErrorLog ${APACHE_LOG_DIR}/error.log
    #CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

No idea why I did this. Probably a lazy copy/paste I did years ago. I'm deleting it. Thanks!

MichaIng commented 1 year ago

I wonder how it worked before without the log directory, or why it is missing. As far as I can see, we do not remove it πŸ€”. However, great that it works now.

pedrom34 commented 1 year ago

Just a quick question. I reinstalled freshrss because the update couldn't be found on the web interface. It didn't work as the same version was reinstalled, but that's not really an issue related to bookworm, and that's something I'll figure out.

My question is: why the reinstallation process did reinstall php7.4? php8.2 was already installed on my system. Now I have both versions of php. Is it something related to dietpi or is it my installation?