[Libguestfs] Issue with python pip install

Richard W.M. Jones rjones at redhat.com
Mon Sep 14 19:48:35 UTC 2015


On Mon, Sep 14, 2015 at 07:06:27PM +0100, Richard W.M. Jones wrote:
> I think what is happening is that you've got an older version of
> libguestfs installed than the one you're building the python bindings
> for.
> 
> Because libguestfs (eg. git) contains its own python bindings, the
> assumption has always been that the version of libguestfs will be
> exactly the same (ie. all APIs will be present and identical).
> 
> If you build different versions, then that's no longer true, so you
> see errors from "missing" APIs (ie. ones not present in your old
> version of libguestfs).  eg:
> 
> build/temp.linux-x86_64-2.7/guestfs-py.o
>     guestfs-py.c:310:26: warning: ‘struct guestfs_btrfsbalance’ declared inside
> parameter list [enabled by default]
>      put_btrfsbalance (struct guestfs_btrfsbalance *btrfsbalance)
>                               ^  
> 
> This could be fixed, but needs patching in generator/python.ml
> upstream.

I tried to have a go at solving this, but it's not as easy as
it seems.  So I punted it and filed a bug instead:

https://bugzilla.redhat.com/show_bug.cgi?id=1262983

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines.  Supports shell scripting,
bindings from many languages.  http://libguestfs.org




More information about the Libguestfs mailing list