# Setting Up Dev Box

**URL:** <https://forum.ansible.com/t/setting-up-dev-box/20941>\
**Category:** Ansible Developer\
**Created:** [March 21, 2016, 11:29am UTC](https://forum.ansible.com/t/setting-up-dev-box/20941 "2016-03-21T11:29:32Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajat.gupta712](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/rajat.gupta712/32/4499_2.png) [@rajat.gupta712](https://forum.ansible.com/u/rajat.gupta712)\
**Post date:** [March 21, 2016, 11:29am UTC](https://forum.ansible.com/t/setting-up-dev-box/20941/1 "2016-03-21T11:29:32Z")

</div>

Hi All,

I am trying to setup my DevBox for contribution. The steps I followed are:

- Clone Ansible Core Repo
- Install all dependencies like Nose, Yaml etc
- Run the test by **make tests**

I am getting errors on my test. Can anyone help me to setup my DevBox. I am using python 3.5. Shall I go back to Python 2.7?

Thanks for your support.

---

<div class="post-metadata">

**Author:** ![rajat.gupta712](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/rajat.gupta712/32/4499_2.png) [@rajat.gupta712](https://forum.ansible.com/u/rajat.gupta712)\
**Post date:** [March 21, 2016, 11:30am UTC](https://forum.ansible.com/t/setting-up-dev-box/20941/2 "2016-03-21T11:30:43Z")

</div>

I am attaching screenshot of the failed tests.

> **(attachments)**
>
> ![Screen Shot 2016-03-21 at 4.56.58 PM.png](https://us1.discourse-cdn.com/ansible/original/2X/7/7960f6ff70164021e3f1e215f856d6a14fdeaf2a.png)

---

<div class="post-metadata">

**Author:** ![James\_Cammarata](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Post date:** [March 21, 2016, 1:20pm UTC](https://forum.ansible.com/t/setting-up-dev-box/20941/3 "2016-03-21T13:20:39Z")

</div>

Well in at least one error in the above, it looks like you did not initialize the git submodules. That may be causing other errors you’re seeing.

---

<div class="post-metadata">

**Author:** ![rajat.gupta712](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/rajat.gupta712/32/4499_2.png) [@rajat.gupta712](https://forum.ansible.com/u/rajat.gupta712)\
**Post date:** [March 21, 2016, 1:30pm UTC](https://forum.ansible.com/t/setting-up-dev-box/20941/4 "2016-03-21T13:30:14Z")

</div>

I initialised the git submodules. Here are new errors.

> **(attachments)**
>
> ![Screen Shot 2016-03-21 at 6.59.14 PM.jpg](https://us1.discourse-cdn.com/ansible/original/2X/9/98cb0013d70ba395b378f77e23f52b511090ca7f.jpeg)

---

<div class="post-metadata">

**Author:** ![James\_Cammarata](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Post date:** [March 21, 2016, 1:36pm UTC](https://forum.ansible.com/t/setting-up-dev-box/20941/5 "2016-03-21T13:36:54Z")

</div>

Did you also source the `hacking/env-setup` script?

---

<div class="post-metadata">

**Author:** ![rajat.gupta712](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/rajat.gupta712/32/4499_2.png) [@rajat.gupta712](https://forum.ansible.com/u/rajat.gupta712)\
**Post date:** [March 21, 2016, 1:51pm UTC](https://forum.ansible.com/t/setting-up-dev-box/20941/6 "2016-03-21T13:51:33Z")

</div>

yes. I ran the script.

---

<div class="post-metadata">

**Author:** ![rajat.gupta712](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/rajat.gupta712/32/4499_2.png) [@rajat.gupta712](https://forum.ansible.com/u/rajat.gupta712)\
**Post date:** [March 22, 2016, 9:09am UTC](https://forum.ansible.com/t/setting-up-dev-box/20941/7 "2016-03-22T09:09:19Z")

</div>

As a overall process I did these steps:

- Forked and cloned the repo
- Download requirements like **Pyyaml** etc
- Ran git submodule update --init --recursive in the root of the project
- Ran **hacking/env-setup** in the root of the repo
- Ran tests by **nosetests, make tests** but all are failing with same reason unable to finf foo role etc ( attached screenshot in previous thread).

What else should I do? Please help me to set up my box.

---

<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:** [March 22, 2016, 7:10pm UTC](https://forum.ansible.com/t/setting-up-dev-box/20941/8 "2016-03-22T19:10:19Z")

</div>

​you are missing steps, read test/README.md​

---

<div class="post-metadata">

**Author:** ![rajat.gupta712](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/rajat.gupta712/32/4499_2.png) [@rajat.gupta712](https://forum.ansible.com/u/rajat.gupta712)\
**Post date:** [March 25, 2016, 11:36am UTC](https://forum.ansible.com/t/setting-up-dev-box/20941/9 "2016-03-25T11:36:50Z")

</div>

I am still getting this error.

> **(attachments)**
>
> ![Screen Shot 2016-03-25 at 5.03.25 PM.jpg](https://us1.discourse-cdn.com/ansible/original/2X/f/f6aeb4c3538416073a3720fa4badcbcc694c0090.jpeg)  
> ![Screen Shot 2016-03-25 at 5.03.32 PM.jpg](https://us1.discourse-cdn.com/ansible/original/2X/f/fe11a84462a9e3ad64b0c18fa0b53d782c6fb70b.jpeg)

---

<div class="post-metadata">

**Author:** ![rajat.gupta712](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/rajat.gupta712/32/4499_2.png) [@rajat.gupta712](https://forum.ansible.com/u/rajat.gupta712)\
**Post date:** [March 25, 2016, 11:37am UTC](https://forum.ansible.com/t/setting-up-dev-box/20941/10 "2016-03-25T11:37:36Z")

</div>

Here is some more logs.

> **(attachments)**
>
> ![Screen Shot 2016-03-25 at 5.03.38 PM.jpg](https://us1.discourse-cdn.com/ansible/original/2X/3/32585378e660a58d711ed12dd2ba98166d64b012.jpeg)  
> ![Screen Shot 2016-03-25 at 5.03.42 PM.jpg](https://us1.discourse-cdn.com/ansible/original/2X/2/223745958c5c3eaab09d30686eeb8c2a53eed3b5.jpeg)
