# Traceback with

**URL:** <https://forum.ansible.com/t/traceback-with/12071>\
**Category:** Ansible Project\
**Created:** [November 8, 2012, 4:02pm UTC](https://forum.ansible.com/t/traceback-with/12071 "2012-11-08T16:02:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nolan\_Darilek](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@Nolan\_Darilek](https://forum.ansible.com/u/Nolan_Darilek)\
**Post date:** [November 8, 2012, 4:02pm UTC](https://forum.ansible.com/t/traceback-with/12071/1 "2012-11-08T16:02:20Z")

</div>

Getting this traceback:

Traceback (most recent call last):  
&nbsp;&nbsp;&nbsp;File "/usr/bin/ansible-playbook", line 165, in \<module\>  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;sys.exit(main(sys.argv[1:]))  
&nbsp;&nbsp;&nbsp;File "/usr/bin/ansible-playbook", line 73, in main  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;options.ask\_pass = options.ask\_pass or C.DEFAULT\_ASK\_PASS  
AttributeError: 'module' object has no attribute 'DEFAULT\_ASK\_PASS'

with this config:

[defaults]

hostfile = ~/.ansible.hosts  
ask\_sudo\_pass=True

with latest master.

Any idea what's up?

Thanks.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [November 8, 2012, 4:03pm UTC](https://forum.ansible.com/t/traceback-with/12071/2 "2012-11-08T16:03:50Z")

</div>

There's no branch 'master', which may be part of the problem 🙂

ansible --version?

---

<div class="post-metadata">

**Author:** ![Nolan\_Darilek](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@Nolan\_Darilek](https://forum.ansible.com/u/Nolan_Darilek)\
**Post date:** [November 8, 2012, 4:17pm UTC](https://forum.ansible.com/t/traceback-with/12071/3 "2012-11-08T16:17:45Z")

</div>

> There's no branch 'master', which may be part of the problem 🙂
> 
> ansible --version?

> 0.9.

Sorry, latest on the devel branch.

---

<div class="post-metadata">

**Author:** ![Nolan\_Darilek](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@Nolan\_Darilek](https://forum.ansible.com/u/Nolan_Darilek)\
**Post date:** [November 12, 2012, 6:22pm UTC](https://forum.ansible.com/t/traceback-with/12071/4 "2012-11-12T18:22:49Z")

</div>

Any word on this? Has anyone managed to duplicate it? What additional information might I provide? It's still happening for me in the latest devel checkout, after running 'make deb' and installing the package.

I've looked, and I'm uncertain as to why DEFAULT\_ASK\_PASS is being pulled off of 'module' when even the crashing line in question references C.

This is under Ubuntu 12.10 and Python 2.7.

Thanks.

---

<div class="post-metadata">

**Author:** ![Brian\_Coca1](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Post date:** [November 12, 2012, 7:36pm UTC](https://forum.ansible.com/t/traceback-with/12071/5 "2012-11-12T19:36:58Z")

</div>

I tried to reproduce this, but was unable. C is a config construct holding all the constants DEFAULT\_ASK\_PASS is a constant that is present so I’m not sure why it is producing this traceback.

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [November 12, 2012, 7:38pm UTC](https://forum.ansible.com/t/traceback-with/12071/6 "2012-11-12T19:38:44Z")

</div>

C is also a module instance.

I suspect you have some weird installation with some leftover  
artifacts around or something like that.

---

<div class="post-metadata">

**Author:** ![Nolan\_Darilek](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@Nolan\_Darilek](https://forum.ansible.com/u/Nolan_Darilek)\
**Post date:** [November 12, 2012, 7:49pm UTC](https://forum.ansible.com/t/traceback-with/12071/7 "2012-11-12T19:49:57Z")

</div>

I just dpkg --purged my ansible package, did a fresh checkout, built then re-installed the package. Same result.

Thoughts on what else to try?

---

<div class="post-metadata">

**Author:** ![Nolan\_Darilek](https://avatars.discourse-cdn.com/v4/letter/n/919ad9/32.png) [@Nolan\_Darilek](https://forum.ansible.com/u/Nolan_Darilek)\
**Post date:** [November 14, 2012, 3:41pm UTC](https://forum.ansible.com/t/traceback-with/12071/8 "2012-11-14T15:41:39Z")

</div>

OK, figured this out. There was indeed an install of Ansible hiding in my ~/.local directory, which I don't even remember having made. It's been about a decade since I did anything with Python so it took me a while to track this down.

One of my debugging steps involved running Ansible from source, but it failed there too. From that I concluded that there must be some bug in the version as shipped. I wonder if the binaries in the source tree might be configured to put the source directories first on PYTHONPATH? Had it worked from source but failed from my packaged versions, I would have poked my system more aggressively and wouldn't have bothered the list. 🙂

Thanks, and sorry for the noise.
