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.

AttributeError after login through the browser

See original GitHub issue

Describe the bug

AttributeError after login through the browser.

Command Name az login

Errors:

'SubscriptionClient' object has no attribute 'config'
Traceback (most recent call last):
python3.8/site-packages/knack/cli.py, ln 215, in invoke
    cmd_result = self.invocation.execute(args)
cli/core/commands/__init__.py, ln 654, in execute
    raise ex
cli/core/commands/__init__.py, ln 718, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
cli/core/commands/__init__.py, ln 711, in _run_job
    six.reraise(*sys.exc_info())
lib/python3.8/site-packages/six.py, ln 703, in reraise
    raise value
...
azure/cli/core/_profile.py, ln 888, in _find_using_common_tenant
    client = self._arm_client_factory(token_credential)
azure/cli/core/_profile.py, ln 807, in create_arm_client_factory
    configure_common_settings(cli_ctx, client)
cli/core/commands/client_factory.py, ln 79, in configure_common_settings
    client.config.enable_http_logger = True
AttributeError: 'SubscriptionClient' object has no attribute 'config'

Expected Behavior

The azure-cli should login to azure.

Environment Summary

Linux-5.6.15-arch1-1-x86_64-with-glibc2.2.5
Python 3.8.3
Installer: PIP

azure-cli 2.7.0

Additional Context

Currently using SSO through office365 for login.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jiaslicommented, Aug 3, 2020

Hi @JamieMagee, thanks for the analysis.

However, the package on Arch Linux’s repository is not maintained by Azure CLI team and is provided by the community. We only support installation method provided in the official doc Install the Azure CLI. See https://github.com/Azure/azure-cli/issues/9326#issuecomment-564364205 for a similar issue.

Thanks for understanding.

1reaction
JamieMageecommented, Aug 1, 2020

Thanks for digging into this @jiasli. It does indeed look like a mismatch in expected versions.

It looks like @Dissonant-Tech is using Arch Linux, like myself, and probably is using the python-azure-cli which has a dependency on the python-azure-git package. This is quite unstable, but it looks like the azure-cli package is the best way forward. It uses the official install script, just packaged for Arch Linux.

It works well on my machine, and if you agree @Dissonant-Tech I think we can close this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Attribute error in python while trying to sign in - Stack Overflow
I am using python (with selenium webdriver) to sign into yahoo. Below is the code: import unittest from selenium import webdriver from selenium....
Read more >
How to Fix AttributeError in Python - Rollbar
The Python AttributeError is an exception that occurs when an attribute reference or assignment fails. Learn how to fix it.
Read more >
Python AttributeError — What is it and how do you fix it?
Your browser can't play this video. ... The attribute error in Python means that you tried accessing a property of something, but that...
Read more >
Python command execution fails with AttributeError - Databricks
This article can help you resolve scenarios in which Python command execution fails with an AttributeError.
Read more >
Selenium WebDriver Error AttributeError list object has no ...
The error is because your using driver.find_elements instead of driver.find_element. That's a syntactical mistake. Let me know if it solves it.
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