I know this is a bit dead now u’ve moved to Docker, but after bashing my head on the wall for hours,
upgrading to 24.04,
installing 3.13 python
upgrading mqtt
getting the old requirements i had out putted using https://community.home-assistant.io/t/upgrading-homeassistant-core-in-a-python-ve/420027
stream was the final bit
I found a fork that supports python3 https://github.com/frobnitzem/stream.py
cloned it, moved it to /srv/stream/ (and changed ownership)
then once i was the HA username i installed it.
pip install /srv/stream