Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
legend1998 opened this issue Jul 18, 2024 · 2 comments
Open

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

legend1998 opened this issue Jul 18, 2024 · 2 comments

Comments

@legend1998
Copy link

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
Copy link
Author

Am i missing something???

@vimalloc
Copy link
Owner

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: #456 (comment)

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

No branches or pull requests

2 participants