Python模块github3不能与ansib一起使用

2024-04-16 12:59:28 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在尝试使用ansible模块github\u发行版,它使用python模块github3.py

我需要运行playbook的机器没有访问internet的权限,所以我下载了(pip download github3.py),然后在其他机器上安装了(pip install./*.whl)

我确信python模块已经安装好了:

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

但我的剧本也有同样的错误:

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)"}

你知道为什么我的剧本能找到github3模块吗


Tags: 模块installpippygithubcom机器权限