addon-appdaemon
addon-appdaemon copied to clipboard
adding matplotlib package conflicts with hass plugin
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