Hi,

Please find below warning which I am facing while running "make" in source code 
of libguestfs-1.32.4:

**********************************************************************
make[2]: Entering directory `/root/rpmbuild/SOURCES/libguestfs-1.32.4/python'
  CC       libguestfsmod_la-guestfs-py.lo
In file included from guestfs-py.c:36:0:
guestfs-py.h: In function 'put_handle':
guestfs-py.h:56:5: warning: implicit declaration of function 
'PyCObject_FromVoidPtrAndDesc' [-Wimplicit-function-declaration]
     PyCObject_FromVoidPtrAndDesc ((void *) g, (char *) "guestfs_h", NULL);
     ^
guestfs-py.h:56:5: warning: nested extern declaration of 
'PyCObject_FromVoidPtrAndDesc' [-Wnested-externs]
guestfs-py.h:55:3: warning: return makes pointer from integer without a cast 
[enabled by default]
   return
   ^
  CC       libguestfsmod_la-guestfs-py-byhand.lo
In file included from guestfs-py-byhand.c:35:0:
guestfs-py.h: In function 'put_handle':
guestfs-py.h:56:5: warning: implicit declaration of function 
'PyCObject_FromVoidPtrAndDesc' [-Wimplicit-function-declaration]
     PyCObject_FromVoidPtrAndDesc ((void *) g, (char *) "guestfs_h", NULL);
     ^
guestfs-py.h:56:5: warning: nested extern declaration of 
'PyCObject_FromVoidPtrAndDesc' [-Wnested-externs]
guestfs-py.h:55:3: warning: return makes pointer from integer without a cast 
[enabled by default]
   return
   ^
***********************************************************************

I hope this may create below issue:

[root@euca-10-254-5-129 libguestfs-1.32.4]$ ./run python
Python 3.5.1 (default, Jan 30 2018, 06:34:19)
[GCC 4.8.2 20140120 (Red Hat 4.8.2-16)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import guestfs
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/root/rpmbuild/SOURCES/libguestfs-1.32.4/python/guestfs.py", line 73, 
in <module>
    import libguestfsmod
ImportError: 
/root/rpmbuild/SOURCES/libguestfs-1.32.4/python/.libs/libguestfsmod.cpython-35m-x86_64-linux-gnu.so:
 undefined symbol: PyCObject_FromVoidPtrAndDesc
>>>

Please help me to fix this issue.

Regards,
Abinaya

-----Original Message-----
From: Abinaya Sandhiya Manikandan (GIS)
Sent: Monday, February 5, 2018 11:19 AM
To: libguestfs@redhat.com
Subject: RE: [Libguestfs] python 3 bindings on libguestfs

Hi,

Can we get any update/suggestion about below mails.

Regards,
Abinaya

-----Original Message-----
From: Abinaya Sandhiya Manikandan (GIS)
Sent: Friday, February 2, 2018 12:59 PM
To: 'libguestfs@redhat.com' <libguestfs@redhat.com>
Subject: RE: [Libguestfs] python 3 bindings on libguestfs

++FYI

Also I could see some patches on below link:

https://www.redhat.com/archives/libguestfs/2014-August/msg00134.html

But those are not available in libguestfs-1.32.10.

PYTHON 2 bindings working perfectly and PYTHON 3 having issues.

Regards,
Abinaya

-----Original Message-----
From: Abinaya Sandhiya Manikandan (GIS)
Sent: Friday, February 2, 2018 12:10 PM
To: 'libguestfs@redhat.com' <libguestfs@redhat.com>
Subject: RE: [Libguestfs] python 3 bindings on libguestfs

Hi,

Looking at python 3 bindings it looks like some issue in libguestfs.
I have tried a lot and still facing "undefined Symbol" issue while importing 
guestfs.

But Able to enable python 3 bindings in libguestfs but it's not working as 
expected.

I could see another user faced same issue and the same has reported in below 
link:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=646360

I hope libguestfs-1.32.10 also having same issue.

Please help us on this.

Regards,
Abinaya

-----Original Message-----
From: Abinaya Sandhiya Manikandan (GIS)
Sent: Thursday, February 1, 2018 10:30 AM
To: libguestfs@redhat.com
Subject: RE: [Libguestfs] python 3 bindings on libguestfs

Hi,

Have tried python2 bindings on libguestfs-1.32.10 (fresh installation).
It seems like still the log is like below:

checking for python... python
checking Python version... 2.7
checking for PYTHON... yes
checking Python prefix... /opt/python/x86_64/2.7.11-1 checking for Python 
site-packages path... /opt/python/x86_64/2.7.11-1/lib/python2.7/site-packages
checking for Python extension suffix (PEP-3149)... .so checking for 
PyCapsule_New in -lc... no checking for PyString_AsString in -lc... no

But python-guestfs is working fine without any issue on python 2.7.11.

[root@euca-10-254-20-192 libguestfs-1.32.10]$ ./run python
>>> import guestfs
>>> g = guestfs.GuestFS(python_return_dict=True)
>>> help(guestfs)
Help on module guestfs:

NAME
    guestfs - Python bindings for libguestfs

FILE
    /var/fpwork/libguestfs/SOURCES/libguestfs-1.32.10/python/guestfs.py

DESCRIPTION
    import guestfs
    g = guestfs.GuestFS (python_return_dict=True)
    g.add_drive_opts ("guest.img", format="raw")
    g.launch ()
    parts = g.list_partitions ()

    The guestfs module provides a Python binding to the libguestfs API
    for examining and modifying virtual machine disk images.

    Amongst the things this is good for: making batch configuration
    changes to guests, getting disk used/free statistics (see also:
    virt-df), migrating between virtualization systems (see also:
    virt-p2v), performing partial backups, performing partial guest
    clones, cloning guests and changing registry/UUID/hostname info, and
    much else besides.

    Libguestfs uses Linux kernel and qemu code, and can access any type of
    guest filesystem that Linux and qemu can, including but not limited
    to: ext2/3/4, btrfs, FAT and NTFS, LVM, many different disk partition
    schemes, qcow, qcow2, vmdk.

    Libguestfs provides ways to enumerate guest storage (eg. partitions,
    LVs, what filesystem is in each LV, etc.).  It can also run commands
    in the context of the guest.  Also you can access filesystems over
    FUSE.

I have followed same steps which I tried with python 3 but here its working as 
expected.

Can you suggest us for further.

Regards,
Abinaya


-----Original Message-----
From: Richard W.M. Jones [mailto:rjo...@redhat.com]
Sent: Wednesday, January 31, 2018 7:33 PM
To: Abinaya Sandhiya Manikandan (GIS) <abinaya.manikan...@wipro.com>
Cc: libguestfs@redhat.com
Subject: Re: [Libguestfs] python 3 bindings on libguestfs

** This mail has been sent from an external source **

On Wed, Jan 31, 2018 at 09:09:11AM +0000, abinaya.manikan...@wipro.com wrote:
> Hi,
>
> We have done on fresh instance.
>
> We have manually installed libguestfs-1.32.10.
> I could see below log while running ./configure:
>
> checking Python version... 3.6
> checking for PYTHON... yes
> checking Python prefix... /opt/python/x86_64/3.6.3-1 checking for
> Python site-packages path...
> /opt/python/x86_64/3.6.3-1/lib/python3.6/site-packages
> checking for Python extension suffix (PEP-3149)...
> .cpython-36m-x86_64-linux-gnu.so checking for PyCapsule_New in -lc...
> no

This is supposed to be ‘yes’ which is why it's failing.  You'll have to debug 
m4/guestfs_python.m4 and config.log to find out why that is but something is 
obviously broken about your Python installation.

Rich.

--
Richard Jones, Virtualization Group, Red Hat 
https://clicktime.symantec.com/a/1/QpBj2RntFu4dSMppES6KSQp9ZVvhAKatttH78pTl_WA=?d=12kiPxvxSYRcl6NZxESsHA3TxXXFpt_WZErs3plCmXBhxRSv0U15rzGdpGGpCeSwMY1wO5swkB_Vvzycbtiwa5aBdD-1FdUoaQIPif7noFSFoMgC2e1ufzZQiRTRXgGxT2XD7_8NINSLiJbOjm7gQtRmhLkIXbJdGr3Tn29IqozqySPO--AFa-S-lGmPePW0cRAJ0pcbGtIOsqb1nPOZJMiyRutNANOowl1CnoSSK7yUCoiiInPE6T4wtTosy3tHobiAm6lWo8MXnEX9GOf_7qldHl588OUe2CDuMty5buneMn6iNY0o1iUkgxkXRt5X7UMqQF8L9DkS_4L62HUasjmcjAxkaqXtSO2zyHgXUPkCvB6W3CkVkZbI&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones
Read my programming and virtualization blog: 
https://clicktime.symantec.com/a/1/4gU8zlWIt6mQGAQlV_FSPN1TQ0sIrcu0zXiC9vG7k7M=?d=12kiPxvxSYRcl6NZxESsHA3TxXXFpt_WZErs3plCmXBhxRSv0U15rzGdpGGpCeSwMY1wO5swkB_Vvzycbtiwa5aBdD-1FdUoaQIPif7noFSFoMgC2e1ufzZQiRTRXgGxT2XD7_8NINSLiJbOjm7gQtRmhLkIXbJdGr3Tn29IqozqySPO--AFa-S-lGmPePW0cRAJ0pcbGtIOsqb1nPOZJMiyRutNANOowl1CnoSSK7yUCoiiInPE6T4wtTosy3tHobiAm6lWo8MXnEX9GOf_7qldHl588OUe2CDuMty5buneMn6iNY0o1iUkgxkXRt5X7UMqQF8L9DkS_4L62HUasjmcjAxkaqXtSO2zyHgXUPkCvB6W3CkVkZbI&u=http%3A%2F%2Frwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many powerful 
monitoring features, net stats, disk stats, logging, etc.
https://clicktime.symantec.com/a/1/BBhVfDpXAuYqbEpOddbsSY8ANiAcrMMqmNhfrHpDeNM=?d=12kiPxvxSYRcl6NZxESsHA3TxXXFpt_WZErs3plCmXBhxRSv0U15rzGdpGGpCeSwMY1wO5swkB_Vvzycbtiwa5aBdD-1FdUoaQIPif7noFSFoMgC2e1ufzZQiRTRXgGxT2XD7_8NINSLiJbOjm7gQtRmhLkIXbJdGr3Tn29IqozqySPO--AFa-S-lGmPePW0cRAJ0pcbGtIOsqb1nPOZJMiyRutNANOowl1CnoSSK7yUCoiiInPE6T4wtTosy3tHobiAm6lWo8MXnEX9GOf_7qldHl588OUe2CDuMty5buneMn6iNY0o1iUkgxkXRt5X7UMqQF8L9DkS_4L62HUasjmcjAxkaqXtSO2zyHgXUPkCvB6W3CkVkZbI&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones%2Fvirt-top

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com 
______________________________________________________________________
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

_______________________________________________
Libguestfs mailing list
Libguestfs@redhat.com
https://www.redhat.com/mailman/listinfo/libguestfs

Reply via email to