helloflask / helloflask/flask-share

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

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
29
Forks
26
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.