# error while running uptime.py

**URL:** <https://forum.ansible.com/t/error-while-running-uptime-py/34050>\
**Category:** Ansible Developer\
**Created:** [October 18, 2020, 1:04pm UTC](https://forum.ansible.com/t/error-while-running-uptime-py/34050 "2020-10-18T13:04:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikhil\_gupta](https://avatars.discourse-cdn.com/v4/letter/n/258eb7/32.png) [@nikhil\_gupta](https://forum.ansible.com/u/nikhil_gupta)\
**Post date:** [October 18, 2020, 1:04pm UTC](https://forum.ansible.com/t/error-while-running-uptime-py/34050/1 "2020-10-18T13:04:03Z")

</div>

Hello  
I am new to Ansilbe. I downloaded the ansible source code zip from GitHub. I am trying to run uptime.py under examples/scripts. I am getting below error. Please let me know the steps to run this.

UP \*\*\*\*\*\*\*\*\*\*\*  
FAILED \*\*\*\*\*\*\*  
[www.google.com](http://www.google.com) \>\>\> Unexpected failure during module execution.  
[www.example.com](http://www.example.com) \>\>\> Unexpected failure during module execution.  
localhost \>\>\> Unexpected failure during module execution.  
DOWN \*\*\*\*\*\*\*\*\*

I am able to ssh localhost.

Thanks.  
Nikhil Gupta

---

<div class="post-metadata">

**Author:** ![nikhil\_gupta](https://avatars.discourse-cdn.com/v4/letter/n/258eb7/32.png) [@nikhil\_gupta](https://forum.ansible.com/u/nikhil_gupta)\
**Post date:** [November 15, 2020, 6:31pm UTC](https://forum.ansible.com/t/error-while-running-uptime-py/34050/2 "2020-11-15T18:31:01Z")

</div>

Hello  
Can someone pls look into the question below.

[https://stackoverflow.com/questions/64847952/getting-error-unexpected-failure-during-module-execution-after-executing-uptim](https://stackoverflow.com/questions/64847952/getting-error-unexpected-failure-during-module-execution-after-executing-uptim)

Thanks,  
Nikhil
