Skip to content

flask-script only works with ancient flask #57

@miiichael

Description

@miiichael

Expected behaviour

A working Flask example, to help noobs like me...

Actual behaviour

ModuleNotFoundError: No module named 'flask._compat'

What are the steps to reproduce this issue?

git clone https://github.com/python-social-auth/social-examples
cd social-examples/example-flask
python3 manage.py

Any logs, error output, etc?

Traceback (most recent call last):
  File "/mnt/home/michael/docs/dev/social-examples/example-flask/manage.py", line 3, in <module>
    from flask_script import Manager, Server, Shell
  File "/home/michael/.local/lib/python3.11/site-packages/flask_script/__init__.py", line 15, in <module>
    from flask._compat import text_type
ModuleNotFoundError: No module named 'flask._compat'

Any other comments?

Expand the issue with any details you find appropriate to solve or reproduce it.

I have these installed.

Flask                            2.2.2
Flask-Breadcrumbs                0.5.1
Flask-Login                      0.6.2
flask-menu                       1.0.1
Flask-Migrate                    4.0.4
Flask-Script                     2.0.6
Flask-SQLAlchemy                 3.0.3
social-auth-app-flask            1.0.0
social-auth-app-flask-sqlalchemy 1.0.1
social-auth-core                 4.5.3
social-auth-storage-sqlalchemy   1.1.0

Also note the warning at the top of https://flask-script.readthedocs.io/en/latest/:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions