I used the OpenAI Python Package in APP Daemon. Worked really well till some days ago (don’t know exactly). Since then it crashes the HASS Plugin with the following error:
2025-03-21 15:02:24.233823 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2025-03-21 15:02:24.980333 WARNING AppDaemon: error loading plugin: HASS - ignoring
2025-03-21 15:02:24.981150 WARNING AppDaemon: ------------------------------------------------------------
2025-03-21 15:02:24.993598 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
.
If i remove the OpenAI Package everything works fine. Any Ideas how to fix this? Anyone?