C2 W3 - Great Expectations.YML config is throwing Type Error- How to reload the original workbook

Programming Assignment: Assignment 3: Testing Data Quality with Great Expectations

  1. The .yml file may have got corr

  2. Add all required tags in the tag option (top-right of the post):

    • Deep Learning AI- Data Engineering - Course 2 - Week 3 Assignment- DQ

  3. How can I get back the original assignment

  4. Error: TypeError Traceback (most recent call last)
    File ~/miniconda/lib/python3.12/site-packages/great_expectations/data_context/util.py:90, in instantiate_class_from_config(config, runtime_environment, config_defaults)
    89 try:
    —> 90 class_instance = class_(**config_with_defaults)
    91 except TypeError as e:

    TypeError: TupleS3StoreBackend._init_() missing 1 required positional argument: ‘bucket’

    During handling of the above exception, another exception occurred:

It looks like your Great Expectations config file was corrupted — the error indicates that your S3-based TupleS3StoreBackend section is missing the required bucket field. When the YAML structure gets altered or fields shift indentation, GE can’t rebuild the DataContext and throws this exact error.

To get back the original assignment, the easiest and cleanest solution is to reset the lab so the original great_expectations.yml is restored. In the course platform, you can usually do this by selecting “Restart Lab / Reset Workspace” for that assignment. This recreates the default GE project structure exactly as provided.

If you’d prefer not to reset, you can also restore the file manually:

  • Open great_expectations.yml

  • Find every store_backend: section that uses TupleS3StoreBackend

  • Ensure it includes:

    bucket: <your-bucket-name>
    
    

    But since this is a course assignment, resetting the environment is less error-prone.

Once the lab is reset, rerun the notebook from the top — GE should initialize without any backend errors.

Let us know if the reset doesn’t bring back the original folder structure.