# What happend? Boto not found? sys is not defined?

**URL:** <https://forum.ansible.com/t/what-happend-boto-not-found-sys-is-not-defined/18421>\
**Category:** Ansible Project\
**Created:** [June 6, 2015, 3:12am UTC](https://forum.ansible.com/t/what-happend-boto-not-found-sys-is-not-defined/18421 "2015-06-06T03:12:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Barry\_Kaplan](https://avatars.discourse-cdn.com/v4/letter/b/48db29/32.png) [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Post date:** [June 6, 2015, 3:12am UTC](https://forum.ansible.com/t/what-happend-boto-not-found-sys-is-not-defined/18421/1 "2015-06-06T03:12:04Z")

</div>

I’ve been running these playbooks with ansible 1.9.1 and 1.9.2 for weeks now on this same workstations. Now all of the sudden I get the below error.

I have no idea what could have triggered this. Anybody seen this before?

`  
failed: [localhost] =\> {“failed”: true, “parsed”: false}

failed=True msg=‘boto required for this module’  
Traceback (most recent call last):  
File “/Users/bkaplan/.ansible/tmp/ansible-tmp-1433560234.51-65949177742337/ec2\_group”, line 114, in   
sys.exit(1)  
NameError: name ‘sys’ is not defined  
`

---

<div class="post-metadata">

**Author:** ![Barry\_Kaplan](https://avatars.discourse-cdn.com/v4/letter/b/48db29/32.png) [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Post date:** [June 6, 2015, 3:16am UTC](https://forum.ansible.com/t/what-happend-boto-not-found-sys-is-not-defined/18421/2 "2015-06-06T03:16:06Z")

</div>

So this is only on OSX. On linux the same project runs fine.

---

<div class="post-metadata">

**Author:** ![Barry\_Kaplan](https://avatars.discourse-cdn.com/v4/letter/b/48db29/32.png) [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Post date:** [June 6, 2015, 3:20am UTC](https://forum.ansible.com/t/what-happend-boto-not-found-sys-is-not-defined/18421/3 "2015-06-06T03:20:11Z")

</div>

I found this issue [https://github.com/ansible/ansible-modules-core/issues/994](https://github.com/ansible/ansible-modules-core/issues/994). And tried:

export PYTHONPATH=“/usr/local/lib/python2.7/site-packages”

This fixed the problem on osx. But I still can’t fathom what happened to cause this to be required.

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [June 6, 2015, 3:38am UTC](https://forum.ansible.com/t/what-happend-boto-not-found-sys-is-not-defined/18421/4 "2015-06-06T03:38:32Z")

</div>

did you install ansible via homebrew?

---

<div class="post-metadata">

**Author:** ![Barry\_Kaplan](https://avatars.discourse-cdn.com/v4/letter/b/48db29/32.png) [@Barry\_Kaplan](https://forum.ansible.com/u/Barry_Kaplan)\
**Post date:** [June 7, 2015, 4:16am UTC](https://forum.ansible.com/t/what-happend-boto-not-found-sys-is-not-defined/18421/5 "2015-06-07T04:16:27Z")

</div>

Hmm, I really don’t remember. I could have been via pip. But I’m guessing that I did whatever the install the instructions said because when I first installed ansible (and started using ansible) was just 4 or 5 weeks ago.

(And I must say, that in 4 or 5 weekends, I have completely rebuilt 2 years of chef work. Not only rebuilt, but everything is way way way way cleaner. No more chefdk, berks, uploads, chef server errors, complex resources-defs and impls, constant gem conflicts – I could rant for hours. And on top of that I now create all the resources that our systems run on: aws security groups, elb, ebs, route53, etc. So I can blow away and recreate entire sub-stacks at will. My life is has been improved tremendously by ansible.)
