-
-
Notifications
You must be signed in to change notification settings - Fork 235
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
Error when using write hooks in python < 3.9 #934
Comments
The issue can be solved by installing I wonder why the test did not catch it. I guess we need to add a covering case for this |
I'm on Python 3.8.8 with Any hint would be appreciated :-) |
Sorry, I was not clear, a change in the code is still needed, changing this condition to alembic/alembic/util/compat.py Lines 32 to 35 in d95e15c
will try to solve today so we can hopefully release a fix |
Federico Caselli has proposed a fix for this issue in the master branch: Fix write hook issue in python < 3.9. https://gerrit.sqlalchemy.org/c/sqlalchemy/alembic/+/3115 |
Bumps [alembic](https://alembic.sqlalchemy.org) from 1.7.1 to 1.7.4. --- updated-dependencies: - dependency-name: alembic dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Dustin Ingram <di@users.noreply.github.com>
Hi, I have an issue which boils down to the same point in alembic code, but I'm not using any development-only script, but
[post_write_hooks]
feature.Relevant part of alembic.ini:
The origin of the issue is of course the same,
alembic/script/write_hooks.py
seems to be working with python 3.9+ as discovered above:While
write_pyi.py
is an script for development use only, I guess that all post-write hooks deal with the same issue as well?Originally posted by @antoni-szych-rtbhouse in #915 (comment)
The text was updated successfully, but these errors were encountered: