-
-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Home Assistant - Python 3.13 #7293
Comments
No wonder my fresh install of Home Assistant kept being stuck at this stage
|
I doubt that there is a connection. It is to be expected that it will take a while at this stage. Depending on the SBC, it can even take a very long time. |
Thanks for the heads up! But it will still support Python 3.12: https://github.com/home-assistant/core/blob/dev/pyproject.toml The news is only for the HA containers and appliances. It means at least that most relevant integrations do support Python 3.13 now. We will then also switch, once it is has been released. But no urgency. |
@MichaIng I think it's more of an urgent issue... I was having this error after updating to hass 2024.12: home-assistant/core#131997 To be fair, I did not try reinstalling without this mod, so maybe 3.12.7 would still work... |
Mine is working but I got the "warning" message I posted above. They're not deprecating old Python until Feb 2025 for HA Core |
@lukaszsobala
I guess so. But I'll keep it in mind, in case someone else reports it. Ah, and, since 2024.12 is released now, I'll update ours to Python 3.13 now anyway. |
Done: de0af4b |
I'm using fresh install of DietPi + HA with Python version 3.13.1 and got next error: Unable to install package av==13.1.0 |
@vdvdnk |
@MichaIng |
If anything does not work, like mentioned audio/video/camera integrations which require decoding or encoding on the HA host system, then: apt install ffmpeg That should also mute the error. But the set of libraries is huge, which is why we do not install it OOTB. |
Note that I also installed ffmpeg and libavcodec, error still persist. In previous version of HA 2024.11 no such errors (at least I haven't noticed that) |
Ah hmm, then it is probably an issue with the FFmpeg version. ... indeed
The
Not sure whether they were aware it is a breaking change, but IIRC FFmpeg 6 was actually declared as dependency already. Home Assistant declares v13.1 as minimum dependency version: In v2023.11 it was still their own fork Newer FFmpeg is available through this repository: |
Thanks for the investigation! With FFmpeg from deb-multimedia.org av compiled successfully and HA works without any issues. |
It is sadly difficult to implement this by default into DietPi FFmpeg installations. It contains a lot of other software and libraries, which can be incompatible with other Debian packages which depend on them, including own media packages we provide for each Debian version. And on RPi, the Kodi build from the RPi repo is needed to provide full hardware acceleration, while the one from the multimedia.org repo has a higher epoch version, hence will forcefully be installed ... and the one from RPi repo is likely not compatible with the shared libs from that repo etc etc 😄. The switch (back) from |
Some errors for me today: Traceback (most recent call last): |
Solution seems to be here home-assistant/core#131997 (comment) |
So it is two dedicated issues: one as of left over files from The other one is due to I'll test whether manually pinning down the |
Do I need to do anything or await further instructions/next DietPi release? |
Next DietPi release will ship HA with Python 3. But it most likely won't have the FFmpeg issue worked around yet. |
So, compiled ffmpeg by myself and install it, removed the old one from the deb rep and do the fix from here home-assistant/core#131997 (comment) Everything works fine - now waiting for the python 3.13 fix with the next dietpi release and all done :) |
In the next release of HA with Version 2024.12, Python is raised to version 3.13.
https://rc.home-assistant.io/blog/2024/11/26/release-202412#weve-upgraded-to-python-313
It might lead to certain problems and wanted to let you know in advance.
The text was updated successfully, but these errors were encountered: