-
Notifications
You must be signed in to change notification settings - Fork 2
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
Invalid configuration with HA 2024.2 #26
Comments
Same. Error is: Setup failed for custom integration 'worldtidesinfocustom': Requirements for worldtidesinfocustom not found: ['matplotlib>=3.4.2']. |
Ditto... |
I have been affected also and here's what my logs showed:
|
Same here unfortunately. Too bad, this is such a cool integration. Logger: homeassistant.setup Setup failed for custom integration 'worldtidesinfocustom': Requirements for worldtidesinfocustom not found: ['matplotlib>=3.4.2']. |
https://stackoverflow.com/questions/77268673/cannot-install-matplotlib-in-python-3-12 I haven't tried to install matplotlib manually, but looks like it might not support python 3.12 yet (we'll need to bump the matplotlib version for this integration to a supported version when it does). |
I also opened an issue on home Assistant but at the moment it seems to be a problem due to Python version. |
Same issue, reverted to HA 2024/01 for now. Would love to have this fixed! |
I don't wont to open a Me-Too section, but I use that integration almost every day. |
Me too - same error. Would be great to have this fabulous feature fixed! :-) |
Me too - using tibber custom integration which uses matplotlib to show power prices. |
@brodykenrick There are references to specific Python 3.12 fixes in recent releases of https://github.com/matplotlib/matplotlib, so it doesn't appear to be a general issue. I tried changing the manifest of worldtidesinfocustom to specify the latest release (as well as a few other recent releases), but those also throw errors. |
Following, I've got the same issue. |
Following. I have the same issues |
Thanks for your feed back |
@jugla Thanks. Happy to test if it helps. |
Hello But when I fix it : I fall on a pip error installation. I look for a solution... If someone can help me : |
Just tried the same. Here's the very long log entry for the error https://gist.github.com/ronschaeffer/8d795445a38e0c30be568b1e792b8079 |
Agree, |
Does this work for you? I'm on my phone just now, but I could try it later today. |
I fall on |
Just updated to v12.3.3: Failed: Logs:
and:
|
Thanks on raspberry py (via docker), I have an issue on CMAKE. When I look on logs, it seems to be like the following https://bobbyhadz.com/blog/python-setup-py-bdist-wheel-did-not-run-successfully Any idea ? I'm stuck :-( |
The config flow is also not loading (deleted the old device and tried to add anew one). Getting this error:
|
Do you have any updates on this issue? |
I saw what I thought might be a new update pop up in my notifications, I installed, and re-downloaded the latest from HACS. My error appears to be the matplotlib error mentioned above. Here's my log:
|
If I understand it correctly: According to Remove matplotlib pinning due to Python 3.12 incompatibility #110706, this issue may be fixed with the release of Home Assistant 2024.2.3 Just need to wait for release |
Great! Working again. Not getting graphs at the moment but not worried about that. Thanks very much. |
Yes, it's working now. |
I've had some time to play around with this some more today. FYI, I have three different HA servers, each of which has worldtidesinfocuscom installed (different tide stations). Server #1: restored pre-2024.2.x, and installed version 13 of the integration. Matplotlib worked. Re-upgraded to 2024.2.3, Matplotlib still worked. Server #2: Same as above, but for some strange reason Matplotlib ignores the transparency flag (it's transparent regardless of how the flag is set). Server #3: I can't get this to work. Complicating this is that my backup files have gone missing (I back up HA core every time I upgrade) and I had to restore a backup with 2023.6.0. Upgraded integration to version 13. Works fine. But upon upgrading to 2024.2.3, while the integration otherwise works, Matplotlib doesn't. I am also thinking of installing on new hardware (moving from Raspberry Pi to a virtual machine on a Windows machine) which leads me to worry: how can I pre-install Matplotlib so that version 13 of the integration + HA 2024.2.4 works? |
A further update: I was mistaken in thinking that the integration was working. It appears it may have been displaying cached images. (That would explain why the matplotlib transparency flag had no effect.) I noticed that the graphs were showing tides from two days ago (probably rendered after I'd downgraded to 2024.1.6). Check and make sure that the graphs you're seeing are updated. I am still at a loss as to how to get this to work. |
You are right. Same here, didn't notice it right away. Shit. |
On the bright side, the integration is working again, save for the Matplotlib graphing. I have not figured out a way to have the matplotlib survive the upgrades to HA 2024.2.3 (and later) and version 13 of the integration. It's been suggested that the graphing SHOULD work if matplotlib is already there; but having it installed for an earlier version of the integration isn't enough. Any ideas on how matplotlib can be (re)installed, and work with the updated integration? And are others having the same problem? |
Thanks, Jugla, for creating this useful integration and for your updates. The V12.3.3 integration began working again for me with HA Core Update 2024.2.3 (running on X86-64 Intel hardware, if it makes a difference). The only thing I use the World Tides integration for is the graph; the other data I need is available from NOAA (github.com/jshufro/home_assistant_noaa_tides). |
I tried to repeat FortranFour's success (RPi running HA 2024.2.4) by uninstalling V13.0 and installing V12.3.3. While this DOES bring up the config flow and let me install the information, it's not generating plots using matplotlib. I'd guessed that V12.3.3 might have installed matplotlib (unlike V13.0) but no luck with that. |
I have tested, several version of matplotlib with HA2024.2x : all failed. In V13.0.0, if you have a matplotlib seen by HA (i.e. core version for instance), it shall work. |
Thank you for building this great integration, and for your work in trying to get this straightened out. I've noticed that there's wider discussion of matplotlib breaking other integrations. I do have a question. What do you mean by the following?
What do you mean by a "matplotlib seen by HA"? And to what are you referring as a "core version"? |
I updated to V13.0.0 and can confirm that it provides graphs and works as it should without errors on my bare metal X86-64 Intel system running HA Core Update 2024.2.5 and HA OS 12.0. |
Is there anything new to report here? It looks like the issue is that matplotlib doesn't work under HA 2024.2 or later on RPi hardware (which is, unfortunately, a lot of us). I have been keeping an eye on other more general posts related to matplotlib and HA. Is there any hope for a solution? For now, I'm keeping one of my three HA instances on 2024.1, and have all of my monitored tide stations on a page on that server. That page can be loaded as a dashboard in other instances of HA; and (using remote home assistant) the data (but not the graphs) can be displayed directly in the other HA instances. This is OK for now, but not a good long term solution, as it will require keeping an HA instance on 2024.1 indefinitely. |
Actually on my Proxmox VM and test environment on RPi3 everything works (HA 2024.3.0) |
Is the Proxmox VM on separate hardware from the RPi? |
I said something stupid, I was seeing the image but didn't notice that the generation date is stationary. 🤦♂️ both servers are physical and separate, if need be I can debug it |
It seems as if the beach_plot.png and beach_plot_long.png images stopped updating when I updated to HA 2024.3.0 last Wednesday (when it was released, being the first Wednesday of the month). However, the beach.png image continues to update. |
We all really appreciate the work you have put into this integration. Is there any update on getting matplotlib working again with this integration? No graphs being generated with most recent integration version (v13.0.0) on Homeassistant (v2024.3.1) running on x86 hardware with HomeassistantOS (v12.1). The graphs were really helpful for my setup, would be great to see them back! Thanks again |
Hello, |
still does not work :-( |
HA 2024.4 is out and still not working on my RPi system. Any progress? Are there alternatives to matplotlib? I may have to set up another HA instance (on the old software) just to act as a tide server for my other instances (what I am sort of doing now). It's unfortunate, as HA has introduced (and will continue to introduce) a lot of good features in new releases |
i was also just checking in to see if there was an up date too! |
I have found a hacky fix that works for me: My system is HomeAssistant OS running in a VM on unRAID (x86 hardware) Like the rest of you, graphs were not working since 2024.2. After reading a lot of similar issues from other integrations: home-assistant/core#109961 I realised that the problem was that matplotlib was simply not being installed on my system so I tried to install it myself. I first logged into the HomeAssistant OS, then open a bash prompt within the homeassistant core docker container and finally manually install matplotlib myself. After rebooting the system my graphs are back!! Installing matplotlib in the homeassistant core container: For reference, my commands were:
Unfortunately this will need to repeated on every updated of HomeAssistant core until the actual cause of the bug is fixed |
That's really cool @CaptInsano I'm going to try that tonight, will report back. I'm running OS directly installed to a Rpi. |
Unfortunately, not working for me on rpi 4 with Home Assistant OS installed. Here are my logs from the terminal:
I would appreciate your help 😄. I also find it weird that it wants to access numpy 2.0.0rc1 even though numpy 1.26.0 is installed as seen when running |
Defo looks like an issue on RPi hardware as on my system (x86 VM) the numpy version is 1.26.0 without issues. My install (x86) has been working perfectly since reinstalling matplotlib. I even edit the My edited manifest.json is as follows:
|
It looks like some have found solutions or workarounds for x86 hardware. Has anyone had any success with a solution or workaround for RPi hardware? |
I tried the steps for direct install of matplotlib on my RPi, and got the same error message as fjfricke. I also tried a separate install of numpy to no avail. Has anyone else found a solution, or is matplotlib (and worldtidesinfocustom) gone forever from HA installs on RPi hardware? |
Thanks for all messages! |
Firstly, thanks for the integration.
Describe the bug
On the first reboot after installing 2024.2, a persistent notification appears stating "Invalid config
The following integrations and platforms could not be set up: worldtidesinfocustom
Please check your config and logs.
I've set the logger to for worldtidesinfocustom to "debug", but nothing appears in the log.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No change to configuration from previous recent HA versions
Desktop (please complete the following information):
N/A - Persistent notification of configuration error
Smartphone (please complete the following information):
N/A - Persistent notification of configuration error
Additional context
EDIT - I now see the error in the log, which is the same as reported by others:
Setup failed for custom integration 'worldtidesinfocustom': Requirements for worldtidesinfocustom not found: ['matplotlib>=3.4.2'].
The text was updated successfully, but these errors were encountered: