AttributeError after login through the browser
See original GitHub issueDescribe 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:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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?