No such file exists with python-libvirt on precise.
This is important as any programs that are packaged so they can be used by pypi will fail as they will try to use new > 1.0 package versions to download as they will be unable to detect the local installed package from the distro:
Here is the output during bootstrap for a program that depends on libvirt-python without the egg file on precise:
Searching for libvirt-python
Reading http://pypi.python.org/simple/libvirt-python/
Best match: libvirt-python 1.2.9
Downloading https://pypi.python.org/packages/source/l/libvirt-python/libvirt-python-1.2.9.tar.gz#md5=970da28cfdc1c6532c96101b22f94ec4
Processing libvirt-python-1.2.9.tar.gz
Running libvirt-python-1.2.9/setup.py -q bdist_egg --dist-dir /tmp/easy_install-gfyjD8/libvirt-python-1.2.9/egg-dist-tmp-l_L3cW
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
No package 'libvirt' 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
No package 'libvirt' found
/usr/bin/pkg-config --atleast-version=1.0.2 libvirt
file build/libvirt.py (for module libvirt) not found
file build/libvirt_qemu.py (for module libvirt_qemu) not found
file build/libvirt.py (for module libvirt) not found
file build/libvirt_qemu.py (for module libvirt_qemu) not found
file build/libvirt.py (for module libvirt) not found
file build/libvirt_qemu.py (for module libvirt_qemu) not found
libvirt-override.c:21:29: fatal error: libvirt/libvirt.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
After manually creating the egg-info file which is a very simple file:
Using /usr/lib/python2.7/dist-packages
Searching for libvirt-python==0.9.8
Best match: libvirt-python 0.9.8
libvirt-python 0.9.8 is already the active version in easy-install.pth
This seems like an easy enough fix that it should be added to precise.
Can we get this updated on precise?
If someone doesn't want to spend the time doing a patch I will gladly build a new package and submit a patch.
On precise. Package version:
ii python-libvirt 0.9.8-2ubuntu17.20 libvirt Python bindings
Unlike trusty which has egg-info:
/usr/lib/ python- 2.7/dist- packages/ libvirt_ python- 1.2.2.egg- info
No such file exists with python-libvirt on precise.
This is important as any programs that are packaged so they can be used by pypi will fail as they will try to use new > 1.0 package versions to download as they will be unable to detect the local installed package from the distro:
Here is the output during bootstrap for a program that depends on libvirt-python without the egg file on precise:
Searching for libvirt-python pypi.python. org/simple/ libvirt- python/ /pypi.python. org/packages/ source/ l/libvirt- python/ libvirt- python- 1.2.9.tar. gz#md5= 970da28cfdc1c65 32c96101b22f94e c4 python- 1.2.9.tar. gz python- 1.2.9/setup. py -q bdist_egg --dist-dir /tmp/easy_ install- gfyjD8/ libvirt- python- 1.2.9/egg- dist-tmp- l_L3cW bin/pkg- config --atleast- version= 1.0.2 libvirt qemu.py (for module libvirt_qemu) not found qemu.py (for module libvirt_qemu) not found qemu.py (for module libvirt_qemu) not found override. c:21:29: fatal error: libvirt/libvirt.h: No such file or directory
Reading http://
Best match: libvirt-python 1.2.9
Downloading https:/
Processing libvirt-
Running libvirt-
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
No package 'libvirt' 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
No package 'libvirt' found
/usr/
file build/libvirt.py (for module libvirt) not found
file build/libvirt_
file build/libvirt.py (for module libvirt) not found
file build/libvirt_
file build/libvirt.py (for module libvirt) not found
file build/libvirt_
libvirt-
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
After manually creating the egg-info file which is a very simple file:
$ cat /usr/lib/ python2. 7/dist- packages/ libvirt_ python- 0.9.8.egg- info Version: 1.0 www.libvirt. org
Metadata-
Name: libvirt-python
Version: 0.9.8
Summary: The libvirt virtualization API
Home-page: http://
Author: Libvirt Maintainers
Author-email: <email address hidden>
License: UNKNOWN
Description: UNKNOWN
Platform: UNKNOWN
Install goes ok:
Using /usr/lib/ python2. 7/dist- packages python= =0.9.8
Searching for libvirt-
Best match: libvirt-python 0.9.8
libvirt-python 0.9.8 is already the active version in easy-install.pth
This seems like an easy enough fix that it should be added to precise.
Can we get this updated on precise?
If someone doesn't want to spend the time doing a patch I will gladly build a new package and submit a patch.