-
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
Setup failed for custom integration 'norwegiantide': Requirements for norwegiantide not found: ['matplotlib>=3.3.3']. #8
Comments
Thanks for reporting. Assuming you updated to 2024.2 yesterday. I'll check. |
Just an update on this: Seems like this is a genereic HA/Matplotlib compatibility and that there is a solution soon to be implemented here. |
The issue should be solved with the release of HA 2024.2.3. Please update Home Assistant and let me know if everthing looks good. |
Hi, Setup failed for custom integration 'norwegiantide': Requirements for norwegiantide not found: ['matplotlib>=3.3.3']. |
Hi. |
Hmm, that's strange. Are you both running HAOS too? It's working fine on my three instances. Do you have some more details on the error message, perhaps there is an additional issue. |
Logger: homeassistant.util.package Unable to install package matplotlib>=3.3.3: error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [123 lines of output] /tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/setuptools_scm/git.py:308: UserWarning: git archive did not support describe output warnings.warn("git archive did not support describe output") /tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/setuptools_scm/git.py:327: UserWarning: unprocessed git archival found (no export subst applied) warnings.warn("unprocessed git archival found (no export subst applied)") /tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/setuptools_scm/_integration/setuptools.py:90: UserWarning: version of matplotlib already set warnings.warn(f"version of {dist_name} already set") Edit mplsetup.cfg to change the build options; suppress output with --quiet. BUILDING MATPLOTLIB python: yes [3.12.1 (main, Jan 4 2024, 11:43:50) [GCC 13.2.1 20231014]] platform: yes [linux] tests: no [skipping due to configuration] macosx: no [Mac OS-X only] running egg_info writing lib/matplotlib.egg-info/PKG-INFO writing dependency_links to lib/matplotlib.egg-info/dependency_links.txt writing requirements to lib/matplotlib.egg-info/requires.txt writing top-level names to lib/matplotlib.egg-info/top_level.txt Traceback (most recent call last): File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/numpy/core/init.py", line 24, in from . import multiarray File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/numpy/core/multiarray.py", line 10, in from . import overrides File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/numpy/core/overrides.py", line 8, in from numpy.core._multiarray_umath import ( ImportError: Error loading shared library /tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/numpy/core/_multiarray_umath.cpython-312-aarch64-linux-musl.so: Operation not permitted During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/numpy/init.py", line 130, in from numpy.config import show as show_config File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/numpy/config.py", line 4, in from numpy.core._multiarray_umath import ( File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/numpy/core/init.py", line 50, in raise ImportError(msg) ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed. We have compiled some common reasons and troubleshooting tips at: https://numpy.org/devdocs/user/troubleshooting-importerror.html Please note and check the following: * The Python version is: Python3.12 from "/usr/local/bin/python3" * The NumPy version is: "1.26.4" and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help. Original error was: Error loading shared library /tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/numpy/core/_multiarray_umath.cpython-312-aarch64-linux-musl.so: Operation not permitted The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in main() File "/usr/local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel return self._get_build_requires(config_settings, requirements=['wheel']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup exec(code, locals()) File "", line 279, in File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/setuptools/init.py", line 103, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 185, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 201, in run_commands dist.run_commands() File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 963, in run_command super().run_command(command) File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 321, in run self.find_sources() File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 329, in find_sources mm.run() File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 550, in run self.add_defaults() File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 588, in add_defaults sdist.add_defaults(self) File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/setuptools/command/sdist.py", line 102, in add_defaults super().add_defaults() File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py", line 251, in add_defaults self._add_defaults_ext() File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py", line 335, in _add_defaults_ext build_ext = self.get_finalized_command('build_ext') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 305, in get_finalized_command cmd_obj.ensure_finalized() File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/setuptools/_distutils/cmd.py", line 111, in ensure_finalized self.finalize_options() File "", line 80, in finalize_options File "/tmp/pip-install-6nn60nn1/matplotlib_15fc5e759af34c879975aea84fc64053/setupext.py", line 403, in get_extensions add_numpy_flags(ext) File "/tmp/pip-install-6nn60nn1/matplotlib_15fc5e759af34c879975aea84fc64053/setupext.py", line 511, in add_numpy_flags import numpy as np File "/tmp/pip-build-env-2ibxs3n3/overlay/lib/python3.12/site-packages/numpy/init.py", line 135, in raise ImportError(msg) from e ImportError: Error importing numpy: you should not try to import numpy from its source directory; please exit the numpy source tree, and relaunch your python interpreter from there. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. |
Logger: homeassistant.setup Setup failed for custom integration 'norwegiantide': Requirements for norwegiantide not found: ['matplotlib>=3.3.3']. |
Same here. Latest 2024.2.4 |
Thanks for the log. It is different from what I saw last week, now it seems like it is Numpy that's complained about. Probably some mismatch between matplotlib, numpy and HA/Python3.12. I'm sure we'll figure out this somehow, but it may take some time. If some of you are feeling lucky or experimental, it is possible to do adjustments in manifest.json on your local installation and see if it resolves things. Specifically is the combination in |
I just updated one of my instances to 2024.2.4, latest supervisor and OS. It is still working on my side. If some of you are comfortable with using the SSH addon, disable protection mode, enter the right docker container by typing |
numpy 1.26.0 |
Thanks. Would you be ok with experimenting with the setting? Hard for me to troubleshoot since it is already working. I've got numpy 1.26.0 installed with matplotlib 3.8.3, the below change to manifest.json will pin the matplotlib version to the same as I have. Remember to restart HA after the change is done. |
Hi, Setup failed for custom integration 'norwegiantide': Requirements for norwegiantide not found: ['matplotlib==3.8.3']. |
Thanks for trying. I am not sure what is going on, and really not why it works in some systems and not in others. Could be worth a try to test matplotlib >=3.8.3 instead. @paalj69 did you check installed versions and got 'no result' too? I guess the >= would only make sense if other integrations require a newer version, but does not seem to be the case for @Howard0000 since it says 'no result'. My best guess is that there is a mismatch with numpy (that seems to be pinned in HA just like matplotlib was) and other libraries, but I am not an expert on this. I'll pay attention and see if anything changes in HA, it seems to be affecting other custom integrations too. |
Guys, which hardware are you running HA on? |
I`am running Ha on RPI 4. |
Hi, |
I've opened an issue over at HA to request help. |
Yes. |
Hi I have several HA installations (In my house - in my cottage) I am running same versions of HA om both installations : Core Here is the error log from the RPi 4 installation : Logger: homeassistant.util.package Unable to install package matplotlib>=3.3.3: error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> [123 lines of output] /tmp/pip-build-env-v8klr1t_/overlay/lib/python3.12/site-packages/setuptools_scm/git.py:308: UserWarning: git archive did not support describe output warnings.warn("git archive did not support describe output") /tmp/pip-build-env-v8klr1t_/overlay/lib/python3.12/site-packages/setuptools_scm/git.py:327: UserWarning: unprocessed git archival found (no export subst applied) warnings.warn("unprocessed git archival found (no export subst applied)") /tmp/pip-build-env-v8klr1t_/overlay/lib/python3.12/site-packages/setuptools_scm/integration/setuptools.py:90: UserWarning: version of matplotlib already set warnings.warn(f"version of {dist_name} already set") Edit mplsetup.cfg to change the build options; suppress output with --quiet. BUILDING MATPLOTLIB python: yes [3.12.2 (main, Mar 18 2024, 23:18:19) [GCC 13.2.1 20231014]] platform: yes [linux] tests: no [skipping due to configuration] macosx: no [Mac OS-X only] running egg_info writing lib/matplotlib.egg-info/PKG-INFO writing dependency_links to lib/matplotlib.egg-info/dependency_links.txt writing requirements to lib/matplotlib.egg-info/requires.txt writing top-level names to lib/matplotlib.egg-info/top_level.txt Traceback (most recent call last): File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/numpy/core/init.py", line 23, in from . import multiarray File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/numpy/core/multiarray.py", line 10, in from . import overrides File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/numpy/_core/overrides.py", line 8, in from numpy._core.multiarray_umath import ( ImportError: Error loading shared library /tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/numpy/core/multiarray_umath.cpython-312-aarch64-linux-musl.so: Operation not permitted During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/numpy/init.py", line 114, in from numpy.config import show as show_config File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/numpy/config.py", line 4, in from numpy._core.multiarray_umath import ( File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/numpy/core/init.py", line 49, in raise ImportError(msg) ImportError: IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed. We have compiled some common reasons and troubleshooting tips at: https://numpy.org/devdocs/user/troubleshooting-importerror.html Please note and check the following: * The Python version is: Python3.12 from "/usr/local/bin/python3" * The NumPy version is: "2.0.0rc1" and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help. Original error was: Error loading shared library /tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/numpy/_core/_multiarray_umath.cpython-312-aarch64-linux-musl.so: Operation not permitted The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/pip/vendor/pyproject_hooks/in_process/in_process.py", line 353, in main() File "/usr/local/lib/python3.12/site-packages/pip/vendor/pyproject_hooks/in_process/in_process.py", line 335, in main json_out['return_val'] = hook(**hook_input['kwargs']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/pip/vendor/pyproject_hooks/in_process/in_process.py", line 118, in get_requires_for_build_wheel return hook(config_settings) ^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel return self.get_build_requires(config_settings, requirements=['wheel']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 295, in get_build_requires self.run_setup() File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup exec(code, locals()) File "", line 279, in File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/setuptools/init.py", line 104, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/setuptools/distutils/core.py", line 184, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/setuptools/distutils/core.py", line 200, in run_commands dist.run_commands() File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/setuptools/distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 967, in run_command super().run_command(command) File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/setuptools/distutils/dist.py", line 988, in run_command cmd_obj.run() File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 321, in run self.find_sources() File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 329, in find_sources mm.run() File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 550, in run self.add_defaults() File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 588, in add_defaults sdist.add_defaults(self) File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/setuptools/command/sdist.py", line 102, in add_defaults super().add_defaults() File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py", line 250, in add_defaults self.add_defaults_ext() File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/setuptools/_distutils/command/sdist.py", line 334, in add_defaults_ext build_ext = self.get_finalized_command('build_ext') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/setuptools/distutils/cmd.py", line 303, in get_finalized_command cmd_obj.ensure_finalized() File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/setuptools/distutils/cmd.py", line 111, in ensure_finalized self.finalize_options() File "", line 80, in finalize_options File "/tmp/pip-install-1_r69vwd/matplotlib_17987d41ad284cc99f00ef539377194e/setupext.py", line 403, in get_extensions add_numpy_flags(ext) File "/tmp/pip-install-1_r69vwd/matplotlib_17987d41ad284cc99f00ef539377194e/setupext.py", line 511, in add_numpy_flags import numpy as np File "/tmp/pip-build-env-v8klr1t/overlay/lib/python3.12/site-packages/numpy/init.py", line 119, in raise ImportError(msg) from e ImportError: Error importing numpy: you should not try to import numpy from its source directory; please exit the numpy source tree, and relaunch your python interpreter from there. [end of output] note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error × Getting requirements to build wheel did not run successfully. │ exit code: 1 ╰─> See above for output. note: This error originates from a subprocess, and is likely not a problem with pip. |
Hi, Yes, mine is running fine on NUC too. Ref this, it seems there is a incompatibility with current version of Matplotlib and Rpi. So far no support over at HA.
|
Still no response from HAOS issue, regarding RPi incompatibility? having same problem at my cottage, where I actually used it actively... Could a solution be a version without Matplotlib, that would support only using Apexcharts for visualization? |
@cortado; yes, I have been thinking the same. I'll see if I can solve that. |
That would be great! The autumn is soon here with high water levels. I need to check my boat house in case of high levels ;-) |
That would be great! 👍 |
fantastic! |
Have you been able to look at this, and possibly see a way towards solution? |
Hi
I get this fault code after instaling HA update.
Setup failed for custom integration 'norwegiantide': Requirements for norwegiantide not found: ['matplotlib>=3.3.3'].
The text was updated successfully, but these errors were encountered: