Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

virtualbmc installation fails with "libvirt-python requires Python 3.x to build" #382

Closed
valleedelisle opened this issue Jan 23, 2020 · 1 comment

Comments

@valleedelisle
Copy link
Contributor

This issue [1] started today, yesterday it was working fine. I suspect that this commit is the root cause.

[1]

TASK [vbmc : Install python-virtualbmc with pip] *******************************
10:10:03 |   | task path: /usr/local/lib/python3.5/dist-packages/infrared/common/roles/vbmc/tasks/install.yml:39
10:10:08 |   | ERROR   Playbook "/home/rundeck/.infrared/plugins/tripleo-overcloud/main.yml" failed!
10:10:08 |   | fatal: [undercloud-0 -> dell-r740-2.gsslab.rdu2.redhat.com.]: FAILED! => {"changed": false, "cmd": ["/root/.virtualenvs/vbmc/bin/pip2", "install", "virtualbmc==1.6.0"], "msg": "stdout:   No LICENSE.txt / LICENSE found in source\nNew python executable in /root/.virtualenvs/vbmc/bin/python\nInstalling setuptools, pip, wheel...\ndone.\nCollecting virtualbmc==1.6.0\n  Using cached virtualbmc-1.6.0-py2.py3-none-any.whl (38 kB)\nCollecting pyghmi>=1.0.22\n  Using cached pyghmi-1.5.3-py2.py3-none-any.whl (206 kB)\nCollecting pbr!=2.1.0,>=2.0.0\n  Using cached pbr-5.4.4-py2.py3-none-any.whl (110 kB)\nCollecting libvirt-python!=4.1.0,>=3.7.0\n  Downloading libvirt-python-6.0.0.tar.gz (196 kB)\n\n:stderr: DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support\n    ERROR: Command errored out with exit status 1:\n     command: /root/.virtualenvs/vbmc/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '\"'\"'/tmp/pip-install-xb0Xyu/libvirt-python/setup.py'\"'\"'; __file__='\"'\"'/tmp/pip-install-xb0Xyu/libvirt-python/setup.py'\"'\"';f=getattr(tokenize, '\"'\"'open'\"'\"', open)(__file__);code=f.read().replace('\"'\"'\\r\\n'\"'\"', '\"'\"'\\n'\"'\"');f.close();exec(compile(code, __file__, '\"'\"'exec'\"'\"'))' egg_info --egg-base /tmp/pip-install-xb0Xyu/libvirt-python/pip-egg-info\n         cwd: /tmp/pip-install-xb0Xyu/libvirt-python/\n    Complete output (1 lines):\n    libvirt-python requires Python 3.x to build\n    ----------------------------------------\nERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.\n"}
rhosqeauto pushed a commit that referenced this issue Jan 24, 2020
Install libvirt-python on RHEL7.x python2
Install python3-libvirt on RHEL8 python3

use system libraries for the
python-virtualbmc pip install.

links:
https://gitlab.com/libvirt/libvirt-python/commit/b22e4f2441078aec048b9503fde2b45e78710ce1

Closes-Issue: #382
Change-Id: Ib3050cc739639ada40213186c0d49ae64214249a
@valleedelisle
Copy link
Contributor Author

Works for me.

rhosqeauto pushed a commit that referenced this issue Jan 29, 2020
Install libvirt-python on RHEL7.x python2
Install python3-libvirt on RHEL8 python3

use system libraries for the
python-virtualbmc pip install.

links:
https://gitlab.com/libvirt/libvirt-python/commit/b22e4f2441078aec048b9503fde2b45e78710ce1

Closes-Issue: #382
Change-Id: Ib3050cc739639ada40213186c0d49ae64214249a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant