Issue with GreatExpectation Lab

Hi there is an issue with firt part of the Lab regarding “GreatExpectations”.

I have this error message below after running the command “great_expectations store list”

(jupyterlab-venv) voclabs:~/environment $ great_expectations store list
Traceback (most recent call last):
File “/home/ec2-user/environment/jupyterlab-venv/lib64/python3.9/site-packages/great_expectations/data_context/util.py”, line 98, in instantiate_class_from_config
class_instance = class_(**config_with_defaults)
TypeError: init() got an unexpected keyword argument ‘bucket’

Hi @euloge - Thank you for your question. There might be a syntax error in the configuration file: great_expectations.yml. In steps 1.3 and 1.4, when you copied the provided configurations to great_expectations.yml, did you pay attention to the indentation? The YAML file is indentation-sensitive. So that might be a possible reason for the error you got. If not, then you could share the yml file with me. I’m happy to look at it.

Hi @hawraa.salami ,

The file configuration was okay; that was the first thing I tried to check. Unfortunately, the lab is available only for 02 hours. If I have the same error, I will start a new lab and update the configuration file.

When you try again the lab, also make sure to copy and paste the entire block given to you in the instruction for each store.

Here are some related posts (1, 2) from other learners who had the same issue.

Please let us know if you still have the same issue.

Hello,

Here is my great_expectation yaml file which is failing.
great_expectations.zip (1.7 KB)

Thank you @euloge for sharing your file. The indentation in the file looks good. However some of the entries in each block need to be adjusted according to the instructions.

So for example, for expectation_store under store_backend:

  • class_name: TupleFilesystemStoreBackend (in your file) —> class_name: TupleS3StoreBackend (what it should be according to the instructions)
  • base_directory: expectations/ (in your file) —> prefix: expectations/ (what it should be according to the instructions)

Same remark for validations_store and checkpoint_store.

And finally for S3_Site, make sure the the block is exactly as:

Hope that helps! Please let me know if you still have issues with this file.

Hi @hawraa.salami Let me try that and I will let you know.

Thank You @hawraa.salami it works. :+1:

1 Like

Same here. THANKS!

1 Like