jpadilla / pyjwt

JSON Web Token implementation in Python
https://pyjwt.readthedocs.io
MIT License
5.05k stars 676 forks source link

ImportError: cannot import name 'smart_text' from 'django.utils.encoding' #844

Closed magbanum closed 1 year ago

magbanum commented 1 year ago

Summary.

Expected Result

The error mentioned in the title is not expected. This error is because smart_text is removed and replaced with smart_txt in latest Django version.

Actual Result

What happened instead.

Reproduction Steps

import jwt

System Information

$ python -m jwt.help
<paste here>

This command is only available on PyJWT v1.6.3 and greater. Otherwise, please provide some basic information about your system.

auvipy commented 1 year ago

why you are reporting that here can you elaborate? it is a django issue. I am not sure if pyjwt use any django import?