Skip to content
This repository has been archived by the owner on Feb 22, 2024. It is now read-only.

circular import #146

Open
jakbin opened this issue Jul 14, 2021 · 0 comments
Open

circular import #146

jakbin opened this issue Jul 14, 2021 · 0 comments

Comments

@jakbin
Copy link

jakbin commented Jul 14, 2021

Traceback (most recent call last):
File "/home/dj/Desktop/Code/jwt.py", line 2, in
from flask_jwt import JWTs, jwt_required, current_identity
File "/usr/local/lib/python3.9/dist-packages/flask_jwt/init.py", line 16, in
from jwt import *
File "/home/dj/Desktop/Code/jwt.py", line 2, in
from flask_jwt import JWTs, jwt_required, current_identity
ImportError: cannot import name 'JWTs' from partially initialized module 'flask_jwt' (most likely due to a circular import) (/usr/local/lib/python3.9/dist-packages/flask_jwt/init.py)

i run same code, i found on documentation

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

1 participant