vimalloc / flask-jwt-extended

An open source Flask extension that provides JWT support (with batteries included)!
http://flask-jwt-extended.readthedocs.io/en/stable/
MIT License
1.53k stars 241 forks source link

cannot import name 'DecodeError' from 'jwt' #553

Open legend1998 opened 1 month ago

legend1998 commented 1 month ago

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 commented 1 month ago

Am i missing something???

vimalloc commented 1 month ago

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