Azure / Azure/azure-cli-extensions
[confcom] error with latest version enabling confcom
- Dominant language
- Python
- Stars
- 454
- Forks
- 1.7k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 64
Description
Source: https://github.com/Azure/azure-cli/issues/32251 (by @adalfarravg)
Affected extension: `confcom` (`src/confcom/`)
---
<<>>
# Issue #32251 (by @adalfarravg)
## Title
error with latest version enabling confcom
## Body
### 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 [, , ]
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 []
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 [.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/te
... [truncated, original was 10889 chars]
## Comments
### Comment by @yonzhan
Thank you for opening this issue, we will look into it.
<<>>
Contributor guide
Assessment
This issue has not been assessed yet.