-
Notifications
You must be signed in to change notification settings - Fork 290
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
Beta 2024.12.0b0 breaks amp #2698
Comments
It looks like an update to aiofiles 24.1.0 would fix the problem |
I checked what's changed in aiofiles 24.1.0 from 23.2.1 and the update looks to be safe for @alandtse: |
Can't we just move alexapy into this repo to ease further development? Aland is not anymore maintaining it anyway and even barely looking into issues and prs unfortunately so everything takes really long and then it still needs to be published to pypi and bumped here etc |
It's not as simple as that since alexapy is a python library that HA imports like httpx, aiohttp, aiofiles, typing, etc, etc, etc. I posted an issue for this in alexapy and Alan has responded there but there's no PR there yet. I just wish the current AMP release of 5.0.0 was 4.13.9 or 4.14.0 until alexapy is updated, merged, then AMP updated, merged and then released as 5.0.0. |
Hi |
It's just about copying the files, adjusting the imports and doing the same also with the auth capture proxy, isn't it? I think both libraries are not used anywhere else either way and the only downside would be updates of the component being a bit bigger but also less maintenance burden for @alandtse who needs to monitor multiple repos, bump and release alexapy, then bump alexapy here and release the component. It would also make it easier to develop stuff when it's all in the component and quick fixes could even be applied by the users as in this case before an official update is available |
There's been no change yet in alexapy and it's If you want to continue using AMP, you'll have to stay on Core 11.x until |
If you want to try using AMP & Core 12.x before Here are my steps...
This will downgrade aiofiles to 23.2.1 and that has to be rectified as other modules depend on Than...
(this will restore aiofiles 24.1.0) Since Restart Home Assistant and AMP/alexapy should be working in HA Core 2024.12.x. NOTE: This process will need to be repeated after every HA Core update since
|
Or just install this wheel (might need to rename from zip to whl first as GitHub doesn't allow uploading whl files) using pip install alexapy-1.29.4-py3-none-any.whl and restart HA afterwards. But that's exactly the reason why I think those few alexapy python files should be just moved into this repo. |
Unlikely. AlexaPy is a multi purpose module for Python and not bound to this single use case we have here. So if you would say "copied" as in forked, then yes, might be a nice idea if you want to add even more work to your maintenance workflow, but only then. Otherwise you have to wait until it's fixed over there. We are not talking about hours of work to fix it, so I see no reason to fork anything here. (+ Luckily it's nothing anyone here can decide anyways ^^) And while we are at it... I use this Addin for years now and NEVER had big downtimes in the release cycle. So where in the name of :putgodlikentitynamehere: comes this never asked for "it's broken for months now!!!!!1eleven" mentality from?! It's your fault that you install the Home Assistant Beta and now complaining that things don't work for a few days is nothing but naive and if I were the developer, I would even call it a direct insult of my work. Betas are not meant for everyday use, but to report bugs. This was done already, so wait until it's fixed! P.S. Because we live in a world where everyone feels immediately insulted, discriminated etc etc... This one was not against the ppl who came here to rightfully report the issue or help with temporary solutions. |
@dreimer1986 Thanks for the lesson although you seem to have missed that alexapy was built specifically for this addon to retire the previous NodeJS solution and might not even be used anywhere else than here. For the rest please read my comments and arguments more thoroughly and save all our time by refraining from posting when you are unable to add anything of value to the discussion |
As stated, betas are to test code and report issues. If you want an instant fix, go back to core 2024.11. I am working when I have time to try fix the issue. I managed to get alexapy 1.29.4 installed into core 2024.12.0b2 and found that alexawebsocket.py's |
IMPORTANT: Please search the issues, including closed issues, and the FAQ before opening a new issue. The template is mandatory; failure to use it will result in issue closure.
Describe the bug
Integration does not load
To Reproduce
update to latest beta
Expected behavior
it works
Screenshots
System details
const.py
or HA startup log): 14.8pip show alexapy
in homeasssistant container or HA startup log): 1.29.4Debug Logs (alexa_media & alexapy)
Unable to install package alexapy==1.29.4: × No solution found when resolving dependencies: ╰─▶ Because alexapy==1.29.4 depends on aiofiles>=23.1.0,<24.0.0 and aiofiles>=24.1.0, we can conclude that alexapy==1.29.4 cannot be used. And because you require alexapy==1.29.4, we can conclude that your requirements are unsatisfiable.
Additional context
The text was updated successfully, but these errors were encountered: