I tried to deploy my machine learning model from python (using PyCharm 2018, python 3.9).
However I encountered the following error but when I run "az login" all my subscription information is displayed.
Can anyone advise?
You have logged in. Now let us find all the subscriptions to which you have access...
Interactive authentication successfully completed.
Traceback (most recent call last):
File "C:\InstalledApps\Python39\lib\site-packages\azureml\core\authentication.py", line 1653, in _get_arm_token_with_refresh
if (_get_exp_time(access_token) - time.time()) < _TOKEN_REFRESH_THRESHOLD_SEC:
File "C:\InstalledApps\Python39\lib\site-packages\azureml\core\authentication.py", line 1720, in _get_exp_time
decode_json = jwt.decode(access_token, verify=False)
TypeError: decode() got an unexpected keyword argument 'verify'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\InstalledApps\Python39\lib\site-packages\azureml\core\authentication.py", line 276, in wrapper
return test_function(self, *args, **kwargs)
File "C:\InstalledApps\Python39\lib\site-packages\azureml\core\authentication.py", line 427, in _get_arm_token
return self._get_arm_token_using_interactive_auth()
File "C:\InstalledApps\Python39\lib\site-packages\azureml\core\authentication.py", line 521, in _get_arm_token_using_interactive_auth
arm_token = _get_arm_token_with_refresh(profile_object, cloud_type, ACCOUNT, CONFIG, SESSION,
File "C:\InstalledApps\Python39\lib\site-packages\azureml\core\authentication.py", line 1660, in _get_arm_token_with_refresh
raise AuthenticationException("Could not retrieve user token. Please run 'az login'",
azureml.exceptions._azureml_exception.AuthenticationException: AuthenticationException:
Message: Could not retrieve user token. Please run 'az login'
InnerException decode() got an unexpected keyword argument 'verify'
ErrorResponse
{
"error": {
"code": "UserError",
"inner_error": {
"code": "Authentication"
},
"message": "Could not retrieve user token. Please run 'az login'"
}
}