Skip to content

{Packaging} Pin PyJWT to 1.7.1 - #16594

Merged
Jiashuo Li (jiasli) merged 1 commit into
Azure:devfrom
jiasli:pyjwt
Jan 26, 2021
Merged

Jiashuo Li (jiasli) merged 1 commit into
Azure:devfrom
jiasli:pyjwt

Conversation

@jiasli

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Collaborator

Packaging

@jiasli
Jiashuo Li (jiasli) merged commit c7155bb into Azure:dev Jan 26, 2021
@jiasli
Jiashuo Li (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