# Python module github3 is not working with ansible

**URL:** <https://forum.ansible.com/t/python-module-github3-is-not-working-with-ansible/31379>\
**Category:** Ansible Project\
**Created:** [September 27, 2019, 4:05pm UTC](https://forum.ansible.com/t/python-module-github3-is-not-working-with-ansible/31379 "2019-09-27T16:05:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rodrigo\_Rapozo](https://avatars.discourse-cdn.com/v4/letter/r/e8c25b/32.png) [@Rodrigo\_Rapozo](https://forum.ansible.com/u/Rodrigo_Rapozo)\
**Post date:** [September 27, 2019, 4:05pm UTC](https://forum.ansible.com/t/python-module-github3-is-not-working-with-ansible/31379/1 "2019-09-27T16:05:16Z")

</div>

Hello I’m trying to use the ansible module github\_release that use the python module github3.py.

The machine that I need run the playbook don’t have permission to access the internet so I downloaded (pip download github3.py) then in other machine I inslated (pip install ./\*.whl).

I’m sure that the python module is instaled:

```auto

```

`*$ pip show github3**.py*`

`*Name: github3.py*`

`*Version: 1.3.0*`

`*Summary: Python wrapper for the GitHub API(http://developer.github.com/v3)*`

`*Home-page: https://github3.readthedocs.io Author: Ian Stapleton Cordasco*`

`*Author-email: graffatcolmingov@gmail.com*`

`*License: 3-clause BSD Location: /usr/lib/python2.7/site-packages*`

`*Requires: python-dateutil, uritemplate, requests, jwcrypto Required-by:*`

But my playbook have the same error:

```auto
 *TASK* <i>[Get latest release from repository] ***********************************************************************************************************************
</i> *fatal: [vg1200yr.dc.sedc.internal.vodafone.com]: FAILED! => {"changed": false, "msg": "Missing required github3 module (check docs or install with: pip install github3.py==1.0.0a4)"}*

*Any idea why my playbook can find the github3 module?*

```

---

<div class="post-metadata">

**Author:** ![Jonathan\_Lozada\_De\_L](https://avatars.discourse-cdn.com/v4/letter/j/eb8c5e/32.png) [@Jonathan\_Lozada\_De\_L](https://forum.ansible.com/u/Jonathan_Lozada_De_L)\
**Post date:** [September 27, 2019, 4:07pm UTC](https://forum.ansible.com/t/python-module-github3-is-not-working-with-ansible/31379/2 "2019-09-27T16:07:10Z")

</div>

can you share the playbook? did you use a virtualenv?

---

<div class="post-metadata">

**Author:** ![felixfontein](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/felixfontein/32/7530_2.png) [@felixfontein](https://forum.ansible.com/u/felixfontein)\
**Post date:** [September 27, 2019, 4:08pm UTC](https://forum.ansible.com/t/python-module-github3-is-not-working-with-ansible/31379/3 "2019-09-27T16:08:12Z")

</div>

Hi,

you need to install the Python module on the machine where the Ansible  
module is executed. From your playbook, this seems to be  
vg1200yr.dc.sedc.internal.vodafone.com.

(You also need to install it for the same Python interpreter which  
Ansible uses to execute the module, in case you have multiple  
installed.)

Cheers,  
Felix
