virt-backup
virt-backup copied to clipboard
Failed to install; Failed to build libvirt-python
Received the following when running 'sudo -H pip3 install virt-backup'
Building wheels for collected packages: virt-backup, libvirt-python
Running setup.py bdist_wheel for virt-backup ... done
Stored in directory: /root/.cache/pip/wheels/24/2e/0d/b3103fed109ad402f0ca5b915326ab4e4681e2769e55deb47f
Running setup.py bdist_wheel for libvirt-python ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-dd28ztdb/libvirt-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" bdist_wheel -d /tmp/tmpjycy7m9cpip-wheel- --python-tag cp35:
running bdist_wheel
running build
Traceback (most recent call last):
File "
Failed building wheel for libvirt-python
Running setup.py clean for libvirt-python
Successfully built virt-backup
Failed to build libvirt-python
Installing collected packages: argparse, python-dateutil, arrow, defusedxml, libvirt-python, packaging, virt-backup
Found existing installation: python-dateutil 2.4.2
Not uninstalling python-dateutil at /usr/lib/python3/dist-packages, outside environment /usr
Running setup.py install for libvirt-python ... error
Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-dd28ztdb/libvirt-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-th2xgfjk-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
Traceback (most recent call last):
File "
----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-dd28ztdb/libvirt-python/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-th2xgfjk-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-dd28ztdb/libvirt-python/
You need to install pkg-config
in your distribution.
For Debian based systems: apt install pkg-config
.
You need to install
pkg-config
in your distribution. For Debian based systems:apt install pkg-config
.
I still get the error.
@tardigrde : Can you try to do apt-get build-dep python3-pkgconfig
please?
Although, I don't get it, pkg-config is the only dependency for https://packages.debian.org/fr/source/buster/python-pkgconfig
And it's the only thing I had to install on debian.
Edit: @tardigrde: can you check that pkg-config is in your PATH?
You can also try to manually set the PKG_CONFIG
env variable, but it shouldn't be needed: https://github.com/libvirt/libvirt-python/blob/master/setup.py#L33
@tardigrde : Can you try to do
apt-get build-dep python3-pkgconfig
please?
So I'm using a conda environment, a totally clear one, python==3.7. I installed the packages you suggested, but with the conda env's pip, I still get the same error.
How do I check the pkg-config?
Sorry, I don't know, I don't use conda
. You probably need to install pkg-config
(the binary, not the python library) inside your conda environment, as it's a dependency for libvirt-python
. Sadly I cannot do more support than that…