Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

update flask#5

Merged
johnmcollier merged 1 commit into
devfile-samples:maindevfile-samples/devfile-sample-python-basic:mainfrom
jduimovich:update-flaskCopy head branch name to clipboard
Apr 1, 2022
Merged

update flask#5
johnmcollier merged 1 commit into
devfile-samples:maindevfile-samples/devfile-sample-python-basic:mainfrom
jduimovich:update-flaskCopy head branch name to clipboard

Conversation

@jduimovich

Copy link
Copy Markdown
Contributor

A component used in Flask 1.1.2 has been deprecated.

This results in this error when you run the container
cannot import name 'escape' from 'jinja2' (/usr/local/lib/python3.10/site-packages/jinja2/__init__.py)

Upgrading the Flask version to 2.0 fixes the error

How to test

docker build -f docker/Dockerfile  -t test .
docker run -p 8081:8081 test

before the patch you get the error, after the patch it works.

fixes deprecated error on jinja2
@johnmcollier johnmcollier merged commit dcd255b into devfile-samples:main Apr 1, 2022
cuipinghuo referenced this pull request in rhtap-installer/devfile-sample-python-basic Apr 16, 2025
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

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.