-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azcli_login AuthenticationError #60
Comments
Hi,
If you still get the error.
Please after option '-try_azcli_login' add option '-!se' it will generate a detailed error, including stack trace.
Please copy the stack trace and send it to me.
Michael
From: Alex Kyllo <[email protected]>
Sent: Friday, August 14, 2020 6:30 PM
To: microsoft/jupyter-Kqlmagic <[email protected]>
Cc: Subscribed <[email protected]>
Subject: [microsoft/jupyter-Kqlmagic] azcli_login AuthenticationError (#60)
The azcli_login function doesn't seem to be working--when I run this:
%kql azureDataExplorer://code;cluster='mycluster';database='MyDatabase' -try_azcli_login
I get this error message, which doesn't help me figure out the problem:
AuthenticationError: AuthenticationError('azcli_login', 'TypeError('catching classes that do not inherit from BaseException is not allowed')', '{'authority': 'azcli_login', 'authentication_method': 'azcli_login', 'resource': 'https://mycluster.kusto.windows.net'}')
I'd really like to get azcli authentication working so I don't have to do a multi-step device code auth process every time I re-run my notebook. Any help would be much appreciated.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fjupyter-Kqlmagic%2Fissues%2F60&data=02%7C01%7Cmichabin%40microsoft.com%7C2616f1a4ba2a47cb085008d84066f4ae%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637330158226197200&sdata=wbl5E8ODGyHtkWTZcSuT1Bz5Y3K6blPY9GUt5w6LNgM%3D&reserved=0>, or unsubscribe<https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FACGKLXUJHZHHSZHQUL7HWBLSAVKAZANCNFSM4P7TQM3A&data=02%7C01%7Cmichabin%40microsoft.com%7C2616f1a4ba2a47cb085008d84066f4ae%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637330158226207192&sdata=%2FqOyaoo%2Fm6AsonA3cov%2F5HcS4tkKOt9KJ4JhdolJSuM%3D&reserved=0>.
|
Looks like it's Could this be a transitive dependency that you're importing, which got removed from a recent release of a direct dependency package? I installed Kqlmagic in a virtual environment before running this, and azure-common doesn't show up in the dependency graph. Here's the requirements.txt I get after installing Kqlmagic in a fresh virtualenv, there's no
stack trace:
|
Now that azure-identity package is stable and has CLI support we should look at moving to that. I'm having problems even installing kqlmagic now because of msal dependency version conflicts as a result of kqlmagic pulling in azure-cli packages. azure-identity solves this problem by invoking the cli as a process. It does not depend on cli packages. |
Cool, but in the meantime this ModuleNotFoundError can be fixed by a one-line addition to setup.py. Please see PR #61 |
azure-common will be included in setup.py in next version 0.1.114 |
The azcli_login function doesn't seem to be working--when I run this:
%kql azureDataExplorer://code;cluster='mycluster';database='MyDatabase' -try_azcli_login
I get this error message, which doesn't help me figure out the problem:
AuthenticationError: AuthenticationError('azcli_login', 'TypeError('catching classes that do not inherit from BaseException is not allowed')', '{'authority': 'azcli_login', 'authentication_method': 'azcli_login', 'resource': 'https://mycluster.kusto.windows.net'}')
I'd really like to get azcli authentication working so I don't have to do a multi-step device code auth process every time I re-run my notebook. Any help would be much appreciated.
The text was updated successfully, but these errors were encountered: