-
Notifications
You must be signed in to change notification settings - Fork 202
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
[Bug] msal==1.29.0
incompatible with azureml-core<1.55
#719
Comments
@hutec , I do not have a set of Azure ML environment so I have difficulty to reproduce this issue. If you happen to have a ~/.azure/msal_token_cache.json file in your environment, would you mind send it to my email (which you can find in my github profile)? That file is in json format. Feel free to alter (but not remove) your username or email before sending it. CC Azure CLI's expert, @jiasli , do you have any suggestion on how to reproduce this? |
This issue may be similar to Azure/azure-cli#29331 I think it is caused by using an old version of MSAL 1.29.0 promoted If MSAL 1.29.0 is installed but That's why the 'msal>=1.29,<2', # Use TokenCache.search() from MSAL Python 1.29+ Azure CLI bumped Some other investigationI downloaded the whl file of # azureml_core-1.56.0-py3-none-any\azureml\_vendor\azure_cli_core\__init__.py
__version__ = "2.30.0" In Azure CLI's source code, the error if not accounts:
raise CLIError("User '{}' does not exist in MSAL token cache. Run `az login`.".format(username)) But in the error's call stack, it is raised as an File "/usr/local/lib/python3.8/dist-packages/azureml/_vendor/azure_cli_core/auth/msal_authentication.py", line 43, in __init__
raise AzureMLException("User {} does not exist in MSAL token cache. Run `az login`.".format(username)) Apparently, the code has been customized. |
@hutec , would you please share the output of |
Thanks for your investigations! I'm currently on vacation without access to the Token Cache file nor the pip environment, but will provide it on Monday, when I'm back. But I remember that the environmen has |
If an upstream library ( I would recommend either pinning |
Thanks, @hutec . That information already confirmed our hypothesis. I agree with @jiasli 's suggestion. An old combination of |
Describe the bug
AzureML authentication through AzureML SDK v1 fails when using
msal==1.29.0
andazureml-core==1.54.0.post1
.To Reproduce
This example works with
msal==1.28.1
and fails withmsal==1.29.0
.Expected behavior
Dataset should be retrieved.
What you see instead
The MSAL Python version you are using
The example works with
msal==1.28.1
and fails withmsal==1.29.0
.The text was updated successfully, but these errors were encountered: