-
Notifications
You must be signed in to change notification settings - Fork 14
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
"Entity not available: camera.skyfield" after update to HA 2024.2.0 #24
Comments
I can confirm this. I have uninstalled and reinstalled from HACS and I get the same message: Entity not available: camera.skyfield. I have also done a reboot (not just a restart) and that had no effect. Configuration entries: camera:
Thank you. |
Unless you are running this: "Download the prerequisites: pip3 install skyfield matplotlib numpy (no longer necessary with hassio!)" If you are running Home Assistant OS, I do not believe there is a way to add any extra OS-level software that is not an add-on or that comes from HACS. In any event, I loaded this from HACS which should have loaded everything it needed. |
HA2024.2.0 switched over to Python 3.12 and nor HA is now complaining about not being able to install matplotlib:
I got it working by getting into the homeassistant container (using the Advanced SSH & Web Terminal add-on) and calling From inside the container bash command line I installed matplotlib by calling YMMV |
Will that survive the next Core/OS/Supervisor update? |
On my HA, not only is the entity now unavailable, but the lines in configuration.yaml cause HA to hang indefinitely when checking before restart. Commenting out the lines allows HA to restart. |
@mdisabato should survive OS/Supervisor, Core ¯\_(ツ)_/¯ |
thanks @nanobra1n! I did the same and it is working again :) |
I followed the directions. The install spewed a lot of errors (please see attached file) and matplotlib evidently failed to load. The system is at the latest patch level - 2024.2.1. This is not a real high priority for me right now. If someone has time to look at the log, thank you. Otherwise, I'll wait until the next release. Thank you very much. |
@mdisabato: Sorry, something must be different on your system than mine. Your error message now complains about numpy, which I don't see. |
@nanobra1n: Thank you for taking a look. To be honest, I am not a coder of modern languages. If you have a COBOL app, I'm you're man. :) I can read the code and get and idea of what it's doing, but if you ask me to make any changes, it's "deer in the headlights" time. grins |
OS - Yes |
Hmmm thanks for the reports folks. Sorry for the trouble. On python 3.12 there may be a more restrictive combination of numpy and matplotlib versions that I'll have to specify in https://github.com/partofthething/ha_skyfield/blob/master/custom_components/ha_skyfield/manifest.json in order to keep it working nicely with all the installation options. Looks like some other components are experiencing similar issues: jugla/worldtidesinfocustom#26 |
This may be because your machine is attempting to compile matplotlib and numpy from source rather than using one of the pre-built binaries.. Depending on your hardware that could take a very long time, which would look like a hang, and may end up failing after hanging for a long time. Not a solution, but just wanted to mention. |
yep and the problem is (x86 NUC) that the compilation ends up with an error. |
Just comment out the lines in configuration.yaml, like so: #camera: - platform: ha_skyfieldshow_constellations: false |
Exactly. That's all I did as well. The HACS integration is still installed and system is working fine now.
|
Commenting out the integration removes the error but now you don't have a skyfield image entity correct? |
Correct. But since the integration is currently not working correctly which is causing issues starting HA, that's the only option at this point until the code is changed.
|
@mdisabato It looks like your image did not finish uploading? |
Did not work for me either...
So, even though I should not have to as per docs...
I did it anyway...
but it still fails...
|
I tried this "pip3 install --use-pep517 matplotlib" again and got a message it needs to be run in a VENV. Is there any permanent way to get this working again? Thank you. Michael |
Per home-assistant/core#109961, this should have been fixed for most people by this change in home assistant core: home-assistant/core#110706 which was released in 2024.2.3 However, people on rpi4s are still seeing a similar issue: home-assistant/core#111732 which we are tracking here with #27. So I'll close this one for now assuming it works for everyone not on rpi4. |
The picture element does nog loaf anymore and shows: Entity not available: camera.skyfield
The text was updated successfully, but these errors were encountered: