appdaemon
appdaemon copied to clipboard
NumPy 2.0 Compatibility Issue - Update deepdiff Dependency
AppDaemon fails to load the HASS plugin when NumPy 2.0+ is installed due to incompatibility in the deepdiff dependency.
The issue stems from deepdiff == 8.2.0 (pinned in AppDaemon's pyproject.toml), which is incompatible with NumPy 2.0. NumPy 2.0
Suggested solution
Update deepdiff to version 8.5.0 or higher, which includes NumPy 2.0 compatibility fixes.
Changes needed in pyproject.toml:
dependencies = [
# ... other dependencies ...
'deepdiff >= 8.5.0,< 9.0.0', # Changed from == 8.2.0
# ... other dependencies ...
]
Benefits:
- Enables NumPy 2.0 support
Additional Context
- Related GitHub Issue: https://github.com/AppDaemon/appdaemon/issues/2013
- Upstream Issue: https://github.com/seperman/deepdiff/issues/464
Version
0.17.13 - ha addon