# Cannot get Ansible 1.3.1 to work

**URL:** <https://forum.ansible.com/t/cannot-get-ansible-1-3-1-to-work/13565>\
**Category:** Ansible Project\
**Created:** [September 27, 2013, 3:12am UTC](https://forum.ansible.com/t/cannot-get-ansible-1-3-1-to-work/13565 "2013-09-27T03:12:03Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![celine](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@celine](https://forum.ansible.com/u/celine)\
**Post date:** [September 27, 2013, 3:12am UTC](https://forum.ansible.com/t/cannot-get-ansible-1-3-1-to-work/13565/1 "2013-09-27T03:12:03Z")

</div>

Hi, I have successfully upgraded from 1.2 to 1.3.1. I did this for another computer but it fails. Previously, it can run Ansible 1.2.

This is the error that I got after upgrading to 1.3.1:  
Traceback (most recent call last):  
File “/usr/local/bin/ansible-playbook”, line 268, in   
sys.exit(main(sys.argv[1:]))  
File “/usr/local/bin/ansible-playbook”, line 158, in main  
diff=options.diff  
File “/usr/local/lib64/python2.6/site-packages/ansible/playbook/ **init**.py”, line 144, in **init**  
if self.inventory.src() is not None:  
AttributeError: ‘Inventory’ object has no attribute ‘src’

Can you help me with this? Thank you.

---

<div class="post-metadata">

**Author:** ![James\_Cammarata1](https://avatars.discourse-cdn.com/v4/letter/j/d26b3c/32.png) [@James\_Cammarata1](https://forum.ansible.com/u/James_Cammarata1)\
**Post date:** [September 27, 2013, 3:28am UTC](https://forum.ansible.com/t/cannot-get-ansible-1-3-1-to-work/13565/2 "2013-09-27T03:28:02Z")

</div>

How did you install ansible and what is your operating system?

---

<div class="post-metadata">

**Author:** ![celine](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@celine](https://forum.ansible.com/u/celine)\
**Post date:** [September 27, 2013, 5:30am UTC](https://forum.ansible.com/t/cannot-get-ansible-1-3-1-to-work/13565/3 "2013-09-27T05:30:56Z")

</div>

Hi,

I downloaded the tar version ansible-1.3.1.tar.gz. i installed in using “sudo python setup.py install”

I am running Suse Linux Enterprise Server 11 SP1 (x86x64)  
Linux version 2.6.32.12-0.7-default ([geeko@buildhost](mailto:geeko@buildhost)) (gcc version 4.3.4 [gcc-4\_3-branch revision 152973] (Suse Linux) ) #1 SMP

---

<div class="post-metadata">

**Author:** ![celine](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@celine](https://forum.ansible.com/u/celine)\
**Post date:** [September 27, 2013, 7:16am UTC](https://forum.ansible.com/t/cannot-get-ansible-1-3-1-to-work/13565/4 "2013-09-27T07:16:09Z")

</div>

When i run “sudo python setup.py install”, the first line has this warning:  
/usr/lib64/python2.6/distutils/dist.py:266: UserWarning: Unknown distribution option: ‘install\_requires’ warning.warn(msg)

The installation proceeds normally after this warning.

I have already installed distribute-0.6.45 on my machine.

Can this warning be the cause?

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [September 27, 2013, 2:34pm UTC](https://forum.ansible.com/t/cannot-get-ansible-1-3-1-to-work/13565/5 "2013-09-27T14:34:06Z")

</div>

Sounds like you have your install environment polluted with some code from previous versions.

distribute has no bearing here, we don’t use it, we’re using the standard setuptools.

It may be an issue with your version of Python.

---

<div class="post-metadata">

**Author:** ![celine](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@celine](https://forum.ansible.com/u/celine)\
**Post date:** [September 30, 2013, 2:00am UTC](https://forum.ansible.com/t/cannot-get-ansible-1-3-1-to-work/13565/6 "2013-09-30T02:00:18Z")

</div>

Hi Michael,

May I ask how do I wipe out environment from previous installs so that I can start from scratch?

---

<div class="post-metadata">

**Author:** ![James\_Cammarata1](https://avatars.discourse-cdn.com/v4/letter/j/d26b3c/32.png) [@James\_Cammarata1](https://forum.ansible.com/u/James_Cammarata1)\
**Post date:** [September 30, 2013, 2:09am UTC](https://forum.ansible.com/t/cannot-get-ansible-1-3-1-to-work/13565/7 "2013-09-30T02:09:00Z")

</div>

You should have a site-packages (or maybe dist-packages?) directory in your python library directory, which should contain the ansible directory. Remove that directory and all of its contents and re-install.

---

<div class="post-metadata">

**Author:** ![celine](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@celine](https://forum.ansible.com/u/celine)\
**Post date:** [September 30, 2013, 2:54am UTC](https://forum.ansible.com/t/cannot-get-ansible-1-3-1-to-work/13565/8 "2013-09-30T02:54:04Z")

</div>

Thanks James, it’s working well now 🙂

---

<div class="post-metadata">

**Author:** ![celine](https://avatars.discourse-cdn.com/v4/letter/c/13edae/32.png) [@celine](https://forum.ansible.com/u/celine)\
**Post date:** [September 30, 2013, 2:57am UTC](https://forum.ansible.com/t/cannot-get-ansible-1-3-1-to-work/13565/9 "2013-09-30T02:57:17Z")

</div>

Thanks Michael for the useful hint 🙂
