calm-airplane-47634
12/10/2021, 9:05 PM215 if not sqlalchemy:
--> 216 raise DatasourceInitializationError(
217 name, "ModuleNotFoundError: No module named 'sqlalchemy'"
..................................................
self = <great_expectations.datasource.sqlalchemy_datasource.SqlAlchemyDatasource object at 0x13624d2b0>
name = 'my_sqlalchemy_datasource-bfb77e2d-9b3d-4e9b-a714-4675fa7c6f08'
data_context = None
data_asset_type = {'module_name': 'great_expectations.dataset',
'class_name': 'SqlAlchemyDataset'}
credentials = {'url': <postgresql+psycopg2://username>:***@localhost:5432/databasename}
batch_kwargs_generators = None
kwargs = {'engine': <sqlalchemy.engine.base.Connection object at 0x13620c400>}
sqlalchemy = None
DatasourceInitializationError = <class 'great_expectations.exceptions.exceptions.DatasourceInitializationError'>
..................................................
---- (full traceback above) ----
File "/Users/ankur.chauhan/.pyenv/versions/3.9.5/lib/python3.9/site-packages/great_expectations/data_context/data_context.py", line 1869, in _instantiate_datasource_from_config
] = self._build_datasource_from_config(name=name, config=config)
File "/Users/ankur.chauhan/.pyenv/versions/3.9.5/lib/python3.9/site-packages/great_expectations/data_context/data_context.py", line 1935, in _build_datasource_from_config
datasource = instantiate_class_from_config(
File "/Users/ankur.chauhan/.pyenv/versions/3.9.5/lib/python3.9/site-packages/great_expectations/data_context/util.py", line 121, in instantiate_class_from_config
class_instance = class_(**config_with_defaults)
File "/Users/ankur.chauhan/.pyenv/versions/3.9.5/lib/python3.9/site-packages/datahub/ingestion/source/ge_data_profiler.py", line 64, in sqlalchemy_datasource_init
underlying_datasource_init(self, *args, **kwargs, engine=conn)
File "/Users/ankur.chauhan/.pyenv/versions/3.9.5/lib/python3.9/site-packages/great_expectations/datasource/sqlalchemy_datasource.py", line 216, in __init__
raise DatasourceInitializationError(
DatasourceInitializationError: Cannot initialize datasource my_sqlalchemy_datasource-bfb77e2d-9b3d-4e9b-a714-4675fa7c6f08, error: ModuleNotFoundError: No module named 'sqlalchemy'incalculable-ocean-74010
12/10/2021, 9:08 PMincalculable-ocean-74010
12/10/2021, 9:08 PMcalm-airplane-47634
12/10/2021, 9:09 PMcalm-airplane-47634
12/10/2021, 9:09 PMdatahub ingest -c <….>incalculable-ocean-74010
12/10/2021, 9:11 PMincalculable-ocean-74010
12/10/2021, 9:12 PM$ pip list | grep SQLAlchemy
Should return the version of the lib if it's installed.calm-airplane-47634
12/10/2021, 9:25 PM$ pip list | grep SQLAlchemy
Flask-SQLAlchemy 2.5.1
SQLAlchemy 1.3.24calm-airplane-47634
12/10/2021, 9:25 PMincalculable-ocean-74010
12/10/2021, 9:28 PMincalculable-ocean-74010
12/10/2021, 9:29 PMincalculable-ocean-74010
12/10/2021, 9:29 PMpip install 'acryl-datahub[postgres]'calm-airplane-47634
12/10/2021, 9:37 PMgray-shoe-75895
12/10/2021, 9:49 PMpip install --upgrade 'acryl-datahub[postgres]' great-expectations it should do the trickcalm-airplane-47634
12/10/2021, 10:18 PM