question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ImportError: cannot import name 'jwt_refresh_token_required' from 'flask_jwt_extended'

See original GitHub issue

Having this error as soon as I cloned the project and tried installation steps, can someone help me set this up?

here’s my pip freeze :

alembic==1.5.4 aniso8601==8.1.1 apispec==4.3.0 apispec-webframeworks==0.5.2 appdirs==1.4.4 arrow==0.17.0 binaryornot==0.4.4 certifi==2020.12.5 chardet==4.0.0 click==7.1.2 cookiecutter==1.7.2 distlib==0.3.1 filelock==3.0.12 Flask==1.1.2 Flask-JWT-Extended==4.0.2 flask-marshmallow==0.14.0 Flask-Migrate==2.6.0 Flask-RESTful==0.3.8 Flask-SQLAlchemy==2.4.4 gunicorn==20.0.4 idna==2.10 itsdangerous==1.1.0 Jinja2==2.11.3 jinja2-time==0.2.0 Mako==1.1.4 MarkupSafe==1.1.1 marshmallow==3.10.0 marshmallow-sqlalchemy==0.24.2 packaging==20.9 passlib==1.7.4 pluggy==0.13.1 poyo==0.5.0 py==1.10.0 PyJWT==2.0.1 pyparsing==2.4.7 python-dateutil==2.8.1 python-dotenv==0.15.0 python-editor==1.0.4 python-slugify==4.0.1 pytz==2021.1 PyYAML==5.4.1 requests==2.25.1 six==1.15.0 SQLAlchemy==1.3.23 text-unidecode==1.3 toml==0.10.2 tox==3.22.0 urllib3==1.26.3 virtualenv==20.4.2 Werkzeug==1.0.1

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kareccommented, Mar 1, 2021

@hpardora @bitjockey42 issue should be solved with commit f1e9a29, build is passing now

1reaction
bitjockey42commented, Feb 17, 2021

Looks like there were breaking changes for flask-jwt-extended 4.0.2.

auth/views.py calls some functions that no longer exist, were deprecated, or were replaced in v4 of flask-jwt-extended.

I was able to fix it by updating the imports and changing some calls: https://gist.github.com/bitjockey42/4921deadd3f57ec248796b83495baf54

Hope that helps.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flask-JWT-Extended: @jwt_refresh_token_required ...
while configuring the application object to see the actual error, causing the code to break and return a code 500.
Read more >
Getting problem with flask_jwt_extened - M220P - MongoDB
An error is thrown for python run.py on Mac ImportError: cannot import name 'get_jwt_claims' from 'flask_jwt_extended' ...
Read more >
importerror cannot import name 'jwt refresh token ... - 掘金
importerror cannot import name 'jwt refresh token required' from 'flask_jwt_extended'. 原文链接Python出现错误: ImportError: cannot import name 'imresize' 解决 ...
Read more >
Refreshing Tokens — flask-jwt-extended 4.4.4 documentation
Unfortunately we can't just change the expires time on a JWT on each request ... from flask_jwt_extended import unset_jwt_cookies app = Flask(__name__) #...
Read more >
Flask-JWT-Extended - PyPI
Flask-JWT-Extended not only adds support for using JSON Web Tokens (JWT) to Flask for ... Ensure documentation builds and there are no broken...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found