Python module github3 is not working with ansible

22 views
Skip to first unread message

Rodrigo Rapozo

unread,
Sep 27, 2019, 12:05:17 PM9/27/19
to Ansible Project

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:


$ 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:


     TASK [Get latest release from repository] ***********************************************************************************************************************
     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?

Jonathan Lozada De La Matta

unread,
Sep 27, 2019, 12:07:44 PM9/27/19
to ansible...@googlegroups.com
can you share the playbook? did you use a virtualenv?

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/52e6dbaf-bced-4fb2-9894-94f2464ea204%40googlegroups.com.
--

Jonathan Cha'gara Lozada De La Matta

He / Him / His

Red Hat

Senior Automation Practice Consultant & Automation CoP Manager

Join the Automation CoP! https://red.ht/autocop

 

Felix Fontein

unread,
Sep 27, 2019, 12:08:29 PM9/27/19
to ansible...@googlegroups.com
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



On Fri, 27 Sep 2019 09:05:16 -0700 (PDT)
Rodrigo Rapozo <rodrig...@gmail.com> wrote:

>
>
> 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:
>
>
> *$ 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: graffatc...@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:
>
>
> * TASK **[Get latest release from repository]
> ***********************************************************************************************************************
> ** 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?*
>

Reply all
Reply to author
Forward
0 new messages