Closed rrbanda closed 1 year ago
Error after running
[openshift@localhost ocp4-ai-svc-universal]$ sudo dnf install libvirt-devel libvirt-client libvirt-daemon-kvm
Updating Subscription Management repositories.
Last metadata expiration check: 0:04:10 ago on Tue 18 Apr 2023 09:09:57 AM PDT.
Package libvirt-devel-8.5.0-7.4.el9_1.x86_64 is already installed.
Package libvirt-client-8.5.0-7.4.el9_1.x86_64 is already installed.
Package libvirt-daemon-kvm-8.5.0-7.4.el9_1.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[openshift@localhost ocp4-ai-svc-universal]$
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-3rsjspw4/libvirt-python_17546652b0b84876af840a1a634b1061/setup.py'"'"'; file='"'"'/tmp/pip-install-3rsjspw4/libvirt-python_17546652b0b84876af840a1a634b1061/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-6jr5p7p7/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/openshift/.local/include/python3.9/libvirt-python Check the logs for full command output.
Do a sudo yum install gcc
Do a sudo subscription-manager repos --enable codeready-builder-for-rhel-9-$(arch)-rpms
to be able to run dnf install libvirt-devel
successfully on RHEL 9
Installing collected packages: libvirt-python, jmespath WARNING: Value for scheme.platlib does not match. Please report this to https://github.com/pypa/pip/issues/10151 distutils: /home/openshift/.local/lib/python3.9/site-packages sysconfig: /home/openshift/.local/lib64/python3.9/site-packages WARNING: Additional context: user = True home = None root = None prefix = None Running setup.py install for libvirt-python ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6fegnc5m/libvirt-python_4cea6a2673d84ba891e9e433e2ae3fd0/setup.py'"'"'; file='"'"'/tmp/pip-install-6fegnc5m/libvirt-python_4cea6a2673d84ba891e9e433e2ae3fd0/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-tu56uhtc/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/openshift/.local/include/python3.9/libvirt-python cwd: /tmp/pip-install-6fegnc5m/libvirt-python_4cea6a2673d84ba891e9e433e2ae3fd0/ Complete output (55 lines): Package libvirt was not found in the pkg-config search path. Perhaps you should add the directory containing", line 1, in
File "/tmp/pip-install-6fegnc5m/libvirt-python_4cea6a2673d84ba891e9e433e2ae3fd0/setup.py", line 337, in
setup(name = 'libvirt-python',
File "/home/openshift/.local/lib/python3.9/site-packages/setuptools/init.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/home/openshift/.local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 148, in setup
return run_commands(dist)
File "/home/openshift/.local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
dist.run_commands()
File "/home/openshift/.local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
self.run_command(cmd)
File "/home/openshift/.local/lib/python3.9/site-packages/setuptools/dist.py", line 1214, in run_command
super().run_command(command)
File "/home/openshift/.local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/home/openshift/.local/lib/python3.9/site-packages/setuptools/command/install.py", line 68, in run
return orig.install.run(self)
File "/home/openshift/.local/lib/python3.9/site-packages/setuptools/_distutils/command/install.py", line 670, in run
self.run_command('build')
File "/home/openshift/.local/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/openshift/.local/lib/python3.9/site-packages/setuptools/dist.py", line 1214, in run_command
super().run_command(command)
File "/home/openshift/.local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/home/openshift/.local/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/home/openshift/.local/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/openshift/.local/lib/python3.9/site-packages/setuptools/dist.py", line 1214, in run_command
super().run_command(command)
File "/home/openshift/.local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/tmp/pip-install-6fegnc5m/libvirt-python_4cea6a2673d84ba891e9e433e2ae3fd0/setup.py", line 152, in run
check_minimum_libvirt_version()
File "/tmp/pip-install-6fegnc5m/libvirt-python_4cea6a2673d84ba891e9e433e2ae3fd0/setup.py", line 43, in check_minimum_libvirt_version
subprocess.check_call(["pkg-config",
File "/usr/lib64/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['pkg-config', '--print-errors', '--atleast-version=0.9.11', 'libvirt']' returned non-zero exit status 1.
libvirt.pc' to the PKG_CONFIG_PATH environment variable Package 'libvirt', required by 'virtual:world', not found Package libvirt was not found in the pkg-config search path. Perhaps you should add the directory containing
libvirt.pc' to the PKG_CONFIG_PATH environment variable Package 'libvirt', required by 'virtual:world', not found running install /home/openshift/.local/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. warnings.warn( running build running build_py Package 'libvirt' was not found Traceback (most recent call last): File "ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6fegnc5m/libvirt-python_4cea6a2673d84ba891e9e433e2ae3fd0/setup.py'"'"'; file='"'"'/tmp/pip-install-6fegnc5m/libvirt-python_4cea6a2673d84ba891e9e433e2ae3fd0/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-tu56uhtc/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/openshift/.local/include/python3.9/libvirt-python Check the logs for full command output.