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

BUG with dependency: SQLAlchemy 1.4.0 for user installation #2599

Closed
lukedyer-peak opened this issue Mar 25, 2021 · 0 comments · Fixed by #2600
Closed

BUG with dependency: SQLAlchemy 1.4.0 for user installation #2599

lukedyer-peak opened this issue Mar 25, 2021 · 0 comments · Fixed by #2600

Comments

@lukedyer-peak
Copy link
Contributor

Describe the bug

SQLAlchemy >= 1.4.0 breaks the imports in

This isn't showing up in the tests since the tests pin the version from above whereas the user installation doesn't

"sqlalchemy": ["sqlalchemy>=1.2"],

The stack trace is from trying to scaffold a new suite is:

...
  File ".../great_expectations/data_context/data_context.py", line 1421, in get_batch
    return self._get_batch_v2(
  File ".../great_expectations/data_context/data_context.py", line 1147, in _get_batch_v2
    return validator.get_dataset()
  File ".../great_expectations/validator/validator.py", line 1431, in get_dataset
    return self.expectation_engine(
  File ".../great_expectations/dataset/sqlalchemy_dataset.py", line 508, in __init__
    self._table = sa.Table(table_name, sa.MetaData(), schema=schema)
AttributeError: 'NoneType' object has no attribute 'Table'

As a work around until the code is upgraded to work with 1.4.0 the version installed should be <1.4.0.

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

Successfully merging a pull request may close this issue.

1 participant