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

adding matplotlib package conflicts with hass plugin #353

Open
bruxy70 opened this issue Oct 12, 2024 · 0 comments
Open

adding matplotlib package conflicts with hass plugin #353

bruxy70 opened this issue Oct 12, 2024 · 0 comments

Comments

@bruxy70
Copy link

bruxy70 commented Oct 12, 2024

Problem/Motivation

When I add matplotlib package to the python packages, AppDaemon stops updating the HA entities (with error message that the entity does not exist in the default workspace).

The appdaemon.log contains this error message:

2024-10-12 12:46:40.373426 WARNING AppDaemon: error loading plugin: HASS - ignoring
2024-10-12 12:46:40.373611 WARNING AppDaemon: ------------------------------------------------------------
2024-10-12 12:46:40.375887 WARNING AppDaemon: Traceback (most recent call last):
  File "/usr/lib/python3.11/site-packages/appdaemon/plugin_management.py", line 140, in __init__
    mod = __import__(full_module_name, globals(), locals(), [module_name], 0)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/appdaemon/plugins/hass/hassplugin.py", line 14, in <module>
    from deepdiff import DeepDiff
  File "/usr/lib/python3.11/site-packages/deepdiff/__init__.py", line 10, in <module>
    from .diff import DeepDiff
  File "/usr/lib/python3.11/site-packages/deepdiff/diff.py", line 18, in <module>
    from deepdiff.helper import (strings, bytes_type, numbers, uuids, times, ListItemRemovedOrAdded, notpresent,
  File "/usr/lib/python3.11/site-packages/deepdiff/helper.py", line 63, in <module>
    np_float_ = np.float_
                ^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/numpy/__init__.py", line 400, in __getattr__
    raise AttributeError(
AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.

Expected behavior

Use matplotlib

Actual behavior

Adding matplotlib causes the HASS plugin to stop working

Steps to reproduce

Add matplotlib to python packages.
Restart AppDaemon
Check appdaemon.log, or test set_state to an entity

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

1 participant