Richard, It is looking better, but still getting error - see attached log. I removed all installed packages and yum installed libguestfs libguestfs-devel (1.28.1) Then reset my git repository to 1.28.1 and then $ make clean $ ./autogen.sh --disable-erlang --disable-perl --disable-lua --disable-ruby $ make $ make -C python sdist $ cd python/dist $ sudo pip install guestfs-1.28.1.tar.gz Regards John On 9/14/15, 11:21 AM, "Richard W.M. Jones" <rjones@redhat.com> wrote:>On Mon, Sep 14, 2015 at 06:12:27PM +0000, John McDowall wrote: >> Richard, >> >> Thanks for fast reply - let me remove all the yum packages and then >> build/install from single version. > >I would avoid using 'make install' in the libguestfs git repo. > >A better plan may be to roll back the git repo to match the version of >libguestfs you have installed (from yum), eg: > > git reset --hard 1.28.1 > >then try the pip method again. > >Rich. > >-- >Richard Jones, Virtualization Group, Red Hat >https://urldefense.proofpoint.com/v2/url?u=http-3A__people.redhat.com_-7Er >jones&d=AwIBAg&c=V9IgWpI5PvzTw83UyHGVSoW3Uc1MFWe5J8PTfkrzVSo&r=vZ6VUDaavDp >fOdPQrz1ED54jEjvAE36A8TVJroVlrOQ&m=o-TnLIVCsJ3aeiNcH_Pu4yVo1sdqyhS5aUHdruT >NAhg&s=H9YY91eaSkCTCMy0IMxhVJSgHGRhalqQl7JmSviqFYI&e>Read my programming and virtualization blog: >https://urldefense.proofpoint.com/v2/url?u=http-3A__rwmj.wordpress.com&d=A >wIBAg&c=V9IgWpI5PvzTw83UyHGVSoW3Uc1MFWe5J8PTfkrzVSo&r=vZ6VUDaavDpfOdPQrz1E >D54jEjvAE36A8TVJroVlrOQ&m=o-TnLIVCsJ3aeiNcH_Pu4yVo1sdqyhS5aUHdruTNAhg&s=ht >vTMCbT7-QnAHxD7J0rMtD3ZdT2CjIeV3J7adPZ9EY&e>Fedora Windows cross-compiler. Compile Windows programs, test, and >build Windows installers. Over 100 libraries supported. >https://urldefense.proofpoint.com/v2/url?u=http-3A__fedoraproject.org_wiki >_MinGW&d=AwIBAg&c=V9IgWpI5PvzTw83UyHGVSoW3Uc1MFWe5J8PTfkrzVSo&r=vZ6VUDaavD >pfOdPQrz1ED54jEjvAE36A8TVJroVlrOQ&m=o-TnLIVCsJ3aeiNcH_Pu4yVo1sdqyhS5aUHdru >TNAhg&s=QYagh0fwCEBmiPVHeekIosN2hGlY3YKy24Y4rJ8juwI&e> ./autogen.sh --disable-erlang --disable-perl --disable-lua --disable-ruby >
On Mon, Sep 14, 2015 at 07:06:48PM +0000, John McDowall wrote:> Richard, > > It is looking better, but still getting error - see attached log. > > I removed all installed packages and yum installed libguestfs > libguestfs-devel (1.28.1) > > Then reset my git repository to 1.28.1 and then > > $ make clean > $ ./autogen.sh --disable-erlang --disable-perl --disable-lua --disable-ruby > $ make > $ make -C python sdist > $ cd python/dist > $ sudo pip install guestfs-1.28.1.tar.gzThat's pretty close to working. We remove the *_9p functions in RHEL because they are not supportable, so if you edit guestfs-py.c by hand to remove those bindings it may work. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. http://fedoraproject.org/wiki/MinGW
Richard, I put an #ifdef around the logic in py_guestfs_mount_9p and py_guestfs_list_9p, I.e. Left the signatures but the functions just return a a NULL PyObject. It now builds and installs with pip. Thanks for all your help most appreciated. Is there a better way to do this?, #ifdefs always seem a little hacky. Regards John On 9/14/15, 12:47 PM, "Richard W.M. Jones" <rjones@redhat.com> wrote:>On Mon, Sep 14, 2015 at 07:06:48PM +0000, John McDowall wrote: >> Richard, >> >> It is looking better, but still getting error - see attached log. >> >> I removed all installed packages and yum installed libguestfs >> libguestfs-devel (1.28.1) >> >> Then reset my git repository to 1.28.1 and then >> >> $ make clean >> $ ./autogen.sh --disable-erlang --disable-perl --disable-lua >>--disable-ruby >> $ make >> $ make -C python sdist >> $ cd python/dist >> $ sudo pip install guestfs-1.28.1.tar.gz > >That's pretty close to working. We remove the *_9p functions in RHEL >because they are not supportable, so if you edit guestfs-py.c by hand >to remove those bindings it may work. > >Rich. > >-- >Richard Jones, Virtualization Group, Red Hat >https://urldefense.proofpoint.com/v2/url?u=http-3A__people.redhat.com_-7Er >jones&d=AwIBAg&c=V9IgWpI5PvzTw83UyHGVSoW3Uc1MFWe5J8PTfkrzVSo&r=vZ6VUDaavDp >fOdPQrz1ED54jEjvAE36A8TVJroVlrOQ&m=rMKmgqBnzomK9gZ2IFeCMAUQoOb0CIXOuHL0unS >akbw&s=Wd1vKCyHdDlv2mC5G5ESdLBSfiHAPPD971EH870rIBc&e>Read my programming and virtualization blog: >https://urldefense.proofpoint.com/v2/url?u=http-3A__rwmj.wordpress.com&d=A >wIBAg&c=V9IgWpI5PvzTw83UyHGVSoW3Uc1MFWe5J8PTfkrzVSo&r=vZ6VUDaavDpfOdPQrz1E >D54jEjvAE36A8TVJroVlrOQ&m=rMKmgqBnzomK9gZ2IFeCMAUQoOb0CIXOuHL0unSakbw&s=FN >5LMvtC9ufnfnGV0YnkBv3OzG8wO768Y9b4VgxJ6W0&e>Fedora Windows cross-compiler. Compile Windows programs, test, and >build Windows installers. Over 100 libraries supported. >https://urldefense.proofpoint.com/v2/url?u=http-3A__fedoraproject.org_wiki >_MinGW&d=AwIBAg&c=V9IgWpI5PvzTw83UyHGVSoW3Uc1MFWe5J8PTfkrzVSo&r=vZ6VUDaavD >pfOdPQrz1ED54jEjvAE36A8TVJroVlrOQ&m=rMKmgqBnzomK9gZ2IFeCMAUQoOb0CIXOuHL0un >Sakbw&s=B4XzrgRkrzOTaaxSxzhN0kt7_cwxFKtIPsRdaEualL0&e=