Closed Onemanwolf closed 2 years ago
@karenychen can you please take a look?
This should probably be an issue on the az-cli-extensions repo rather than draft. There's not a single Draft error or log in that stack -- this is entirely within the azure cli.
If there was a Draft error log could you include that as well.
Hi @Onemanwolf,
Here is the link to the az-cli-extensions repository https://github.com/Azure/azure-cli-extensions
Describe the bug Having issue running az aks draft create produces an error
To Reproduce Steps to reproduce the behavior:
Updated CLI
Draft Issue
Expected behavior I expected Draft create to work create Dockerfiles etc.
Screenshots PS C:\Users\tioleson\Draft> az aks draft create --destination /DraftApi The command failed with an unexpected error. Here is the traceback: cannot import name 'map_azure_error_to_cli_error' from 'azure.cli.command_modules.acs._helpers' (C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\azure\cli\command_modules\acs_helpers.pyc) Traceback (most recent call last): File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/init.py", line 583, in execute File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/parser.py", line 261, in parse_args File "argparse.py", line 1768, in parse_args File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/parser.py", line 284, in parse_known_args File "argparse.py", line 1800, in parse_known_args File "argparse.py", line 1988, in _parse_known_args File "argparse.py", line 1965, in consume_positionals File "argparse.py", line 1874, in take_action File "argparse.py", line 1159, in call File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/parser.py", line 284, in parse_known_args File "argparse.py", line 1800, in parse_known_args File "argparse.py", line 1988, in _parse_known_args File "argparse.py", line 1965, in consume_positionals File "argparse.py", line 1858, in take_action File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/parser.py", line 275, in _get_values File "argparse.py", line 2399, in _get_values File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/parser.py", line 326, in _check_value File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/parser.py", line 201, in get_examples File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_help.py", line 192, in get_examples File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/help.py", line 253, in init File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_help.py", line 303, in load File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/_help_loaders.py", line 154, in versioned_load File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/help.py", line 198, in load File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/parser.py", line 241, in getattribute File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 133, in description_loader File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 59, in get_op_handler File "importlib__init__.py", line 127, in import_module File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 783, in exec_module
File "", line 219, in _call_with_frames_removed
File "C:\Users\tioleson.azure\cliextensions\aks-preview\azext_aks_preview\custom.py", line 105, in
from ._helpers import (
File "C:\Users\tioleson.azure\cliextensions\aks-preview\azext_aks_preview_helpers.py", line 7, in
from azure.cli.command_modules.acs._helpers import map_azure_error_to_cli_error
ImportError: cannot import name 'map_azure_error_to_cli_error' from 'azure.cli.command_modules.acs._helpers' (C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\lib\site-packages\azure\cli\command_modules\acs_helpers.pyc)
Desktop (please complete the following information):