Skip to content

NumPy 2.0 Compatibility Issue - Update deepdiff Dependency #2499

@palinf

Description

@palinf

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

Version

0.17.13 - ha addon

Metadata

Metadata

Assignees

No one assigned

    Labels

    issueSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions