I’m trying to run a checkpoint in a Python environment from a parent directory which contains a great expectations initialized suite (ie:
parent_dir/great_expectations ). Even though I run
os.chdir(./great_expectations) , I get an error when I am in the parent directory:
AttributeError: module 'great_expectations' has no attribute 'data_context' while trying to initialize a context like so:
context = ge.data_context.DataContext(parent_dir/great_expectations) . I only get this error when trying to run the checkpoint in a Python environment when I am located in
parent_dir , and do not get the error when I am in
parent_dir/great_expectations. Anyone experience this before? Is there any way I can run checkpoints starting from a parent directory?
My use case: I have a folder of dags which Airflow uses as the base directory. Within that folder there’s a great expectations suite. I’d like to run GE as part of a dag, which inherently uses the parent dags folder.