# hashi\_vault lookup not recognizing hvac module

**URL:** <https://forum.ansible.com/t/hashi-vault-lookup-not-recognizing-hvac-module/25198>\
**Category:** Ansible Developer\
**Tags:** aws\
**Created:** [August 8, 2017, 2:23am UTC](https://forum.ansible.com/t/hashi-vault-lookup-not-recognizing-hvac-module/25198 "2017-08-08T02:23:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben.tennant](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@ben.tennant](https://forum.ansible.com/u/ben.tennant)\
**Post date:** [August 8, 2017, 2:23am UTC](https://forum.ansible.com/t/hashi-vault-lookup-not-recognizing-hvac-module/25198/1 "2017-08-08T02:23:11Z")

</div>

I’m having issues with the [hashi\_vault lookup plugin](https://github.com/ansible/ansible/blob/d64e2912745d44536e4a52c55e7c5248972b8a87/lib/ansible/plugins/lookup/hashi_vault.py).

I’ve verified that Python, pip, and hvac are all installed on both the remote host and the local host. However, whenever I try to run my app\_server.yml playbook, I receive a fatal error.

`fatal: [app_server01]: FAILED! => {"failed": true, "msg": "An unhandled exception occurred while running the lookup plugin 'hashi_vault'. Error was a <class 'ansible.errors.AnsibleError'>, original message: Please pip install hvac to use this module"}`

I’ve verified the installation by running python interactive cli and reading information from the vault server both locally and from the remote host.

`  
python

> > > import os  
> > > import hvac  
> > > client = hvac.Client(url=os.environ[‘VAULT\_ADDR’], token=os.environ[‘VAULT\_TOKEN’])  
> > > print(client.read(‘aws/creds/common\_get\_s3\_build’))

`

Running these commands result in expected JSON output.

app\_server.yml:

`
