# Add\_or\_update\_checkpoint() got an unexpected keyword argument 'validator'

**URL:** <https://discourse.greatexpectations.io/t/add-or-update-checkpoint-got-an-unexpected-keyword-argument-validator/1381>\
**Category:** GX Core Support\
**Tags:** help-wanted\
**Created:** [September 11, 2023, 6:22pm UTC](https://discourse.greatexpectations.io/t/add-or-update-checkpoint-got-an-unexpected-keyword-argument-validator/1381 "2023-09-11T18:22:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bn45780](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bn45780](https://discourse.greatexpectations.io/u/bn45780)\
**Post date:** [September 11, 2023, 6:22pm UTC](https://discourse.greatexpectations.io/t/add-or-update-checkpoint-got-an-unexpected-keyword-argument-validator/1381/1 "2023-09-11T18:22:30Z")

</div>

Hi, I was exploring great\_expectations and trying the sample code listed in the tutorial, however I am seeing this error:  
add\_or\_update\_checkpoint() got an unexpected keyword argument ‘validator’  
Any pointers to it?

import great\_expectations as gx  
context = gx.get\_context()  
validator = context.sources.pandas\_default.read\_csv(  
“[https://raw.githubusercontent.com/great-expectations/gx\_tutorials/main/data/yellow\_tripdata\_sample\_2019-01.csv](https://raw.githubusercontent.com/great-expectations/gx_tutorials/main/data/yellow_tripdata_sample_2019-01.csv)”  
)  
validator.expect\_column\_values\_to\_not\_be\_null(“pickup\_datetime”)  
validator.expect\_column\_values\_to\_be\_between(“passenger\_count”, auto=True)  
validator.save\_expectation\_suite()  
#checkpoint = context.add\_or\_update\_checkpoint(name=“my\_quickstart\_checkpoint”,validator=validator)  
checkpoint = context.add\_or\_update\_checkpoint(name=“my\_taxi\_validator\_checkpoint”, validations=validator)  
checkpoint\_result = checkpoint.run()

---

<div class="post-metadata">

**Author:** ![HaebichanGX](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.greatexpectations.io/haebichangx/32/211_2.png) [@HaebichanGX](https://discourse.greatexpectations.io/u/HaebichanGX)\
**Post date:** [September 11, 2023, 6:35pm UTC](https://discourse.greatexpectations.io/t/add-or-update-checkpoint-got-an-unexpected-keyword-argument-validator/1381/2 "2023-09-11T18:35:56Z")

</div>

Hi @bn45780 that same code is running fine on my end. Which GX version are you using? Also, what does your folder structure for GX look like?

---

<div class="post-metadata">

**Author:** ![bn45780](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bn45780](https://discourse.greatexpectations.io/u/bn45780)\
**Post date:** [September 11, 2023, 8:09pm UTC](https://discourse.greatexpectations.io/t/add-or-update-checkpoint-got-an-unexpected-keyword-argument-validator/1381/3 "2023-09-11T20:09:40Z")

</div>

It is 0.16.13. Do I need to update it to 0.17.15 ?

---

<div class="post-metadata">

**Author:** ![bn45780](https://avatars.discourse-cdn.com/v4/letter/b/f05b48/32.png) [@bn45780](https://discourse.greatexpectations.io/u/bn45780)\
**Post date:** [September 11, 2023, 8:20pm UTC](https://discourse.greatexpectations.io/t/add-or-update-checkpoint-got-an-unexpected-keyword-argument-validator/1381/4 "2023-09-11T20:20:48Z")

</div>

Here is the installation log, got few warnings, but it was installed.

dev-dsk-bishwa-2c-43922af7 % pip3 install great\_expectations  
Defaulting to user installation because normal site-packages is not writeable  
Collecting great\_expectations  
Obtaining dependency information for great\_expectations from [https://files.pythonhosted.org/packages/62/92/ffd54e99c84cccbf1cd3562726e6c2330e0c1fbf593678719ac3ea212c11/great\_expectations-0.16.13-py3-none-any.whl.metadata](https://files.pythonhosted.org/packages/62/92/ffd54e99c84cccbf1cd3562726e6c2330e0c1fbf593678719ac3ea212c11/great_expectations-0.16.13-py3-none-any.whl.metadata)  
Downloading great\_expectations-0.16.13-py3-none-any.whl.metadata (11 kB)

Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.  
WARNING: The script great\_expectations is installed in ‘/home/bishwa/.local/bin’ which is not on PATH.  
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.  
Successfully installed Click-8.1.7 Ipython-7.34.0 MarkupSafe-2.1.3 Send2Trash-1.8.2 altair-4.2.2 anyio-3.7.1 argon2-cffi-23.1.0 argon2-cffi-bindings-21.2.0 attrs-23.1.0 backcall-0.2.0 backports.zoneinfo-0.2.1 beautifulsoup4-4.12.2 bleach-6.0.0 certifi-2023.7.22 cffi-1.15.1 charset-normalizer-3.2.0 colorama-0.4.6 comm-0.1.4 cryptography-41.0.3 debugpy-1.7.0 decorator-5.1.1 defusedxml-0.7.1 entrypoints-0.4 exceptiongroup-1.1.3 fastjsonschema-2.18.0 great\_expectations-0.16.13 idna-3.4 importlib-metadata-6.7.0 importlib-resources-5.12.0 ipykernel-6.16.2 ipython-genutils-0.2.0 ipywidgets-8.1.0 jedi-0.19.0 jinja2-3.1.2 jsonpatch-1.33 jsonpointer-2.4 jsonschema-4.17.3 jupyter-client-7.4.9 jupyter-core-4.12.0 jupyter-server-1.24.0 jupyterlab-pygments-0.2.2 jupyterlab-widgets-3.0.8 makefun-1.15.1 marshmallow-3.19.0 matplotlib-inline-0.1.6 mistune-3.0.1 nbclassic-1.0.0 nbclient-0.7.4 nbconvert-7.6.0 nbformat-5.8.0 nest-asyncio-1.5.7 notebook-6.5.5 notebook-shim-0.2.3 numpy-1.21.6 packaging-23.1 pandas-1.3.5 pandocfilters-1.5.0 parso-0.8.3 pexpect-4.8.0 pickleshare-0.7.5 pkgutil-resolve-name-1.3.10 prometheus-client-0.17.1 prompt-toolkit-3.0.39 psutil-5.9.5 ptyprocess-0.7.0 pycparser-2.21 pydantic-1.10.12 pygments-2.16.1 pyparsing-3.1.1 pyrsistent-0.19.3 python-dateutil-2.8.2 pytz-2023.3.post1 pyzmq-24.0.1 requests-2.31.0 ruamel.yaml-0.17.17 ruamel.yaml.clib-0.2.7 scipy-1.7.3 six-1.16.0 sniffio-1.3.0 soupsieve-2.4.1 terminado-0.17.1 tinycss2-1.2.1 toolz-0.12.0 tornado-6.2 tqdm-4.66.1 traitlets-5.9.0 typing-extensions-4.7.1 tzlocal-5.0.1 urllib3-2.0.4 wcwidth-0.2.6 webencodings-0.5.1 websocket-client-1.6.1 widgetsnbextension-4.0.8 zipp-3.15.0

---

<div class="post-metadata">

**Author:** ![HaebichanGX](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.greatexpectations.io/haebichangx/32/211_2.png) [@HaebichanGX](https://discourse.greatexpectations.io/u/HaebichanGX)\
**Post date:** [September 13, 2023, 3:28pm UTC](https://discourse.greatexpectations.io/t/add-or-update-checkpoint-got-an-unexpected-keyword-argument-validator/1381/5 "2023-09-13T15:28:32Z")

</div>

> [@bn45780](#):
>
> 0.17.15

Need to update it to 0.17.15. Issue resolved on Slack  
 ![Screenshot 2023-09-13 at 11.28.23 AM](https://canada1.discourse-cdn.com/flex031/uploads/greatexpectations/original/1X/ddca6d89c8aff0691a506780a48c65b827e51ed2.png)
