Skip to content

Conversation

@mainred
Copy link
Member

@mainred mainred commented Oct 14, 2025

Related command

Description

deepdiff 6.3.0 was released two years ago, and it relies numpy 1.x. When bumping holmesgpt in aks-agent in Azure/azure-cli-extensions#9261, we found an issue when azdev setup the aks-agent extension with the following error. The reason is aks-agent introduced numpy 2.3.3.


`np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.
Traceback (most recent call last):
  File "/home/azureuser/code/env/lib/python3.12/site-packages/knack/cli.py", line 233, in invoke
    cmd_result = self.invocation.execute(args)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/azureuser/code/env/lib/python3.12/site-packages/knack/invocation.py", line 134, in execute
    self.commands_loader.load_arguments(command)
  File "/home/azureuser/code/env/lib/python3.12/site-packages/azdev/__main__.py", line 30, in load_arguments
    from azdev.params import load_arguments
  File "/home/azureuser/code/env/lib/python3.12/site-packages/azdev/params.py", line 14, in <module>
    from azdev.operations.command_change import diff_export_format_choices
  File "/home/azureuser/code/env/lib/python3.12/site-packages/azdev/operations/command_change/__init__.py", line 12, in <module>
    import azure_cli_diff_tool
  File "/home/azureuser/code/env/lib/python3.12/site-packages/azure_cli_diff_tool/__init__.py", line 15, in <module>
    from deepdiff import DeepDiff
  File "/home/azureuser/code/env/lib/python3.12/site-packages/deepdiff/__init__.py", line 10, in <module>
    from .diff import DeepDiff
  File "/home/azureuser/code/env/lib/python3.12/site-packages/deepdiff/diff.py", line 18, in <module>
    from deepdiff.helper import (strings, bytes_type, numbers, uuids, times, ListItemRemovedOrAdded, notpresent,
  File "/home/azureuser/code/env/lib/python3.12/site-packages/deepdiff/helper.py", line 63, in <module>
    np_float_ = np.float_
                ^^^^^^^^^
  File "/home/azureuser/code/env/lib/python3.12/site-packages/numpy/__init__.py", line 781, in __getattr__
    raise AttributeError(
AttributeError: `np.float_` was removed in the NumPy 2.0 release. Use `np.float64` instead.

This checklist is used to make sure that common guidelines for a pull request are followed.

  • pylint azdev --rcfile=.pylintrc -r n

  • flake8 --statistics --append-config=.flake8 azdev

@kairu-ms
Copy link
Contributor

/azp rhn

@azure-pipelines
Copy link

Command 'rhn' is not supported by Azure Pipelines.

Supported commands
  • help:
    • Get descriptions, examples and documentation about supported commands
    • Example: help "command_name"
  • list:
    • List all pipelines for this repository using a comment.
    • Example: "list"
  • run:
    • Run all pipelines or specific pipelines for this repository using a comment. Use this command by itself to trigger all related pipelines, or specify specific pipelines to run.
    • Example: "run" or "run pipeline_name, pipeline_name, pipeline_name"
  • where:
    • Report back the Azure DevOps orgs that are related to this repository and org
    • Example: "where"

See additional documentation.

@kairu-ms
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines failed to run 2 pipeline(s).

'deepdiff~=6.3.0',
'azure-cli-diff-tool~=0.1.0',
'deepdiff~=8.6.1',
'azure-cli-diff-tool~=0.1.1',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR depends on #532 to bump the deepdiff and 0.1.1 release.

@wangzelin007
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@wangzelin007
Copy link
Member

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@wangzelin007 wangzelin007 merged commit dcc1fcf into Azure:dev Oct 15, 2025
25 checks passed
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

Successfully merging this pull request may close these issues.

3 participants