azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

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

Open brendondb opened this issue 5 years ago • 5 comments

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.

  • 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

brendondb avatar Jul 30 '21 07:07 brendondb

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 "<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.

  • 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: -

ghost avatar Jul 30 '21 15:07 ghost

route to service team

yonzhan avatar Jul 30 '21 15:07 yonzhan

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 avatar Jul 30 '21 17:07 DevArjun23

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

  • az extension remove --name logicapp
  • az extension add --source https://aka.ms/logicapp-latest-py2.py3-none-any.whl

DevArjun23 avatar Aug 05 '21 21:08 DevArjun23