HA 2024.4.x and Stream issue with Python 3.12.2, Rpi4 with Debian 12

Hey Guys,

2024.4.x requires Python 3.12. Compiled 3.12.2 and Stream reports the error below. HA also loading much longer than usual.
Does anyone has fixed the issue? How to do that?
Does it work for anyone (HA 2024.4.x with Python 3.12)? Wondering maybe something is broken on my end (need to reinstall smth or so)…

Rejestrator: homeassistant.setup
Źródło: setup.py:398
Pierwsze zdarzenie: 16:09:51 (1 zdarzenia)
Ostatnio zalogowany: 16:09:51

Error during setup of component stream
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/setup.py", line 398, in _async_setup_component
    result = await task
             ^^^^^^^^^^
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/components/stream/__init__.py", line 226, in async_setup
    await hass.async_add_executor_job(set_pyav_logging, debug_enabled)
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/srv/homeassistant/lib/python3.12/site-packages/homeassistant/components/stream/__init__.py", line 196, in set_pyav_logging
    import av  # pylint: disable=import-outside-toplevel
    ^^^^^^^^^
  File "/srv/homeassistant/lib/python3.12/site-packages/av/__init__.py", line 20, in <module>
    from av._core import time_base, library_versions
ImportError: libwebp.so.6: cannot open shared object file: No such file or directory

thanks for any help!

I want to do a fresh installation on my Raspberry Pi 4 with Raspbian (bookworm). I followed official instructions from here.
It warns at the beginning that i need to have python 3.12 installed but raspbian latest has only 3.11. I ignored that and followed the steps to look how far i come.

I got an ERROR: No matching distribution found for homeassistant==2024.4.3 with

pip3 install homeassistant==2024.4.3

so i installed the latest version shown up:

pip3 install homeassistant==2024.3.3

after staring it with

hass

i got a warning:

2024-04-14 09:56:57.221 WARNING (MainThread) [homeassistant.bootstrap] Support for the running Python version 3.11.2 is deprecated and will be removed in Home Assistant 2024.4; Please upgrade Python to 3.12

how can i upgrade to 3.12 if its not in the repos?
do i need to install it from backports or something?

thank you

See this topic:

To install Python3.12 I followed the link.
Then re-built the HA wenv environment by:

sudo -u homeassistant -H -s
cd /srv/homeassistant
rm -rf *
python3 -m venv .
source bin/activate
python3 -m pip install wheel
pip3 install homeassistant==2024.4.3

It works except Stream integration that returns the subject issue.
Root cause probably is the architecture.