Skip to content

demo-flask ImportError: cannot import name 'Markup' from 'jinja2'  #423

Open
@fredcy

Description

When I attempt to run the Flask demo it fails immediately:

ImportError: cannot import name 'Markup' from 'jinja2' (/home/example/test-saml/python3-saml/demo-flask/env/lib/python3.10/site-packages/jinja2/init.py)

I'm using Python 3.10.15 and the master branch of python3-saml. I have not touched any of the files like settings.json yet as I want to get a baseline first. Here are my steps:

cd demo-flask
python3 -m venv env
. env/bin/activate
pip install -r requirements.txt
python index.py

The ImportError happens immediately.

pip freeze shows that I'm getting these packages:

click==8.1.7
Flask==1.0
itsdangerous==2.2.0
Jinja2==3.1.4
MarkupSafe==3.0.2
Werkzeug==3.1.3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions