[libvirt-users] Failed building wheel for libvirt-python

Daniel P. Berrange berrange at redhat.com
Thu Sep 7 15:56:10 UTC 2017


On Thu, Sep 07, 2017 at 05:25:46PM +0200, Silvia Fichera wrote:
> Hi all,
> I'm installing Openstack using devstack netwon branch in my PC with Ubuntu
> 16.04 and I have this error.
> Could someone of you help me please?

The version of libvirt-python must be the same as, or newer than, the
version of the libvirt C library you're building against.

This error suggests you

> Thanks
> 
> Collecting libvirt-python===2.1.0 (from -c
> /opt/stack/requirements/upper-constraints.txt (line 169))
>   Using cached libvirt-python-2.1.0.tar.gz
> Building wheels for collected packages: libvirt-python
>   Running setup.py bdist_wheel for libvirt-python ... error
>   Complete output from command /usr/bin/python -u -c "import setuptools,
> tokenize;__file__='/tmp/pip-build-g9ai0P/libvirt-python/setup.py';f=getattr(tokenize,
> 'open', open)(__file__);code=f.read().replace('\r\n',
> '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d
> /tmp/tmpsHlvcmpip-wheel- --python-tag cp27:
>   running bdist_wheel
>   running build
>   /usr/bin/pkg-config --print-errors --atleast-version=0.9.11 libvirt
>   /usr/bin/python generator.py libvirt
> /usr/share/libvirt/api/libvirt-api.xml
>   Found 415 functions in /usr/share/libvirt/api/libvirt-api.xml
>   Found 0 functions in libvirt-override-api.xml
>   Generated 344 wrapper functions
>   Missing type converters:
>   virConnectNodeDeviceEventGenericCallback:1
>   ERROR: failed virConnectNodeDeviceEventRegisterAny

This API was introduced in libvirt 2.2.0

IOW you need to use a newer version of libvirt-python


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvirt-users mailing list