-
-
Notifications
You must be signed in to change notification settings - Fork 223
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
ImportError: cannot import name 'json' from 'itsdangerous' #289
Comments
You are using an unsupported version of Flask, please update to the latest version if possible. Additionally, please read https://hynek.me/articles/semver-will-not-save-you/, then use a tool like pip-tools to pin your dependencies and control when you get updates. Be sure to run your tests with deprecation warnings treated as errors so that you get notified of these types of changes early. |
Just started looking into a more recent version of Flask. Thank you. |
When trying to use Flask, which pulls Version 2.1.0, we're seeing the following error:
File "/usr/local/lib/python3.8/site-packages/flask/init.py", line 21, in
from .app import Flask, Request, Response
File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 25, in
from . import cli, json
File "/usr/local/lib/python3.8/site-packages/flask/json/init.py", line 21, in
from itsdangerous import json as _json
ImportError: cannot import name 'json' from 'itsdangerous' (/usr/local/lib/python3.8/site-packages/itsdangerous/init.py)
The program should correctly import the json library if its needed (which I believe it is) or it should be removed.
Environment:
The text was updated successfully, but these errors were encountered: