# jmespath error

**URL:** <https://forum.ansible.com/t/jmespath-error/34675>\
**Category:** Ansible Project\
**Created:** [February 24, 2021, 6:55am UTC](https://forum.ansible.com/t/jmespath-error/34675 "2021-02-24T06:55:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sakshi\_Rathore](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Sakshi\_Rathore](https://forum.ansible.com/u/Sakshi_Rathore)\
**Post date:** [February 24, 2021, 6:55am UTC](https://forum.ansible.com/t/jmespath-error/34675/1 "2021-02-24T06:55:39Z")

</div>

Hi,

could someone please advise.  
after running ansible playbook through jenkins i am getting below error:

TASK [prep\_ccp\_inventory : master ip list from json content] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\* fatal: [playground.tank.local]: FAILED! =\> {“msg”: “You need to install "jmespath" prior to running json\_query filter”}

jmespath is already insallted on jenkins server but i am still getting this error.

---

<div class="post-metadata">

**Author:** ![Akasurde](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/akasurde/32/230_2.png) [@Akasurde](https://forum.ansible.com/u/Akasurde)\
**Post date:** [February 24, 2021, 7:46am UTC](https://forum.ansible.com/t/jmespath-error/34675/2 "2021-02-24T07:46:21Z")

</div>

Hi Sakshi,

Check if jmespath is installed in the same location as Ansible Python location.

---

<div class="post-metadata">

**Author:** ![Sakshi\_Rathore](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Sakshi\_Rathore](https://forum.ansible.com/u/Sakshi_Rathore)\
**Post date:** [February 24, 2021, 7:48am UTC](https://forum.ansible.com/t/jmespath-error/34675/3 "2021-02-24T07:48:26Z")

</div>

Jmespath and ansible is installed using docker image in kubernetes plugin so i believe it is on the same path.

---

<div class="post-metadata">

**Author:** ![Akasurde](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/akasurde/32/230_2.png) [@Akasurde](https://forum.ansible.com/u/Akasurde)\
**Post date:** [February 24, 2021, 7:51am UTC](https://forum.ansible.com/t/jmespath-error/34675/4 "2021-02-24T07:51:35Z")

</div>

Was it working before?

You need to install "jmespath" prior to running json\_query filter \<=== denotes that Ansible is unable to import the jmespath

---

<div class="post-metadata">

**Author:** ![Sakshi\_Rathore](https://avatars.discourse-cdn.com/v4/letter/s/8797f3/32.png) [@Sakshi\_Rathore](https://forum.ansible.com/u/Sakshi_Rathore)\
**Post date:** [February 24, 2021, 8:41am UTC](https://forum.ansible.com/t/jmespath-error/34675/5 "2021-02-24T08:41:55Z")

</div>

it is working on linux machine but it is not working on jenkins server . i am using below docker file to run ansible on jenkins server.

 ![image.png](https://us1.discourse-cdn.com/ansible/original/2X/a/a0bdbbd882de507b73fca9f43f2f8b9f77a1394b.png)
