Linked Questions

Popular Questions

ImportError from Great Expectations

Asked by At

I've been using Great Expecations for a while and recently when I rebuilt a docker image I started to get this error. The image builds fine, but when I try to run code and import the package this error appears.

    import great_expectations as ge
  File "/opt/conda/envs/my_env/lib/python3.8/site-packages/great_expectations/__init__.py", line 6, in <module>
    from great_expectations.data_context.migrator.cloud_migrator import CloudMigrator
  File "/opt/conda/envs/my_env/lib/python3.8/site-packages/great_expectations/data_context/__init__.py", line 1, in <module>
    from great_expectations.data_context.data_context import (
  File "/opt/conda/envs/my_env/lib/python3.8/site-packages/great_expectations/data_context/data_context/__init__.py", line 1, in <module>
    from great_expectations.data_context.data_context.abstract_data_context import (
  File "/opt/conda/envs/my_env/lib/python3.8/site-packages/great_expectations/data_context/data_context/abstract_data_context.py", line 38, in <module>
    from great_expectations.core import ExpectationSuite
  File "/opt/conda/envs/my_env/lib/python3.8/site-packages/great_expectations/core/__init__.py", line 3, in <module>
    from .domain import Domain
  File "/opt/conda/envs/my_env/lib/python3.8/site-packages/great_expectations/core/domain.py", line 8, in <module>
    from great_expectations.core.id_dict import IDDict
  File "/opt/conda/envs/my_env/lib/python3.8/site-packages/great_expectations/core/id_dict.py", line 5, in <module>
    from great_expectations.core.util import convert_to_json_serializable
  File "/opt/conda/envs/my_env/lib/python3.8/site-packages/great_expectations/core/util.py", line 34, in <module>
    from IPython import get_ipython
  File "/opt/conda/envs/my_env/lib/python3.8/site-packages/IPython/__init__.py", line 30, in <module>
    raise ImportError(

Does anyone know how to resolve this error? I tried bumping the revision of Great Expectations to the latest, but the error persists.

Related Questions