Azure / azure-cli

Azure Command-Line Interface
MIT License
3.95k stars 2.93k forks source link

No module named 'vsts_cd_manager' - error when running "az logicapp create " #19053

Closed brendondb closed 3 years ago

brendondb commented 3 years ago

Bug Description:

When executing the command below (under Command), the error (under **Errors) is returned

Command az logicapp create --name MyLogicAppName --resource-group MyResourceGroupName --subscription MySubscription --storage-account MyStorageAccount --custom-location MyCustomLocation

Errors:

The command failed with an unexpected error. Here is the traceback:
No module named 'vsts_cd_manager'
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 556, in execute
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/__init__.py", line 517, in load_arguments
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 313, in load_arguments
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/commands.py", line 104, in load_arguments
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 125, in arguments_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 "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 783, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\Users\user\.azure\cliextensions\logicapp\azext_logicapp\custom.py", line 102, in <module>
    from .vsts_cd_provider import VstsContinuousDeliveryProvider
  File "C:\Users\usr\.azure\cliextensions\logicapp\azext_logicapp\vsts_cd_provider.py", line 8, in <module>
    from vsts_cd_manager.continuous_delivery_manager import ContinuousDeliveryManager
ModuleNotFoundError: No module named 'vsts_cd_manager'

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Expected Behavior

Environment Summary

Windows-10-10.0.19041-SP0
Python 3.8.9
Installer: MSI

azure-cli 2.26.1

Extensions:
appservice-kube 0.1.21
connectedk8s 1.1.5
customlocation 0.1.2
k8s-extension 0.6.1
logicapp 0.1.0

Additional Context

ghost commented 3 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/azure-logicapps-team.

Issue Details
## Bug Description: ##When executing the command below (under **Command**), the error (under **Errors) is returned **Command ** az logicapp create --name MyLogicAppName --resource-group MyResourceGroupName --subscription MySubscription --storage-account MyStorageAccount --custom-location MyCustomLocation **Errors:** ``` The command failed with an unexpected error. Here is the traceback: No module named 'vsts_cd_manager' 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 556, in execute File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/__init__.py", line 517, in load_arguments File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 313, in load_arguments File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/commands.py", line 104, in load_arguments File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 125, in arguments_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\user\.azure\cliextensions\logicapp\azext_logicapp\custom.py", line 102, in from .vsts_cd_provider import VstsContinuousDeliveryProvider File "C:\Users\usr\.azure\cliextensions\logicapp\azext_logicapp\vsts_cd_provider.py", line 8, in from vsts_cd_manager.continuous_delivery_manager import ContinuousDeliveryManager ModuleNotFoundError: No module named 'vsts_cd_manager' ``` ## To Reproduce: Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information. - _Put any pre-requisite steps here..._ - `az logicapp create --name {} --resource-group {} --subscription {} --storage-account {}` ## Expected Behavior ## Environment Summary ``` Windows-10-10.0.19041-SP0 Python 3.8.9 Installer: MSI azure-cli 2.26.1 Extensions: appservice-kube 0.1.21 connectedk8s 1.1.5 customlocation 0.1.2 k8s-extension 0.6.1 logicapp 0.1.0 ``` ## Additional Context
Author: brendondb
Assignees: -
Labels: `Logic App`, `Service Attention`
Milestone: -
yonzhan commented 3 years ago

route to service team

derek1ee commented 3 years ago

@Bec @.***> can you take a look at this?


From: yonzhan @.> Sent: Friday, July 30, 2021 8:01 AM To: Azure/azure-cli @.> Cc: Derek Li (AZURE) @.>; Team mention @.> Subject: Re: [Azure/azure-cli] No module named 'vsts_cd_manager' - error when running "az logicapp create " (#19053)

route to service team

— You are receiving this because you are on a team that was mentioned. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-cli%2Fissues%2F19053%23issuecomment-889951676&data=04%7C01%7Cdeli%40microsoft.com%7Ce2af1db7484b4330cfa608d9536ae317%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637632540813681672%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=K3epwqBaYewOugYiWE6EoHri74gF%2F8ViKx9mMPvNzFo%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABOB5ZDBJ2YSYSX2F6OKTKDT2K5D5ANCNFSM5BH6XEFQ&data=04%7C01%7Cdeli%40microsoft.com%7Ce2af1db7484b4330cfa608d9536ae317%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637632540813681672%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=H3QlQC7lhDpvlDVqhn1%2Bg114nUUG7f5OAg0%2FYcv1lFk%3D&reserved=0.

DevArjun23 commented 3 years ago

We are aware of the issue and working on a fix, new version of the extension will be released next week.

As a workaround, please downgrade the azure cli to 2.23.0.

DevArjun23 commented 3 years ago

We released a new version of logic app extension. To upgrade, please remove and install the extension again using these two commands-