Skip to content

error with latest version enabling confcom #32251

@adalfarravg

Description

@adalfarravg

Describe the bug

possible incompability with python (3.13.7) numpy 2.0 in Fedora 42

Related command

az confcom acipolicygen -a ./aci-arm-template2.json

Errors

$ az confcom acipolicygen -a ./aci-arm-template2.json
Preview version of extension is disabled by default for extension installation, enabled for modules without stable versions.
Please run 'az config set extension.dynamic_install_allow_preview=true or false' to config it specifically.
The command requires the extension confcom. Do you want to install it now? The command will continue to run after the extension is installed. (Y/n): Y
Run 'az config set extension.use_dynamic_install=yes_without_prompt' to allow installing extensions without prompt.
The command failed with an unexpected error. Here is the traceback:
The operation 'azext_confcom.custom#acipolicygen_confcom' is invalid.
Traceback (most recent call last):
File "/home/dalfarra/.local/lib/python3.13/site-packages/azure/cli/core/commands/command_operation.py", line 59, in get_op_handler
handler = import_module(mod_to_import)
File "/usr/lib64/python3.13/importlib/init.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in find_and_load_unlocked
File "", line 935, in load_unlocked
File "", line 1026, in exec_module
File "", line 488, in call_with_frames_removed
File "/home/dalfarra/.azure/cliextensions/confcom/azext_confcom/custom.py", line 10, in
from azext_confcom import oras_proxy, os_util, security_policy
File "/home/dalfarra/.azure/cliextensions/confcom/azext_confcom/oras_proxy.py", line 18, in
from azext_confcom.template_util import (
extract_containers_and_fragments_from_text, extract_svn_from_text)
File "/home/dalfarra/.azure/cliextensions/confcom/azext_confcom/template_util.py", line 14, in
import deepdiff
File "/home/dalfarra/.azure/cliextensions/confcom/deepdiff/init.py", line 10, in
from .diff import DeepDiff
File "/home/dalfarra/.azure/cliextensions/confcom/deepdiff/diff.py", line 18, in
from deepdiff.helper import (strings, bytes_type, numbers, uuids, times, ListItemRemovedOrAdded, notpresent,
...<7 lines>...
np, get_truncate_datetime, dict
, CannotCompare, ENUM_INCLUDE_KEYS)
File "/home/dalfarra/.azure/cliextensions/confcom/deepdiff/helper.py", line 63, in
np_float
= np.float

^^^^^^^^^
File "/home/dalfarra/.local/lib/python3.13/site-packages/numpy/init.py", line 400, in getattr
raise AttributeError(
...<3 lines>...
)
AttributeError: np.float_ was removed in the NumPy 2.0 release. Use np.float64 instead.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/dalfarra/.local/lib/python3.13/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/home/dalfarra/.local/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 564, in execute
self.commands_loader.load_arguments(command)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/home/dalfarra/.local/lib/python3.13/site-packages/azure/cli/core/init.py", line 553, in load_arguments
self.command_table[command].load_arguments() # this loads the arguments via reflection
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/home/dalfarra/.local/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 321, in load_arguments
super().load_arguments()
~~~~~~~~~~~~~~~~~~~~~~^^
File "/home/dalfarra/.local/lib/python3.13/site-packages/knack/commands.py", line 104, in load_arguments
cmd_args = self.arguments_loader()
File "/home/dalfarra/.local/lib/python3.13/site-packages/azure/cli/core/commands/command_operation.py", line 124, in arguments_loader
op = self.get_op_handler(self.op_path)
File "/home/dalfarra/.local/lib/python3.13/site-packages/azure/cli/core/commands/command_operation.py", line 66, in get_op_handler
raise ValueError("The operation '{}' is invalid.".format(op_path))
ValueError: The operation 'azext_confcom.custom#acipolicygen_confcom' is invalid.

Issue script & Debug output

az confcom acipolicygen -a ./aci-arm-template2.json --debug
cli.knack.cli: Command arguments: ['confcom', 'acipolicygen', '-a', './aci-arm-template2.json', '--debug']
cli.knack.cli: init debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7ff9c175e0c0>, <function OutputProducer.on_global_arguments at 0x7ff9c14ce020>, <function CLIQuery.on_global_arguments at 0x7ff9c1510180>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'confcom': ['azext_confcom']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: Total (0) 0.000 0 0
cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next']
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name Load Time Groups Commands Directory
cli.azure.cli.core: confcom 0.004 1 3 /home/dalfarra/.azure/cliextensions/confcom
cli.azure.cli.core: Total (1) 0.004 1 3
cli.azure.cli.core: Loaded 1 groups, 3 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : confcom acipolicygen
cli.azure.cli.core: Command table: confcom acipolicygen
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x7ff9c0599ee0>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/home/dalfarra/.azure/commands/2025-10-13.08-28-39.confcom_acipolicygen.1957274.log'.
az_command_data_logger: command args: confcom acipolicygen -a {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument..add_subscription_parameter at 0x7ff9c05df4c0>]
cli.azure.cli.core.azclierror: Traceback (most recent call last):
File "/home/dalfarra/.local/lib/python3.13/site-packages/azure/cli/core/commands/command_operation.py", line 59, in get_op_handler
handler = import_module(mod_to_import)
File "/usr/lib64/python3.13/importlib/init.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in find_and_load_unlocked
File "", line 935, in load_unlocked
File "", line 1026, in exec_module
File "", line 488, in call_with_frames_removed
File "/home/dalfarra/.azure/cliextensions/confcom/azext_confcom/custom.py", line 10, in
from azext_confcom import oras_proxy, os_util, security_policy
File "/home/dalfarra/.azure/cliextensions/confcom/azext_confcom/oras_proxy.py", line 18, in
from azext_confcom.template_util import (
extract_containers_and_fragments_from_text, extract_svn_from_text)
File "/home/dalfarra/.azure/cliextensions/confcom/azext_confcom/template_util.py", line 14, in
import deepdiff
File "/home/dalfarra/.azure/cliextensions/confcom/deepdiff/init.py", line 10, in
from .diff import DeepDiff
File "/home/dalfarra/.azure/cliextensions/confcom/deepdiff/diff.py", line 18, in
from deepdiff.helper import (strings, bytes_type, numbers, uuids, times, ListItemRemovedOrAdded, notpresent,
...<7 lines>...
np, get_truncate_datetime, dict
, CannotCompare, ENUM_INCLUDE_KEYS)
File "/home/dalfarra/.azure/cliextensions/confcom/deepdiff/helper.py", line 63, in
np_float
= np.float

^^^^^^^^^
File "/home/dalfarra/.local/lib/python3.13/site-packages/numpy/init.py", line 400, in getattr
raise AttributeError(
...<3 lines>...
)
AttributeError: np.float_ was removed in the NumPy 2.0 release. Use np.float64 instead.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/dalfarra/.local/lib/python3.13/site-packages/knack/cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
File "/home/dalfarra/.local/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 564, in execute
self.commands_loader.load_arguments(command)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/home/dalfarra/.local/lib/python3.13/site-packages/azure/cli/core/init.py", line 553, in load_arguments
self.command_table[command].load_arguments() # this loads the arguments via reflection
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/home/dalfarra/.local/lib/python3.13/site-packages/azure/cli/core/commands/init.py", line 321, in load_arguments
super().load_arguments()
~~~~~~~~~~~~~~~~~~~~~~^^
File "/home/dalfarra/.local/lib/python3.13/site-packages/knack/commands.py", line 104, in load_arguments
cmd_args = self.arguments_loader()
File "/home/dalfarra/.local/lib/python3.13/site-packages/azure/cli/core/commands/command_operation.py", line 124, in arguments_loader
op = self.get_op_handler(self.op_path)
File "/home/dalfarra/.local/lib/python3.13/site-packages/azure/cli/core/commands/command_operation.py", line 66, in get_op_handler
raise ValueError("The operation '{}' is invalid.".format(op_path))
ValueError: The operation 'azext_confcom.custom#acipolicygen_confcom' is invalid.

Expected behavior

the command should run w/o errors

Environment Summary

az version
{
"azure-cli": "2.77.0",
"azure-cli-core": "2.77.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {
"confcom": "1.3.0"
}
}

Additional context

works fine in a second Fedora 42 with the following version:
az version
{
"azure-cli": "2.68.0",
"azure-cli-core": "2.68.0",
"azure-cli-telemetry": "1.1.0",
"extensions": {
"confcom": "1.2.8"
}
}

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botConfigureaz configure/configService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions