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

circular import

Open jakbin opened this issue 4 years ago • 0 comments

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

jakbin avatar Jul 14 '21 08:07 jakbin