Skip to content

cannot import name 'escape' from 'jinja2' #32

@olicc16

Description

@olicc16

I tried to build this demo from Mac computer with macOS Catalina Version 10.15.7, and it failed. The message says:

Starting demo_app_1 ... done
Attaching to demo_app_1
app_1 | Traceback (most recent call last):
app_1 | File "app.py", line 12, in
app_1 | from flask import Flask, render_template, jsonify, request
app_1 | File "/usr/local/lib/python3.7/site-packages/flask/init.py", line 14, in
app_1 | from jinja2 import escape
app_1 | ImportError: cannot import name 'escape' from 'jinja2' (/usr/local/lib/python3.7/site-packages/jinja2/init.py)
demo_app_1 exited with code 1

Is it caused by OS or some package dependencies? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions