-
-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: current() got an unexpected keyword argument 'head_only' #380
Comments
2.6.0 released with this fix. |
Just tested, thank you |
@miguelgrinberg Hey Miguel, just a heads up, but we just got burned by this in a bit of an unpleasant way. In |
@scuerda yes, the problem is that when the 2.5.2 release came out Alembic 1.5 did not exist yet, so I did not know that it was going to be incompatible and for that reason that release does not have a restriction on that alembic version. In general I assume that you will be installing Flask-Migrate in one of these two scenarios:
You seem to be trying to use a third case that I have not really intended to support, which is to install an old release in a new project. |
@miguelgrinberg Totally fair point. I wasn't intending to suggest that there was work to do on your part for this. I wanted to describe my situation to leave some bread crumbs for anyone else who might get bit by letting their dependencies drift a bit. |
Alembic just released a new version (1.5.0) with the following breaking change:
Removed deprecated --head_only option to the alembic current command
Due to that Flask-Migrate no longer works with the following error:
TypeError: current() got an unexpected keyword argument 'head_only'
As a temporary workaround I simply installed alembic < 1.5.0
The text was updated successfully, but these errors were encountered: