question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

appservice kube - No module named 'azure.mgmt.web.v2021_01_01'

See original GitHub issue

Related command az appservice kube

Describe the bug When running the az appservice kube command, getting the following output.

ERROR: The command failed with an unexpected error. Here is the traceback:
ERROR: No module named 'azure.mgmt.web.v2021_01_01'
Traceback (most recent call last):
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 663, in execute
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 697, in _run_job
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 333, in __call__
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 363, in handler
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/arm.py", line 429, in show_exception_handler
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 361, in handler
  File "C:\Users\arcdemo\.azure\cliextensions\appservice-kube\azext_appservice_kube\custom.py", line 305, in show_kube_environments
    client = _get_kube_client(cmd)
  File "C:\Users\arcdemo\.azure\cliextensions\appservice-kube\azext_appservice_kube\custom.py", line 301, in _get_kube_client
    return client.kube_environments
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/mgmt/web/_web_site_management_client.py", line 627, in kube_environments
ModuleNotFoundError: No module named 'azure.mgmt.web.v2021_01_01'
Snag_28fc08b1

To Reproduce

tl;dr

Run the the az appservice kube command in Windows PoSH (not tested in Bash but it looks like it will happen there as well)

Long version

Follow the Deploy an App Service app using custom container on AKS using an ARM Template Azure Arc Jumpstart scenario

Expected behavior az appservice kube command should result in no Python dependency errors

Environment summary Az CLI 2.42.0 Windows PoSH

Additional context Related to Azure Arc Jumpstart opened issue ModuleNotFoundError: No module named ‘azure.mgmt.web.v2021_01_01’ #1549

/cc @Devinwong

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:24 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
likamratcommented, Dec 7, 2022

@navba-MSFT Why is this marked as completed if we have no fix for latest CLI version?

1reaction
likamratcommented, Nov 30, 2022

Yes. As part of our automation we always do a fresh install

Read more comments on GitHub >

github_iconTop Results From Across the Web

No module named 'azure.mgmt.managementgroups ... - GitHub
Steps to reproduce the behavior: Install ansible 2.10 and azurecollection1.10 offline and run ansible task: name: "Defined Resource Group."
Read more >
ModuleNotFoundError: No module named 'azure.mgmt ...
After upgrading ansible to version 2.10.5 and python3.8.10 my playbook.yml fails with this error. ModuleNotFoundError: No module named 'azure.
Read more >
No module named 'azure.mgmt.monitor.version'
Installed Ansible 2.10 and collection azure.azurecollection. I am unable to get Ansible 2.10 working with collections for my existing playbooks. COMPONENT NAME.
Read more >
Azure App Service (Flask) - No module named 'run'
Azure App Service (Flask): ModuleNotFoundError: No module named 'run'. Hey, I'm currently working on my college project and tried deploying ...
Read more >
No module named 'azure.mgmt.monitor.version' although the ...
After upgrading ansible to version 2.10.5 and python3.8.10 my playbook.yml fails with this error. ModuleNotFoundError: No module named…
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found