Skip to content

Conversation

@jiasli
Copy link
Member

@jiasli jiasli commented Jan 20, 2021

Description

Fix #16416: az login --identity fails: load_pem_private_key() missing 1 required positional argument: 'backend'

The error is caused by a conflicting dependency on cryptography from PyJWT 2.0.1

https://github.com/jpadilla/pyjwt/blob/3993ce1d3503b58cf74699a89ba9e5c18ef9b556/setup.cfg#L55

cryptography>=3.3.1,<4.0.0

and Azure CLI

'cryptography>=2.3.1,<3.0.0',

There is an ongoing PR #15687 to bump cryptography to the latest version.

Also the current MSAL 1.8.0 requires

https://github.com/AzureAD/microsoft-authentication-library-for-python/blob/1.8.0/setup.py#L76

'PyJWT[crypto]>=1.0.0,<2'

Using the old version of pip may cause failure.

MSAL starts to be compatible with PyJWT 2 since AzureAD/microsoft-authentication-library-for-python#296. Waiting for the next release.

@yonzhan
Copy link
Collaborator

yonzhan commented Jan 20, 2021

Packaging

@yonzhan yonzhan added this to the S182 milestone Jan 20, 2021
@jiasli jiasli merged commit c7155bb into Azure:dev Jan 26, 2021
@jiasli jiasli deleted the pyjwt branch January 26, 2021 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

az login --identity fails: load_pem_private_key() missing 1 required positional argument: 'backend'

3 participants