# ansible ec2\_ansible\_facts boto module issue

**URL:** <https://forum.ansible.com/t/ansible-ec2-ansible-facts-boto-module-issue/35113>\
**Category:** Ansible Project\
**Created:** [May 4, 2021, 8:46pm UTC](https://forum.ansible.com/t/ansible-ec2-ansible-facts-boto-module-issue/35113 "2021-05-04T20:46:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josephsimon\_Arokiara](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@Josephsimon\_Arokiara](https://forum.ansible.com/u/Josephsimon_Arokiara)\
**Post date:** [May 4, 2021, 8:46pm UTC](https://forum.ansible.com/t/ansible-ec2-ansible-facts-boto-module-issue/35113/1 "2021-05-04T20:46:13Z")

</div>

Hi All,

We are using older ansible version 2.2.1.0 in a virtual environment hosted on Amazon linux. Tried to run the ec2.py dynamic inventory script and it failed with the below errors:

Error: boto required for this module

I can see boto lib installed on the virtualenv

pip list boto | grep boto

boto 2.48.0  
boto3 1.14.21  
botocore 1.17.21

Ansible --version  
ansible 2.2.1.0

python --version  
Python 2.7.18

which python -----\> points to the correct instance in the virtualenv

~/virtualenv/ansible-2.2.1.0\_venv/bin/python

Any ideas on the boto module issue?

Cheers,  
Joseph

---

<div class="post-metadata">

**Author:** ![Dick\_Visser](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@Dick\_Visser](https://forum.ansible.com/u/Dick_Visser)\
**Post date:** [May 5, 2021, 3:30am UTC](https://forum.ansible.com/t/ansible-ec2-ansible-facts-boto-module-issue/35113/2 "2021-05-05T03:30:24Z")

</div>

> Hi All,
> 
> We are using older ansible version 2.2.1.0 in a virtual environment hosted on Amazon linux. Tried to run the ec2.py dynamic inventory script and it failed with the below errors:
> 
> Error: boto required for this module
> 
> I can see boto lib installed on the virtualenv
> 
> pip list boto | grep boto
> 
> boto 2.48.0  
> boto3 1.14.21  
> botocore 1.17.21
> 
> Ansible --version  
> ansible 2.2.1.0

This should give you much more information, including the used python version and its path, and the ansible path.

> python --version  
> Python 2.7.18
> 
> which python -----\> points to the correct instance in the virtualenv
> 
> ~/virtualenv/ansible-2.2.1.0\_venv/bin/python
> 
> Any ideas on the boto module issue?

Did you activate the virtualenv?  
Just typing ansible or python in a shell will get you whatever is in your path. Which is usually a system python or ansible.
