flask-jwt-extended icon indicating copy to clipboard operation
flask-jwt-extended copied to clipboard

cannot import name 'DecodeError' from 'jwt'

Open legend1998 opened this issue 1 year ago • 2 comments

Traceback (most recent call last): File "D:\practical\python-fullstack\api\jwtAuth.py", line 2, in from flask_jwt_extended import JWTManager, create_access_token, jwt_required, get_jwt_identity, get_jwt File "D:\practical\python-fullstack\api\menv\Lib\site-packages\flask_jwt_extended_init_.py", line 1, in from .jwt_manager import JWTManager as JWTManager File "D:\practical\python-fullstack\api\menv\Lib\site-packages\flask_jwt_extended\jwt_manager.py", line 8, in from jwt import DecodeError ImportError: cannot import name 'DecodeError' from 'jwt' (D:\practical\python-fullstack\api\menv\Lib\site-packages\jwt_init_.py)

legend1998 avatar Jul 18 '24 04:07 legend1998

Am i missing something???

legend1998 avatar Jul 18 '24 04:07 legend1998

Sounds like you have a conflicting jwt package or file that is causing issues. Please refer to this issue to see if that resolves your problems: https://github.com/vimalloc/flask-jwt-extended/issues/456#issuecomment-955296249

vimalloc avatar Jul 18 '24 04:07 vimalloc