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.

azure-cli: No module named 'azure'

See original GitHub issue

I tried to install azure-cli but ran into a ModuleNotFoundError:

$ pipx install azure-cli
  installed package azure-cli 2.0.64, Python 3.7.3
  These binaries are now globally available
    - az
    - az.bat
    - az.completion.sh
done! ✨ 🌟 ✨
$
$ az
/usr/bin/python: Error while finding module specification for 'azure.cli' (ModuleNotFoundError: No module named 'azure')
$ type az
az is hashed (/home/foo/.local/bin/az)
$ ls -l /home/foo/.local/bin/az
lrwxrwxrwx 1 foo foo 46 2019-05-13 14:44 /home/foo/.local/bin/az -> /home/foo/.local/pipx/venvs/azure-cli/bin/az
$ ls /home/foo/.local/pipx/venvs/azure-cli/lib/python3.7/site-packages/azure
batch  cli  common  datalake  graphrbac  __init__.py  keyvault  mgmt  multiapi  profiles  __pycache__  storage

The module appears to be here - is there something special about azure-cli?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
gaborbernatcommented, Nov 30, 2019

Cool, so I guess the issue itself can now be closed as the fix was on the package side 👍

0reactions
albdvcommented, Jan 3, 2020

This time it seems the issue was about cli extention. Fixed by updating extension. Thanks for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

`No module named azure.cli` · Issue #3351 - GitHub
re-install of azure-cli does not fix the issue. OS: Ubuntu 14.04. Python: 2.7.13. Creating the missing _init.py file fixed the issue. touch $ ......
Read more >
Ansible Runner fails with `No Module named Azure.cli`
Ansible Runner fails with `No Module named Azure.cli` ... I have azure-cli-core installed but the playbook fails when trying to import from ...
Read more >
AWX/Ansible Tower - "No module named 'azure.cli.core.auth' "
I'm trying to install the Azure.Azcollection module on an AWX server, but encountering the following dependency error: TASK [List all keys in specific...
Read more >
ModuleNotFoundError: No module named 'azure-cli'
Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'azure-cli' How to remove the ModuleNo.
Read more >
"No module named 'azure.cli.core.auth' " : r/ansible - Reddit
I'm trying to install the Azure.Azcollection module on an AWX server, but encountering the following dependency error:
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