Quantcast
Channel: 不自量力 の Weithenn
Viewing all articles
Browse latest Browse all 590

Failed to import the required Python library (pyghmi) on awx's Python

$
0
0


Question: Failed to import the required Python library (pyghmi) on awx's Python

執行 ipmi_power 模組的 Playbook 時,出錯如下圖所示的錯誤訊息:






Answer:

從 ipmi_power 模組 說明文件中可知,需要 Python Library pyghmi才行,所以進入 awx_task容器中,先將 pip 版本升級安裝 pyghmi 即可。值得注意的是,在 awx_task 容器環境中,pip 指令的執行路徑為「/var/lib/awx/venv/ansible/bin/pip」。
# /var/lib/awx/venv/ansible/bin/pip install --upgrade pip --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org
# /var/lib/awx/venv/ansible/bin/pip install pyghmi --trusted-host pypi.python.org --trusted-host files.pythonhosted.org --trusted-host pypi.org





Viewing all articles
Browse latest Browse all 590

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>