Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1002958: python3-flask-migrate missing: No module named 'flask_migrate'

231 views
Skip to first unread message

Akkana Peck

unread,
Jan 1, 2022, 2:10:03 PM1/1/22
to
Package: python3-flask-migrate
Version: python3-flask-sqlalchemy
Severity: normal
X-Debbugs-Cc: d...@shallowsky.com

Dear Maintainer,

The package python3-flask-migrate is missing in bookworm even though
it's there in sid and in packages before bookworm:
https://packages.debian.org/search?keywords=python3-flask-migrate&searchon=names&suite=all&section=all

This is a problem for anyone trying to use python3-flask-sqlalchemy
since most flask-sqlalchemy apps use migration (at least, all the
examples I've seen do, so I've followed that in my own apps).

Can python3-flask-migrate please be added back to bookworm? I know
it's possible to get it through pip install, but I prefer using Debian
packages when possible since they get security updates.

One easy way to see the problem is to use lesson 4 (or any later
lesson) of the Flask Mega Tutorial:

git clone https://github.com/miguelgrinberg/microblog.git
cd microblog/
git checkout tags/v0.4
export FLASK_APP=microblog.py
flask run

which produces output:

Error: While importing 'microblog', an ImportError was raised:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/flask/cli.py", line 256, in locate_app
__import__(module_name)
File "/home/akkana/outsrc/microblog/microblog.py", line 1, in <module>
from app import app, db
File "/home/akkana/outsrc/microblog/app/__init__.py", line 3, in <module>
from flask_migrate import Migrate
ModuleNotFoundError: No module named 'flask_migrate'


Thanks for considering this!


-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.15.0-2-amd64 (SMP w/8 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
0 new messages