Skip to content
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

fix: call op.get_bind() inside the function, not on import #17731

Closed
wants to merge 2 commits into from

Conversation

bkyryliuk
Copy link
Member

SUMMARY

fix: call op.get_bind() inside the function, not on import
Error log:

s/abe27eaf93db_add_extra_config_column_to_alerts.py", line 34, in <module>
    connection = op.get_bind()
  File "<string>", line 7, in get_bind
  File "/srv/yaps/mounts/superset/superset_build/bcf71bd610347f780fa22f8365c6a015a70248e5-a38d46655a6ec6c4745dd039486ca598/dropbox/apx/superset/superset_cli.runfiles/__main__/thirdparty/superset_python3/pip/alembic/alembic-cpython-38/lib/alembic/util/langhelpers.py", line 78, in _name_error
    raise NameError(
NameError: Can't invoke function 'get_bind', as the proxy object has not yet been established for the Alembic 'Operations' class.  Try placing this code inside a callable.

@bkyryliuk bkyryliuk requested a review from a team as a code owner December 13, 2021 18:41
@betodealmeida
Copy link
Member

#17728

That MySQL test is broken for some reason. :-/

@betodealmeida
Copy link
Member

Closing since I merged #17728.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants