Related command
az extension add -n azure-devops
Describe the bug
Adding the azure-devops extension fails when the Azure CLI was installed via pip under Python 3.11.0:
az extension add -n azure-devops
ERROR: The command failed with an unexpected error. Here is the traceback:
ERROR: argument _subcommand: conflicting subparser: add
Traceback (most recent call last):
File "D:\a\_work\_tool\Python\3.11.0\x64\Lib\site-packages\knack\cli.py", line 233, in invoke
cmd_result = self.invocation.execute(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\a\_work\_tool\Python\3.11.0\x64\Lib\site-packages\azure\cli\core\commands\__init__.py", line 565, in execute
self.parser.load_command_table(self.commands_loader)
File "D:\a\_work\_tool\Python\3.11.0\x64\Lib\site-packages\azure\cli\core\parser.py", line 100, in load_command_table
command_parser = subparser.add_parser(command_verb,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\a\_work\_tool\Python\3.11.0\x64\Lib\argparse.py", line 1185, in add_parser
raise ArgumentError(self, _('conflicting subparser: %s') % name)
argparse.ArgumentError: argument _subcommand: conflicting subparser: add
To open an issue, please run: 'az feedback'
To Reproduce
1. Install Python 3.11.0.
2. python -m pip install --upgrade pip
3. pip install --pre azure-cli --extra-index-url https://azurecliprod.blob.core.windows.net/edge
4. az extension add -n azure-devops
Expected behavior
The extension is successfully installed.
Environment summary
Observed this failure in AzureDevOps running Windows 10. Note, this does not fail if installing using Python 3.10.x.
Related command
az extension add -n azure-devops
Describe the bug
Adding the azure-devops extension fails when the Azure CLI was installed via pip under Python 3.11.0:
To Reproduce
Expected behavior
The extension is successfully installed.
Environment summary
Observed this failure in AzureDevOps running Windows 10. Note, this does not fail if installing using Python 3.10.x.