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

ImportError: cannot import name 'Markup' from 'flask' #3

Open
Ezra0M opened this issue Nov 28, 2024 · 0 comments
Open

ImportError: cannot import name 'Markup' from 'flask' #3

Ezra0M opened this issue Nov 28, 2024 · 0 comments

Comments

@Ezra0M
Copy link

Ezra0M commented Nov 28, 2024

Kindly change the import code below in the init.py from:
from flask import current_app, request, Blueprint, url_for, Markup

to:
from flask import current_app, request, Blueprint, url_for,
from markupsafe import Markup

This will solve the ImportError been experienced when running flask 3.0.0 and above

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

1 participant