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.

`pip install azure-cli==0.1.1b2` broken! (no module named _logging)

See original GitHub issue

I have a Docker container where I pin to a specific version of the CLI:

ENV AZURE_CLI_VERSION 0.1.1b2
...
RUN pip install azure-cli==${AZURE_CLI_VERSION}

Obviously the first thing we do is run az login ...

Today someone reported it didn’t work. Turns out, works on my machine because the layers were cached, presumably from before 0.1.1b3 was released. So, I cleared all my cached docker layers and images and executed it again… and sure enough mine doesn’t work now either.

$ az login

root@7b04240ef178:/gopath/src/github.com/Azure/acs-engine# az login
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/lib/python2.7/dist-packages/azure/cli/__main__.py", line 9, in <module>
    import azure.cli.main
  File "/usr/local/lib/python2.7/dist-packages/azure/cli/main.py", line 10, in <module>
    import azure.cli.core._logging as _logging
ImportError: No module named _logging

0.1.1b3 works, but I really don’t want this to break in another 2 weeks

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
colemickenscommented, Feb 21, 2017

That’d be great!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pip Import Error No module named logging - python
And once again installed python and pip. I am still getting the same error whenever I run any command using pip.
Read more >
no module named 'logging.config' · Issue #243 ... - GitHub
Try reproducing with a fresh conda env. conda create -n hydra_test python=3.7 conda activate hydra_test pip install hydra==0.9.0 ...
Read more >
How to Fix: No module named pandas - GeeksforGeeks
The error “No module named pandas ” will occur when there is no pandas library ... In python, we will use pip function...
Read more >
Pip is not working: ImportError: No module named 'pip._internal'
I solved this by updating pip via Python, like this: python2 -m pip install --user --upgrade pip python3 -m pip install --user --upgrade...
Read more >
No module named 'jnpr' | Automation
I am using Windows and trying to run this python code as mentioned below but unable to get past this error: from jnpr.junos...
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