Skip to content

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

Description

@Ezra0M

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

Activity

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

Metadata

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