ansible ec2_ansible_facts boto module issue

21 views
Skip to first unread message

Josephsimon Arokiaraj

unread,
May 4, 2021, 4:46:38 PM5/4/21
to ansible...@googlegroups.com
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 




Dick Visser

unread,
May 4, 2021, 11:30:52 PM5/4/21
to ansible...@googlegroups.com
On Tue, 4 May 2021 at 22:46, Josephsimon Arokiaraj <jos...@gmail.com> wrote:
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.



Cheers,
Joseph 




--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAPbGgO1n9fy55-q%3D6%3DgXrnVrBJ6ebj_U%3DuKQbdMdYLJbka2HiA%40mail.gmail.com.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.
Reply all
Reply to author
Forward
0 new messages