Skip to content
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

Open
Howard0000 opened this issue Feb 8, 2024 · 23 comments

Comments

@Howard0000
Copy link

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'].

@tmjo
Copy link
Owner

tmjo commented Feb 8, 2024

Thanks for reporting. Assuming you updated to 2024.2 yesterday. I'll check.

@tmjo
Copy link
Owner

tmjo commented Feb 16, 2024

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.

@tmjo
Copy link
Owner

tmjo commented Feb 23, 2024

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.

@paalj69
Copy link

paalj69 commented Feb 25, 2024

Hi,
I still get an errormessage with the latest HA:
Logger: homeassistant.setup
Source: setup.py:221
First occurred: 24. februar 2024 kl. 12:11:39 (1 occurrences)
Last logged: 24. februar 2024 kl. 12:11:39

Setup failed for custom integration 'norwegiantide': Requirements for norwegiantide not found: ['matplotlib>=3.3.3'].

@Howard0000
Copy link
Author

Hi.
Me too.
I still get the same errormessage with the latest HA.

@tmjo
Copy link
Owner

tmjo commented Feb 27, 2024

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.

@Howard0000
Copy link
Author

Logger: homeassistant.util.package
Source: util/package.py:122
First occurred: 08:33:03 (3 occurrences)
Last logged: 08:34:44

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.
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-ay6hi8nm/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-ay6hi8nm/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-ay6hi8nm/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-ay6hi8nm/overlay/lib/python3.12/site-packages/numpy/core/init.py", line 24, in from . import multiarray File "/tmp/pip-build-env-ay6hi8nm/overlay/lib/python3.12/site-packages/numpy/core/multiarray.py", line 10, in from . import overrides File "/tmp/pip-build-env-ay6hi8nm/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-ay6hi8nm/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-ay6hi8nm/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-ay6hi8nm/overlay/lib/python3.12/site-packages/numpy/config.py", line 4, in from numpy.core._multiarray_umath import ( File "/tmp/pip-build-env-ay6hi8nm/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-ay6hi8nm/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-ay6hi8nm/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-ay6hi8nm/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-ay6hi8nm/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-ay6hi8nm/overlay/lib/python3.12/site-packages/setuptools/init.py", line 103, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-ay6hi8nm/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 185, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-ay6hi8nm/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 201, in run_commands dist.run_commands() File "/tmp/pip-build-env-ay6hi8nm/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/tmp/pip-build-env-ay6hi8nm/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 963, in run_command super().run_command(command) File "/tmp/pip-build-env-ay6hi8nm/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/tmp/pip-build-env-ay6hi8nm/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 321, in run self.find_sources() File "/tmp/pip-build-env-ay6hi8nm/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 329, in find_sources mm.run() File "/tmp/pip-build-env-ay6hi8nm/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 550, in run self.add_defaults() File "/tmp/pip-build-env-ay6hi8nm/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-ay6hi8nm/overlay/lib/python3.12/site-packages/setuptools/command/sdist.py", line 102, in add_defaults super().add_defaults() File "/tmp/pip-build-env-ay6hi8nm/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-ay6hi8nm/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-ay6hi8nm/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-ay6hi8nm/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-p3otu6q6/matplotlib_785898191fd344b08c6ce6e8e870fade/setupext.py", line 403, in get_extensions add_numpy_flags(ext) File "/tmp/pip-install-p3otu6q6/matplotlib_785898191fd344b08c6ce6e8e870fade/setupext.py", line 511, in add_numpy_flags import numpy as np File "/tmp/pip-build-env-ay6hi8nm/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.
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-6kmhs6_b/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-6kmhs6_b/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-6kmhs6_b/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-6kmhs6_b/overlay/lib/python3.12/site-packages/numpy/core/init.py", line 24, in from . import multiarray File "/tmp/pip-build-env-6kmhs6_b/overlay/lib/python3.12/site-packages/numpy/core/multiarray.py", line 10, in from . import overrides File "/tmp/pip-build-env-6kmhs6_b/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-6kmhs6_b/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-6kmhs6_b/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-6kmhs6_b/overlay/lib/python3.12/site-packages/numpy/config.py", line 4, in from numpy.core._multiarray_umath import ( File "/tmp/pip-build-env-6kmhs6_b/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-6kmhs6_b/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-6kmhs6_b/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-6kmhs6_b/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-6kmhs6_b/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-6kmhs6_b/overlay/lib/python3.12/site-packages/setuptools/init.py", line 103, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-6kmhs6_b/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 185, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-6kmhs6_b/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 201, in run_commands dist.run_commands() File "/tmp/pip-build-env-6kmhs6_b/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/tmp/pip-build-env-6kmhs6_b/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 963, in run_command super().run_command(command) File "/tmp/pip-build-env-6kmhs6_b/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/tmp/pip-build-env-6kmhs6_b/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 321, in run self.find_sources() File "/tmp/pip-build-env-6kmhs6_b/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 329, in find_sources mm.run() File "/tmp/pip-build-env-6kmhs6_b/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 550, in run self.add_defaults() File "/tmp/pip-build-env-6kmhs6_b/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-6kmhs6_b/overlay/lib/python3.12/site-packages/setuptools/command/sdist.py", line 102, in add_defaults super().add_defaults() File "/tmp/pip-build-env-6kmhs6_b/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-6kmhs6_b/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-6kmhs6_b/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-6kmhs6_b/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-2ugx67va/matplotlib_50392323b6f74e818bd7587e3e9dd83c/setupext.py", line 403, in get_extensions add_numpy_flags(ext) File "/tmp/pip-install-2ugx67va/matplotlib_50392323b6f74e818bd7587e3e9dd83c/setupext.py", line 511, in add_numpy_flags import numpy as np File "/tmp/pip-build-env-6kmhs6_b/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.

@Howard0000
Copy link
Author

Logger: homeassistant.setup
Source: setup.py:221
First occurred: 08:34:44 (1 occurrences)
Last logged: 08:34:44

Setup failed for custom integration 'norwegiantide': Requirements for norwegiantide not found: ['matplotlib>=3.3.3'].

@TinkerThor
Copy link

Same here. Latest 2024.2.4

@tmjo
Copy link
Owner

tmjo commented Feb 27, 2024

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
"requirements": ["Pillow>=8.1.0", "matplotlib>=3.3.3","numpy>=1.21.6"]
Matplotlib used to be pinned at 3.3.3 in HA, but that was removed with HA 2024.2.3.

@tmjo
Copy link
Owner

tmjo commented Feb 27, 2024

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 docker exec -ti homeassistant bash and then pip list | grep numpy and pip list | grep matplotlib to check versions (if any) are installed of matplotlib and numpy.

@Howard0000
Copy link
Author

numpy 1.26.0
matplotlib no result

@tmjo
Copy link
Owner

tmjo commented Feb 28, 2024

numpy 1.26.0 matplotlib no result

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.
"requirements": ["Pillow>=8.1.0", "matplotlib==3.8.3","numpy>=1.26.0"]

@paalj69
Copy link

paalj69 commented Feb 28, 2024

Hi,
I changed the requirements and got this fault:
Logger: homeassistant.setup
Source: setup.py:221
First occurred: 09:13:36 (1 occurrences)
Last logged: 09:13:36

Setup failed for custom integration 'norwegiantide': Requirements for norwegiantide not found: ['matplotlib==3.8.3'].

@tmjo
Copy link
Owner

tmjo commented Feb 28, 2024

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.

@tmjo
Copy link
Owner

tmjo commented Feb 28, 2024

Guys, which hardware are you running HA on?

@Howard0000
Copy link
Author

I`am running Ha on RPI 4.

@paalj69
Copy link

paalj69 commented Feb 28, 2024

Hi,
Yes, same result as Howard0000. No, matplotlib....
Also running HA on rpi4

@tmjo
Copy link
Owner

tmjo commented Feb 28, 2024

I've opened an issue over at HA to request help.

@paalj69
Copy link

paalj69 commented Feb 29, 2024

Just to make it clear. The terminal response is like this:
Skjermbilde 2024-02-29 083449

@Howard0000
Copy link
Author

Yes.

@gunmalmg
Copy link

Hi
Thank you for a great integration. Very useful

I have several HA installations (In my house - in my cottage)
The integration function well on my Intel NUC installation - at home , but it fails unfortunately on my RPi 4 installation at my cottage by the sea.

I am running same versions of HA om both installations :

Core
2024.4.4
Supervisor
2024.04.0
Operating System
12.2
Frontend
20240404.2

Here is the error log from the RPi 4 installation :

Logger: homeassistant.util.package
Source: util/package.py:123
First occurred: 22:28:15 (3 occurrences)
Last logged: 22:30:04

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.
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-qjrsr8sq/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-qjrsr8sq/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-qjrsr8sq/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-qjrsr8sq/overlay/lib/python3.12/site-packages/numpy/_core/init.py", line 23, in from . import multiarray File "/tmp/pip-build-env-qjrsr8sq/overlay/lib/python3.12/site-packages/numpy/_core/multiarray.py", line 10, in from . import overrides File "/tmp/pip-build-env-qjrsr8sq/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-qjrsr8sq/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-qjrsr8sq/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-qjrsr8sq/overlay/lib/python3.12/site-packages/numpy/config.py", line 4, in from numpy._core._multiarray_umath import ( File "/tmp/pip-build-env-qjrsr8sq/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-qjrsr8sq/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-qjrsr8sq/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-qjrsr8sq/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-qjrsr8sq/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-qjrsr8sq/overlay/lib/python3.12/site-packages/setuptools/init.py", line 104, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-qjrsr8sq/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 184, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-qjrsr8sq/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 200, in run_commands dist.run_commands() File "/tmp/pip-build-env-qjrsr8sq/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/tmp/pip-build-env-qjrsr8sq/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 967, in run_command super().run_command(command) File "/tmp/pip-build-env-qjrsr8sq/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/tmp/pip-build-env-qjrsr8sq/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 321, in run self.find_sources() File "/tmp/pip-build-env-qjrsr8sq/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 329, in find_sources mm.run() File "/tmp/pip-build-env-qjrsr8sq/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 550, in run self.add_defaults() File "/tmp/pip-build-env-qjrsr8sq/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-qjrsr8sq/overlay/lib/python3.12/site-packages/setuptools/command/sdist.py", line 102, in add_defaults super().add_defaults() File "/tmp/pip-build-env-qjrsr8sq/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-qjrsr8sq/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-qjrsr8sq/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-qjrsr8sq/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-6j6dr8b0/matplotlib_2abac3247b2e4a579c70f6b79dddd2c5/setupext.py", line 403, in get_extensions add_numpy_flags(ext) File "/tmp/pip-install-6j6dr8b0/matplotlib_2abac3247b2e4a579c70f6b79dddd2c5/setupext.py", line 511, in add_numpy_flags import numpy as np File "/tmp/pip-build-env-qjrsr8sq/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.
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-3xd8u632/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-3xd8u632/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-3xd8u632/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-3xd8u632/overlay/lib/python3.12/site-packages/numpy/_core/init.py", line 23, in from . import multiarray File "/tmp/pip-build-env-3xd8u632/overlay/lib/python3.12/site-packages/numpy/_core/multiarray.py", line 10, in from . import overrides File "/tmp/pip-build-env-3xd8u632/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-3xd8u632/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-3xd8u632/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-3xd8u632/overlay/lib/python3.12/site-packages/numpy/config.py", line 4, in from numpy._core._multiarray_umath import ( File "/tmp/pip-build-env-3xd8u632/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-3xd8u632/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-3xd8u632/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-3xd8u632/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires self.run_setup() File "/tmp/pip-build-env-3xd8u632/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-3xd8u632/overlay/lib/python3.12/site-packages/setuptools/init.py", line 104, in setup return distutils.core.setup(**attrs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-3xd8u632/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 184, in setup return run_commands(dist) ^^^^^^^^^^^^^^^^^^ File "/tmp/pip-build-env-3xd8u632/overlay/lib/python3.12/site-packages/setuptools/_distutils/core.py", line 200, in run_commands dist.run_commands() File "/tmp/pip-build-env-3xd8u632/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands self.run_command(cmd) File "/tmp/pip-build-env-3xd8u632/overlay/lib/python3.12/site-packages/setuptools/dist.py", line 967, in run_command super().run_command(command) File "/tmp/pip-build-env-3xd8u632/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py", line 988, in run_command cmd_obj.run() File "/tmp/pip-build-env-3xd8u632/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 321, in run self.find_sources() File "/tmp/pip-build-env-3xd8u632/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 329, in find_sources mm.run() File "/tmp/pip-build-env-3xd8u632/overlay/lib/python3.12/site-packages/setuptools/command/egg_info.py", line 550, in run self.add_defaults() File "/tmp/pip-build-env-3xd8u632/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-3xd8u632/overlay/lib/python3.12/site-packages/setuptools/command/sdist.py", line 102, in add_defaults super().add_defaults() File "/tmp/pip-build-env-3xd8u632/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-3xd8u632/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-3xd8u632/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-3xd8u632/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-0odx1i6b/matplotlib_1b41e61b0007442087c5ce70de707d39/setupext.py", line 403, in get_extensions add_numpy_flags(ext) File "/tmp/pip-install-0odx1i6b/matplotlib_1b41e61b0007442087c5ce70de707d39/setupext.py", line 511, in add_numpy_flags import numpy as np File "/tmp/pip-build-env-3xd8u632/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.

@tmjo
Copy link
Owner

tmjo commented Apr 25, 2024

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.

Hi Thank you for a great integration. Very useful

I have several HA installations (In my house - in my cottage) The integration function well on my Intel NUC installation - at home , but it fails unfortunately on my RPi 4 installation at my cottage by the sea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants