Skip to content
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

Python service deployments failing due to Flask dependency issue #309

Closed
daemon-joe opened this issue Feb 21, 2022 · 1 comment
Closed

Comments

@daemon-joe
Copy link
Contributor

Deployments of all Flask services (Search, Location, Offers, Recommendations, Videos) are failing with the following error:

Traceback (most recent call last):
  File "app.py", line 6, in <module>
    from aws_xray_sdk.ext.flask.middleware import XRayMiddleware
  File "/usr/local/lib/python3.8/site-packages/aws_xray_sdk/ext/flask/middleware.py", line 1, in <module>
    import flask.templating
  File "/usr/local/lib/python3.8/site-packages/flask/__init__.py", line 21, in <module>
    from .app import Flask, Request, Response
  File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 25, in <module>
    from . import cli, json
  File "/usr/local/lib/python3.8/site-packages/flask/json/__init__.py", line 21, in <module>
    from itsdangerous import json as _json
ImportError: cannot import name 'json' from 'itsdangerous' (/usr/local/lib/python3.8/site-packages/itsdangerous/__init__.py)

This is an occurrence of this Flask issue. The issue has been recognised by the Flask team.

Suggested fix:
Immediate: pin the following dependencies:

itsdangerous==1.1.0
markupsafe==1.1.1

Longer-term: upgrade Flask to a supported version, as 1.0.2 is no longer supported.

@BastLeblanc
Copy link
Contributor

thanks for the fix, PR is merged

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

No branches or pull requests

2 participants