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

Weishaupt WBB update 1.0.4 => 1.0.6 fails with message 'Unable to install package matplotlib>=3.9.2' #88

Closed
Bertk opened this issue Jan 17, 2025 · 11 comments

Comments

@Bertk
Copy link

Bertk commented Jan 17, 2025

Describe the bug
Weishaupt WBB update 1.0.4 => 1.0.6 fails and integration is not available.

To Reproduce
Steps to reproduce the behavior:

  1. install Weishaupt WBB update 1.0.6
  2. Restart HA
  3. Error in log file: 2025-01-17 16:08:05.446 ERROR (SyncWorker_2) [homeassistant.util.package] Unable to install package matplotlib>=3.9.2: × Failed to download and build matplotlib==3.10.0`

Expected behavior
Weishaupt WBB is available and running.

Screenshot
Image

HA-Device (please complete the following information):

  • Device: Home Assistant Yellow
  • HA Core: 2025.1.2
  • HA Supervisor: 2024.12.3
  • HA Operating System: 14.1
  • HA Frontend: 20250109.0
@Bertk Bertk changed the title Weishaupt WBB update 1.0.6 fails with message 'Unable to install package matplotlib>=3.9.2' Weishaupt WBB update 1.04 => 1.0.6 fails with message 'Unable to install package matplotlib>=3.9.2' Jan 17, 2025
@Bertk Bertk changed the title Weishaupt WBB update 1.04 => 1.0.6 fails with message 'Unable to install package matplotlib>=3.9.2' Weishaupt WBB update 1.0.4 => 1.0.6 fails with message 'Unable to install package matplotlib>=3.9.2' Jan 17, 2025
@jngl61
Copy link

jngl61 commented Jan 17, 2025

I have the exact same problem here. First uninstalled the old version and then installed the new version
HA Core 2025.1.2
Supervisor 2025.01.0
Operating System 14.1

@micst
Copy link

micst commented Jan 17, 2025

I can confirm this. Using a RPI4 with 8GB RAM

Core 2025.1.2
Supervisor 2024.12.3
Operating System 14.1
Frontend 20250109.0

Was at 1.0.4, updated to 1.0.6. Rolled back to 1.0.5 first, didn‘t work. Rollback to 1.0.4 worked.

@MadOne
Copy link
Collaborator

MadOne commented Jan 20, 2025

Can you please try to change the following line in manifest.json

from
"requirements": ["pymodbus>=3.6.8", "aiofiles>=24.1.0", "beautifulsoup4>=4.12.3", "matplotlib>=3.9.2"],
to
"requirements": ["pymodbus>=3.6.8", "aiofiles>=24.1.0", "beautifulsoup4>=4.12.3", "matplotlib"],

If its not a version problem we have to make the image generation optional.

@jngl61
Copy link

jngl61 commented Jan 20, 2025

Unfortunately, that does not solve the problem.
HA cannot install the previous version either.

Logger: homeassistant.util.package
Source: util/package.py:159
First occurred: 10:06:31 AM (3 occurrences)
Last logged: 10:06:45 AM

Unable to install package matplotlib: × Failed to download and build matplotlib==3.10.0 ╰─▶ Build backend failed to build wheel through build_wheel (exit status: 1) [stderr] Traceback (most recent call last): File "", line 11, in wheel_filename = backend.build_wheel("/tmp/.tmpoEn5Hw/builds-v0/.tmpL28RvO", {}, None) File "/tmp/.tmpoEn5Hw/builds-v0/.tmpQ2sdvs/lib/python3.13/site-packages/mesonpy/init.py", line 1020, in wrapper return func(*args, **kwargs) File "/tmp/.tmpoEn5Hw/builds-v0/.tmpQ2sdvs/lib/python3.13/site-packages/mesonpy/init.py", line 1073, in build_wheel with _project(config_settings) as project: ~~~~~~~~^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/contextlib.py", line 141, in enter return next(self.gen) File "/tmp/.tmpoEn5Hw/builds-v0/.tmpQ2sdvs/lib/python3.13/site-packages/mesonpy/init.py", line 947, in _project yield Project(source_dir, build_dir, meson_args, editable_verbose) ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/.tmpoEn5Hw/builds-v0/.tmpQ2sdvs/lib/python3.13/site-packages/mesonpy/init.py", line 662, in init self._meson = _get_meson_command(pyproject_config.get('meson')) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/.tmpoEn5Hw/builds-v0/.tmpQ2sdvs/lib/python3.13/site-packages/mesonpy/init.py", line 982, in _get_meson_command meson_version = subprocess.run(cmd + ['--version'], check=False, text=True, capture_output=True).stdout ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/subprocess.py", line 554, in run with Popen(*popenargs, **kwargs) as process: ~~~~~^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/subprocess.py", line 1036, in init self._execute_child(args, executable, preexec_fn, close_fds, ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pass_fds, cwd, env, ^^^^^^^^^^^^^^^^^^^ ...<5 lines>... gid, gids, uid, umask, ^^^^^^^^^^^^^^^^^^^^^^ start_new_session, process_group) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/subprocess.py", line 1966, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) PermissionError: [Errno 13] Permission denied: 'meson'
Unable to install package matplotlib: × Failed to download and build matplotlib==3.10.0 ╰─▶ Build backend failed to build wheel through build_wheel (exit status: 1) [stderr] Traceback (most recent call last): File "", line 11, in wheel_filename = backend.build_wheel("/tmp/.tmpWtnGyq/builds-v0/.tmpEdOrnm", {}, None) File "/tmp/.tmpWtnGyq/builds-v0/.tmpbVTJRd/lib/python3.13/site-packages/mesonpy/init.py", line 1020, in wrapper return func(*args, **kwargs) File "/tmp/.tmpWtnGyq/builds-v0/.tmpbVTJRd/lib/python3.13/site-packages/mesonpy/init.py", line 1073, in build_wheel with _project(config_settings) as project: ~~~~~~~~^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/contextlib.py", line 141, in enter return next(self.gen) File "/tmp/.tmpWtnGyq/builds-v0/.tmpbVTJRd/lib/python3.13/site-packages/mesonpy/init.py", line 947, in _project yield Project(source_dir, build_dir, meson_args, editable_verbose) ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/.tmpWtnGyq/builds-v0/.tmpbVTJRd/lib/python3.13/site-packages/mesonpy/init.py", line 662, in init self._meson = _get_meson_command(pyproject_config.get('meson')) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/.tmpWtnGyq/builds-v0/.tmpbVTJRd/lib/python3.13/site-packages/mesonpy/init.py", line 982, in _get_meson_command meson_version = subprocess.run(cmd + ['--version'], check=False, text=True, capture_output=True).stdout ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/subprocess.py", line 554, in run with Popen(*popenargs, **kwargs) as process: ~~~~~^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/subprocess.py", line 1036, in init self._execute_child(args, executable, preexec_fn, close_fds, ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pass_fds, cwd, env, ^^^^^^^^^^^^^^^^^^^ ...<5 lines>... gid, gids, uid, umask, ^^^^^^^^^^^^^^^^^^^^^^ start_new_session, process_group) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/subprocess.py", line 1966, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) PermissionError: [Errno 13] Permission denied: 'meson'
Unable to install package matplotlib: × Failed to download and build matplotlib==3.10.0 ╰─▶ Build backend failed to build wheel through build_wheel (exit status: 1) [stderr] Traceback (most recent call last): File "", line 11, in wheel_filename = backend.build_wheel("/tmp/.tmpfEOiwr/builds-v0/.tmpCWPuMR", {}, None) File "/tmp/.tmpfEOiwr/builds-v0/.tmphtP5FP/lib/python3.13/site-packages/mesonpy/init.py", line 1020, in wrapper return func(*args, **kwargs) File "/tmp/.tmpfEOiwr/builds-v0/.tmphtP5FP/lib/python3.13/site-packages/mesonpy/init.py", line 1073, in build_wheel with _project(config_settings) as project: ~~~~~~~~^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/contextlib.py", line 141, in enter return next(self.gen) File "/tmp/.tmpfEOiwr/builds-v0/.tmphtP5FP/lib/python3.13/site-packages/mesonpy/init.py", line 947, in _project yield Project(source_dir, build_dir, meson_args, editable_verbose) ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/.tmpfEOiwr/builds-v0/.tmphtP5FP/lib/python3.13/site-packages/mesonpy/init.py", line 662, in init self._meson = _get_meson_command(pyproject_config.get('meson')) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/tmp/.tmpfEOiwr/builds-v0/.tmphtP5FP/lib/python3.13/site-packages/mesonpy/init.py", line 982, in _get_meson_command meson_version = subprocess.run(cmd + ['--version'], check=False, text=True, capture_output=True).stdout ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/subprocess.py", line 554, in run with Popen(*popenargs, **kwargs) as process: ~~~~~^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/subprocess.py", line 1036, in init self._execute_child(args, executable, preexec_fn, close_fds, ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ pass_fds, cwd, env, ^^^^^^^^^^^^^^^^^^^ ...<5 lines>... gid, gids, uid, umask, ^^^^^^^^^^^^^^^^^^^^^^ start_new_session, process_group) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.13/subprocess.py", line 1966, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) PermissionError: [Errno 13] Permission denied: 'meson'

@Bertk Bertk closed this as completed Jan 20, 2025
@Bertk Bertk reopened this Jan 20, 2025
@MadOne
Copy link
Collaborator

MadOne commented Jan 20, 2025

Can you please test this pre release?

@MadOne
Copy link
Collaborator

MadOne commented Jan 20, 2025

Related BugReport

@OStrama
Copy link
Owner

OStrama commented Jan 20, 2025

@MadOne : Thanks for the kennfeld.py update!

Does it work this way?

Background: This function is only used to generate a picture of the power map, so there's no other function of the integration affected. Will test this evening with 2025.1.x

@MadOne
Copy link
Collaborator

MadOne commented Jan 20, 2025

I quick tested it with removing the package from my dev container but waiting for confirmation.
After some reading there seems to be a problem with matplotlib on raspberry / arm.

Maybe this is equal to the scipy problem?

I removed the requirement in the journal.json. But with this it will not be installed even if it is possible. Have not seen a optional dependency yet.

@OStrama
Copy link
Owner

OStrama commented Jan 20, 2025

Yes, that's true. However, this is only a nice to have feature that we have to describe in the readme: "If you want to see the picture, take care that matplotlib is installed."

@jngl61
Copy link

jngl61 commented Jan 20, 2025

Installation of 1.0.7pre works and the sensors give the expected values.
The log gives 2 warnings:

  • Matplotlib not available. Can't create power map image file
  • Scipy not available, use less precise Chebyshef interpolation for heating power

@MadOne
Copy link
Collaborator

MadOne commented Jan 20, 2025

This is intended. I will push this as a full release.

@MadOne MadOne closed this as completed Jan 20, 2025
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