-
Notifications
You must be signed in to change notification settings - Fork 178
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' (/usr/local/lib/python3.8/dist-packages/itsdangerous/__init__.py) #49
Comments
Updating requirements.txt file to this appears to fix:
|
Updating Flask==1.1.4 and markupsafe==2.0.1 works for me. |
uday-globuslive
added a commit
to uday-globuslive/flask-example
that referenced
this issue
Feb 21, 2022
To fix the below error: aws-samples/amazon-ecs-mythicalmysfits-workshop#49
for me fixing one package fixed it
|
XD-DENG
pushed a commit
to XD-DENG/flask-example
that referenced
this issue
Mar 12, 2022
To fix the below error: aws-samples/amazon-ecs-mythicalmysfits-workshop#49
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is at the end of lab 1
Based on this post issue appears to stem from:
Flask 1.1.2 is set up to require itsdangerous >= 0.24. The latest released (itsdangerous) version (2.10) deprecated the json API. To continue using Flask 1.1.2, you need to require at most itdangerous 2.0.1 (not 2.10)
From that page:
Found the same problem today. I used Flask in version 1.1.2. The problem disappeared after update to version 1.1.4.
And also impacted the AWS SAM CLI:
With the temporary fix being:
The text was updated successfully, but these errors were encountered: