Skip to content

Flask recipe doesn't work anymore #3093

Open
@HugoPu

Description

@HugoPu

Werkzerug is upgraded to 3.X, so flask 2.0.3 will use werkzerug 3.X by default, which will raise the following error:
ImportError: cannot import name 'url_quote' from 'werkzeug.urls'
To solve the problem, flask recipe requirements should be updated like this:
pythonforandroid/recipes/flask/__init__.py
python_depends = ['jinja2', 'werkzeug==2.2.2', 'markupsafe', 'itsdangerous', 'click']
or flask recipe shoud be updated to 3.X.
More details:
https://stackoverflow.com/questions/77213053/why-did-flask-start-failing-with-importerror-cannot-import-name-url-quote-fr

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions