# Building Module - Unable to set correct type for DEFAULT\_LOCAL\_TMP

**URL:** <https://forum.ansible.com/t/building-module-unable-to-set-correct-type-for-default-local-tmp/25091>\
**Category:** Ansible Project\
**Created:** [July 26, 2017, 12:28pm UTC](https://forum.ansible.com/t/building-module-unable-to-set-correct-type-for-default-local-tmp/25091 "2017-07-26T12:28:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luvpreet\_Singh](https://avatars.discourse-cdn.com/v4/letter/l/a5b964/32.png) [@Luvpreet\_Singh](https://forum.ansible.com/u/Luvpreet_Singh)\
**Post date:** [July 26, 2017, 12:28pm UTC](https://forum.ansible.com/t/building-module-unable-to-set-correct-type-for-default-local-tmp/25091/1 "2017-07-26T12:28:38Z")

</div>

I have just started to learn on how to build modules in Ansible.

I have followed this page, [http://docs.ansible.com/ansible/latest/dev\_guide/developing\_modules\_general.html](http://docs.ansible.com/ansible/latest/dev_guide/developing_modules_general.html)

I created the python file, cloned the ansible repo told there, and ran the command,

```auto
ansible/hacking/test-module -m ./timetest.py

But I am getting something like this, 

Unable to set correct type for DEFAULT_LOCAL_TMP, skipping* including generated source, if any, saving to: /home/luvpreet/.ansible_module_generated
***********************************
RAW OUTPUT
{"time": "2017-07-26 17:55:17.854018"}

***********************************
PARSED OUTPUT
{
    "time": "2017-07-26 17:55:17.854018"
}
Traceback (most recent call last):
  File "ansible/hacking/test-module", line 271, in <module>
    shutil.rmtree(C.DEFAULT_LOCAL_TMP, True)
AttributeError: 'module' object has no attribute 'DEFAULT_LOCAL_TMP'

What is the issue here ?

```

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [July 26, 2017, 2:19pm UTC](https://forum.ansible.com/t/building-module-unable-to-set-correct-type-for-default-local-tmp/25091/2 "2017-07-26T14:19:37Z")

</div>

I can't help with you problem, but wanted mention that Ansible has a list for development, you might have better luck there.

[https://docs.ansible.com/ansible/latest/community.html#mailing-list-information](https://docs.ansible.com/ansible/latest/community.html#mailing-list-information)
