Re: [Libguestfs] python 3 bindings on libguestfs
On Tue, Jan 23, 2018 at 12:48:48PM +0000, abinaya.manikandan@wipro.com wrote:
Hi Team,
As per our user request we are trying to enable python3 on libguestfs 1.32.10 as per steps which is mentioned in below URL.
https://github.com/libguestfs/libguestfs/blob/master/docs/guestfs-building.p...
But python-guestfs is not getting enabled. Please suggest me on this.
What Linux distro are you using? What commands did you try? What error(s) did you see? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
Hello, Please fine below details: [root@server190 ~]$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.5 (Santiago) We are trying to import guestfs in python according to manual page: http://libguestfs.org/guestfs-py I should be able to initialize guestfs with following command: import guestfs g = guestfs.GuestFS(python_return_dict=True) g.add_drive_opts("disk.img", format="raw", readonly=1) g.launch() But I could see below issue: [root@server190~]$ python Python 3.5.1 (default, Feb 18 2016, 07:20:42) [GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] on linux Type "help", "copyright", "credits" or "license" for more information.
import guestfs g = guestfs.GuestFS(python_return_dict=True) Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'guestfs' has no attribute 'GuestFS'
Can you please suggest us how to fix this issue. Regards, Abinaya sandhiya -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Tuesday, January 23, 2018 6:50 PM To: Abinaya Sandhiya Manikandan (GIS) <abinaya.manikandan@wipro.com> Cc: libguestfs@redhat.com Subject: Re: python 3 bindings on libguestfs ** This mail has been sent from an external source ** On Tue, Jan 23, 2018 at 12:48:48PM +0000, abinaya.manikandan@wipro.com wrote:
Hi Team,
As per our user request we are trying to enable python3 on libguestfs 1.32.10 as per steps which is mentioned in below URL.
https://clicktime.symantec.com/a/1/Ss0xsCzVNcdbeLhSFW9boZraqqnns4WC-tj nH8jnX9Y=?d=m-3gmKl4Uz2mYBtVcmkQBwLDbLRXzcIdsMi742-hNJ6iuSnXqqHO63oiv5 vWH7DVqDlNDnD0P_ILEARt7YquJBxYe-KXsROvS3B8vx6QWKgzvZOKxVSRP3IHlsnlgijk jd7dOx6vu1hTCv9RVrXdrt4_-GZuxKWGkwd39y_KRcNQ3RRx7IY6vrBZrowxmGHN5YYsl1 qx4O0ZGguNbCg6u9ZE95Yxgqelzly3Qvqq0w75__TRe4VY4CGM74mzEyK3ZPJl4gh8wgoD A6WiuqcJkw_Sqy7qtHsMzVjIzT44ElLp2UEuBX1FPKLNd4xakYBF1fQCTcUzuDCGPStbgv XFzjeAlAUjGZcDVIVv6w%3D%3D&u=https%3A%2F%2Fgithub.com%2Flibguestfs%2Fl ibguestfs%2Fblob%2Fmaster%2Fdocs%2Fguestfs-building.pod
But python-guestfs is not getting enabled. Please suggest me on this.
What Linux distro are you using? What commands did you try? What error(s) did you see? Rich. -- Richard Jones, Virtualization Group, Red Hat https://clicktime.symantec.com/a/1/l43u-vCppnFofQgkwDBZpXuPVp7ns2eSEHKwQni7Dpg=?d=m-3gmKl4Uz2mYBtVcmkQBwLDbLRXzcIdsMi742-hNJ6iuSnXqqHO63oiv5vWH7DVqDlNDnD0P_ILEARt7YquJBxYe-KXsROvS3B8vx6QWKgzvZOKxVSRP3IHlsnlgijkjd7dOx6vu1hTCv9RVrXdrt4_-GZuxKWGkwd39y_KRcNQ3RRx7IY6vrBZrowxmGHN5YYsl1qx4O0ZGguNbCg6u9ZE95Yxgqelzly3Qvqq0w75__TRe4VY4CGM74mzEyK3ZPJl4gh8wgoDA6WiuqcJkw_Sqy7qtHsMzVjIzT44ElLp2UEuBX1FPKLNd4xakYBF1fQCTcUzuDCGPStbgvXFzjeAlAUjGZcDVIVv6w%3D%3D&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones Read my programming and virtualization blog: https://clicktime.symantec.com/a/1/1pCrqFd96voDFrxf1hMdLos00qiOeyOsW8Tbo86ndBc=?d=m-3gmKl4Uz2mYBtVcmkQBwLDbLRXzcIdsMi742-hNJ6iuSnXqqHO63oiv5vWH7DVqDlNDnD0P_ILEARt7YquJBxYe-KXsROvS3B8vx6QWKgzvZOKxVSRP3IHlsnlgijkjd7dOx6vu1hTCv9RVrXdrt4_-GZuxKWGkwd39y_KRcNQ3RRx7IY6vrBZrowxmGHN5YYsl1qx4O0ZGguNbCg6u9ZE95Yxgqelzly3Qvqq0w75__TRe4VY4CGM74mzEyK3ZPJl4gh8wgoDA6WiuqcJkw_Sqy7qtHsMzVjIzT44ElLp2UEuBX1FPKLNd4xakYBF1fQCTcUzuDCGPStbgvXFzjeAlAUjGZcDVIVv6w%3D%3D&u=http%3A%2F%2Frwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. https://clicktime.symantec.com/a/1/X6NALrO-Hm8WIPBrRNSY6uL063_5aL5ffIYcwIGfQ70=?d=m-3gmKl4Uz2mYBtVcmkQBwLDbLRXzcIdsMi742-hNJ6iuSnXqqHO63oiv5vWH7DVqDlNDnD0P_ILEARt7YquJBxYe-KXsROvS3B8vx6QWKgzvZOKxVSRP3IHlsnlgijkjd7dOx6vu1hTCv9RVrXdrt4_-GZuxKWGkwd39y_KRcNQ3RRx7IY6vrBZrowxmGHN5YYsl1qx4O0ZGguNbCg6u9ZE95Yxgqelzly3Qvqq0w75__TRe4VY4CGM74mzEyK3ZPJl4gh8wgoDA6WiuqcJkw_Sqy7qtHsMzVjIzT44ElLp2UEuBX1FPKLNd4xakYBF1fQCTcUzuDCGPStbgvXFzjeAlAUjGZcDVIVv6w%3D%3D&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones%2Fvirt-df%2F ______________________________________________________________________ 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 ______________________________________________________________________
On Wed, Jan 24, 2018 at 09:13:22AM +0000, abinaya.manikandan@wipro.com wrote:
Hello,
Please fine below details:
[root@server190 ~]$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.5 (Santiago)
We are trying to import guestfs in python according to manual page: http://libguestfs.org/guestfs-py
I should be able to initialize guestfs with following command: import guestfs g = guestfs.GuestFS(python_return_dict=True) g.add_drive_opts("disk.img", format="raw", readonly=1) g.launch()
But I could see below issue: [root@server190~]$ python Python 3.5.1 (default, Feb 18 2016, 07:20:42) [GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] on linux Type "help", "copyright", "credits" or "license" for more information.
import guestfs g = guestfs.GuestFS(python_return_dict=True) Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'guestfs' has no attribute 'GuestFS'
Can you please suggest us how to fix this issue. ... [root@server190 ~]$ guestfish --version guestfish 1.32.10
We have enable python3 bindings on libguestfs according to below guide: http://libguestfs.org/guestfs-building.1.html#building-python-2-and-python-3...
It looks like you've compiled your own version of libguestfs from source. Did you run ‘make install’? It's best NOT to do that. You can access the python bindings from the compiled source directory using: ./run python as described here: http://libguestfs.org/guestfs-building.1.html#the-.-run-script If that doesn't work then you need to send the full output from ‘./configure && make’ when you build libguestfs. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
Hi, Can you please let me know which all are the python versions (2.7/3.5/3.6) can enable in libguestfs_v13210. Regards, Abinaya -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Wednesday, January 24, 2018 8:01 PM To: Abinaya Sandhiya Manikandan (GIS) <abinaya.manikandan@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 24, 2018 at 09:13:22AM +0000, abinaya.manikandan@wipro.com wrote:
Hello,
Please fine below details:
[root@server190 ~]$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.5 (Santiago)
We are trying to import guestfs in python according to manual page: https://clicktime.symantec.com/a/1/LiRocXZSu8hPwuIgFLMXmvG-CIbXEtJuwKy oXqR3Szo=?d=Gk343ZAdJ7GH-kcmImlIz1H8hBZFU4o5sb46Q-Bo_SJfp6aA-oaCc3g-cD bThgfTkPoDnxJOlt_ZAjVEWYvijzqPaMQZ5D-vWQV9fi339EZa2W4Cg-wY-9Rq2hWQjI-z w_3hV9iLIorlXpBQ-c9vJ6GGzlSn5RrVtiZlQm19uq-hi3GyoYHIn7YJGNQL-r8eLUgxFx 0FwoiV3xsrJehd1RkHVDlpoJcJf5spBgsmoZ-Qve_o1DJiSN1KWNrDuGYw5NmAgDXSg92- XFw3_6ghcnpI-mJ_MckRbuiyrPXS2Sx3g71POvZVRyf1UfO1lKWII_9xqWpPrTxmQkmVxN 2nMpQLz2ky5SnN239kTxTpNvuT-q_x9Nd3efY%3D&u=http%3A%2F%2Flibguestfs.org %2Fguestfs-py
I should be able to initialize guestfs with following command: import guestfs g = guestfs.GuestFS(python_return_dict=True) g.add_drive_opts("disk.img", format="raw", readonly=1) g.launch()
But I could see below issue: [root@server190~]$ python Python 3.5.1 (default, Feb 18 2016, 07:20:42) [GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] on linux Type "help", "copyright", "credits" or "license" for more information.
import guestfs g = guestfs.GuestFS(python_return_dict=True) Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'guestfs' has no attribute 'GuestFS'
Can you please suggest us how to fix this issue. ... [root@server190 ~]$ guestfish --version guestfish 1.32.10
We have enable python3 bindings on libguestfs according to below guide: https://clicktime.symantec.com/a/1/YnKgD8WL3PMdWueqq6kVp_XiPr6bSdVOB1G 6c2e_9X4=?d=Gk343ZAdJ7GH-kcmImlIz1H8hBZFU4o5sb46Q-Bo_SJfp6aA-oaCc3g-cD bThgfTkPoDnxJOlt_ZAjVEWYvijzqPaMQZ5D-vWQV9fi339EZa2W4Cg-wY-9Rq2hWQjI-z w_3hV9iLIorlXpBQ-c9vJ6GGzlSn5RrVtiZlQm19uq-hi3GyoYHIn7YJGNQL-r8eLUgxFx 0FwoiV3xsrJehd1RkHVDlpoJcJf5spBgsmoZ-Qve_o1DJiSN1KWNrDuGYw5NmAgDXSg92- XFw3_6ghcnpI-mJ_MckRbuiyrPXS2Sx3g71POvZVRyf1UfO1lKWII_9xqWpPrTxmQkmVxN 2nMpQLz2ky5SnN239kTxTpNvuT-q_x9Nd3efY%3D&u=http%3A%2F%2Flibguestfs.org %2Fguestfs-building.1.html%23building-python-2-and-python-3-bindings
It looks like you've compiled your own version of libguestfs from source. Did you run ‘make install’? It's best NOT to do that. You can access the python bindings from the compiled source directory using: ./run python as described here: https://clicktime.symantec.com/a/1/zCn8seXwE6cb0FzSpu_6iwS-mXcPhqGea-OgmRDx51A=?d=Gk343ZAdJ7GH-kcmImlIz1H8hBZFU4o5sb46Q-Bo_SJfp6aA-oaCc3g-cDbThgfTkPoDnxJOlt_ZAjVEWYvijzqPaMQZ5D-vWQV9fi339EZa2W4Cg-wY-9Rq2hWQjI-zw_3hV9iLIorlXpBQ-c9vJ6GGzlSn5RrVtiZlQm19uq-hi3GyoYHIn7YJGNQL-r8eLUgxFx0FwoiV3xsrJehd1RkHVDlpoJcJf5spBgsmoZ-Qve_o1DJiSN1KWNrDuGYw5NmAgDXSg92-XFw3_6ghcnpI-mJ_MckRbuiyrPXS2Sx3g71POvZVRyf1UfO1lKWII_9xqWpPrTxmQkmVxN2nMpQLz2ky5SnN239kTxTpNvuT-q_x9Nd3efY%3D&u=http%3A%2F%2Flibguestfs.org%2Fguestfs-building.1.html%23the-.-run-script If that doesn't work then you need to send the full output from ‘./configure && make’ when you build libguestfs. Rich. -- Richard Jones, Virtualization Group, Red Hat https://clicktime.symantec.com/a/1/jBEt9y40NmeT1C9081epuqKWEQRsPWp7j7N3sBcLx7s=?d=Gk343ZAdJ7GH-kcmImlIz1H8hBZFU4o5sb46Q-Bo_SJfp6aA-oaCc3g-cDbThgfTkPoDnxJOlt_ZAjVEWYvijzqPaMQZ5D-vWQV9fi339EZa2W4Cg-wY-9Rq2hWQjI-zw_3hV9iLIorlXpBQ-c9vJ6GGzlSn5RrVtiZlQm19uq-hi3GyoYHIn7YJGNQL-r8eLUgxFx0FwoiV3xsrJehd1RkHVDlpoJcJf5spBgsmoZ-Qve_o1DJiSN1KWNrDuGYw5NmAgDXSg92-XFw3_6ghcnpI-mJ_MckRbuiyrPXS2Sx3g71POvZVRyf1UfO1lKWII_9xqWpPrTxmQkmVxN2nMpQLz2ky5SnN239kTxTpNvuT-q_x9Nd3efY%3D&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones Read my programming and virtualization blog: https://clicktime.symantec.com/a/1/-jspsjGofneuLp0a6Zqb0VMdbGeXQngumdK_pDAzCLU=?d=Gk343ZAdJ7GH-kcmImlIz1H8hBZFU4o5sb46Q-Bo_SJfp6aA-oaCc3g-cDbThgfTkPoDnxJOlt_ZAjVEWYvijzqPaMQZ5D-vWQV9fi339EZa2W4Cg-wY-9Rq2hWQjI-zw_3hV9iLIorlXpBQ-c9vJ6GGzlSn5RrVtiZlQm19uq-hi3GyoYHIn7YJGNQL-r8eLUgxFx0FwoiV3xsrJehd1RkHVDlpoJcJf5spBgsmoZ-Qve_o1DJiSN1KWNrDuGYw5NmAgDXSg92-XFw3_6ghcnpI-mJ_MckRbuiyrPXS2Sx3g71POvZVRyf1UfO1lKWII_9xqWpPrTxmQkmVxN2nMpQLz2ky5SnN239kTxTpNvuT-q_x9Nd3efY%3D&u=http%3A%2F%2Frwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. https://clicktime.symantec.com/a/1/7B62pyi2iOOWhSjID_PiHWxA6wsIxoCG_-ebv9_ZBns=?d=Gk343ZAdJ7GH-kcmImlIz1H8hBZFU4o5sb46Q-Bo_SJfp6aA-oaCc3g-cDbThgfTkPoDnxJOlt_ZAjVEWYvijzqPaMQZ5D-vWQV9fi339EZa2W4Cg-wY-9Rq2hWQjI-zw_3hV9iLIorlXpBQ-c9vJ6GGzlSn5RrVtiZlQm19uq-hi3GyoYHIn7YJGNQL-r8eLUgxFx0FwoiV3xsrJehd1RkHVDlpoJcJf5spBgsmoZ-Qve_o1DJiSN1KWNrDuGYw5NmAgDXSg92-XFw3_6ghcnpI-mJ_MckRbuiyrPXS2Sx3g71POvZVRyf1UfO1lKWII_9xqWpPrTxmQkmVxN2nMpQLz2ky5SnN239kTxTpNvuT-q_x9Nd3efY%3D&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones%2Fvirt-df%2F ______________________________________________________________________ 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 ______________________________________________________________________
On Thu, Jan 25, 2018 at 10:25:16AM +0000, abinaya.manikandan@wipro.com wrote:
Hi,
Can you please let me know which all are the python versions (2.7/3.5/3.6) can enable in libguestfs_v13210.
Any version of Python can be used. See also: http://libguestfs.org/guestfs-building.1.html#building-python-2-and-python-3... 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
Hi, We are trying to build libguestfs RPM package using SPEC file. As we discussed earlier to enable python bindings on libguestfs need to use ./run python but this cannot be add in SPEC file. What we have done to enable python3 in libguestfs is below: 1. We have installed python-3.6.1 2. Enable python using --enable-python in %build section like below "%configure --disable-appliance --disable-daemon --without-libvirt --with-qemu="qemu-kvm qemu-system-x86_64 qemu" --prefix=%{_prefix} --enable-python" 3. Now we could see below files when we installed libguestfs-1.32.10 [root@euca-172-31-15-221 1.32.10]$ ls * bin: guestfish virt-copy-in virt-diff virt-index-validate virt-rescue virt-tar-out libguestfs-test-tool virt-copy-out virt-edit virt-inspector virt-resize virt-v2v virt-alignment-scan virt-customize virt-filesystems virt-log virt-sparsify virt-v2v-copy-to-local virt-builder virt-df virt-format virt-ls virt-sysprep virt-cat virt-dib virt-get-kernel virt-make-fs virt-tar-in deps: bin include lib share doc: README etc: libguestfs-tools.conf virt-builder xdg include: guestfs-gobject guestfs-gobject.h guestfs.h interface: man startup lib: appliance libguestfs-gobject-1.0.so.0 libguestfs_jni.so.1.32.10 pkgconfig libguestfs.a libguestfs-gobject-1.0.so.0.0.0 libguestfs.la python3.6 libguestfs-gobject-1.0.a libguestfs_jni.la libguestfs.so libguestfs-gobject-1.0.la libguestfs_jni.so libguestfs.so.0 libguestfs-gobject-1.0.so libguestfs_jni.so.1 libguestfs.so.0.458.0 lib64: guestfs stublibs man: man1 man3 man5 seehelp: libguestfs-1.32.10-2.el6.html share: doc gtk-doc java javadoc locale 4. We could see python-guestfs libraries in below path, [root@euca-172-31-15-221 site-packages]$ pwd /opt/libguestfs/x86_64/1.32.10/lib/python3.6/site-packages [root@euca-172-31-15-221 site-packages]$ ls guestfs.py guestfs.pyc guestfs.pyo We are able to import guestfs without any issue like below: [root@euca-172-31-15-221 ~]$ python Python 3.6.0 (default, Jun 1 2017, 02:10:02) [GCC 4.4.4 20100726 (Red Hat 4.4.4-13)] on linux Type "help", "copyright", "credits" or "license" for more information.
import guestfs
But the issue is when we use "GuestFS" attribute like below:
guestfs.GuestFS() Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'guestfs' has no attribute 'GuestFS'
I have tried a lot to fix the issue and also google the same but no luck. Please help me on this. Regards, Abinaya -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Thursday, January 25, 2018 4:00 PM To: Abinaya Sandhiya Manikandan (GIS) <abinaya.manikandan@wipro.com> Cc: libguestfs@redhat.com Subject: Re: [Libguestfs] python 3 bindings on libguestfs ** This mail has been sent from an external source ** On Thu, Jan 25, 2018 at 10:25:16AM +0000, abinaya.manikandan@wipro.com wrote:
Hi,
Can you please let me know which all are the python versions (2.7/3.5/3.6) can enable in libguestfs_v13210.
Any version of Python can be used. See also: https://clicktime.symantec.com/a/1/qoKbsFMihHOWmj0p8BcJBr-MlL9BJTkzfYTr3kBV0SE=?d=YKtk1uvm5Nx3yeGZEYuU9aWY9KVSZEc1Tz3j_Tr1gsBiPSTKLztUcl5LzSvB5gegOZntTaIvCjTSfq7zLzl5HSS1uZSDCQg4FywAc4euKx2XGYMGOPpl53T407BalDrK5ehmNN81bc1DPSnpvjcSYichJVYB4A3xE8ed6RwHGrCcorLjLtortsXsn0n38CEYQCPPl5FxaNZx0y1gA08l-vpIajubSbsPKJc4Wi7G8WdJ3usBTH1qfAPsgqOxxItTJaq27pLepP85GbiJKNE4cl5WzCIBueVMxBI1dT8-K-1PfJil-z77voKyk5ovWt65T077uWR70qqo6xiRGykhlkf-PsmqxgSH7VMZHqkk-hihR3VrHhxhj9K0&u=http%3A%2F%2Flibguestfs.org%2Fguestfs-building.1.html%23building-python-2-and-python-3-bindings Rich. -- Richard Jones, Virtualization Group, Red Hat https://clicktime.symantec.com/a/1/pbXqVcQ3uEu6v0LMydvgvXy-NzoLXRVDjzq6OoLRfJ4=?d=YKtk1uvm5Nx3yeGZEYuU9aWY9KVSZEc1Tz3j_Tr1gsBiPSTKLztUcl5LzSvB5gegOZntTaIvCjTSfq7zLzl5HSS1uZSDCQg4FywAc4euKx2XGYMGOPpl53T407BalDrK5ehmNN81bc1DPSnpvjcSYichJVYB4A3xE8ed6RwHGrCcorLjLtortsXsn0n38CEYQCPPl5FxaNZx0y1gA08l-vpIajubSbsPKJc4Wi7G8WdJ3usBTH1qfAPsgqOxxItTJaq27pLepP85GbiJKNE4cl5WzCIBueVMxBI1dT8-K-1PfJil-z77voKyk5ovWt65T077uWR70qqo6xiRGykhlkf-PsmqxgSH7VMZHqkk-hihR3VrHhxhj9K0&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones Read my programming and virtualization blog: https://clicktime.symantec.com/a/1/386BbeBDj6ORryrimb0ZrwnXSrDL_6VkuIhbcdv-8I8=?d=YKtk1uvm5Nx3yeGZEYuU9aWY9KVSZEc1Tz3j_Tr1gsBiPSTKLztUcl5LzSvB5gegOZntTaIvCjTSfq7zLzl5HSS1uZSDCQg4FywAc4euKx2XGYMGOPpl53T407BalDrK5ehmNN81bc1DPSnpvjcSYichJVYB4A3xE8ed6RwHGrCcorLjLtortsXsn0n38CEYQCPPl5FxaNZx0y1gA08l-vpIajubSbsPKJc4Wi7G8WdJ3usBTH1qfAPsgqOxxItTJaq27pLepP85GbiJKNE4cl5WzCIBueVMxBI1dT8-K-1PfJil-z77voKyk5ovWt65T077uWR70qqo6xiRGykhlkf-PsmqxgSH7VMZHqkk-hihR3VrHhxhj9K0&u=http%3A%2F%2Frwmj.wordpress.com libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. https://clicktime.symantec.com/a/1/lxebQpCMO8fleDAyctDBuYzs51nL60SFwG1hffrEw5Q=?d=YKtk1uvm5Nx3yeGZEYuU9aWY9KVSZEc1Tz3j_Tr1gsBiPSTKLztUcl5LzSvB5gegOZntTaIvCjTSfq7zLzl5HSS1uZSDCQg4FywAc4euKx2XGYMGOPpl53T407BalDrK5ehmNN81bc1DPSnpvjcSYichJVYB4A3xE8ed6RwHGrCcorLjLtortsXsn0n38CEYQCPPl5FxaNZx0y1gA08l-vpIajubSbsPKJc4Wi7G8WdJ3usBTH1qfAPsgqOxxItTJaq27pLepP85GbiJKNE4cl5WzCIBueVMxBI1dT8-K-1PfJil-z77voKyk5ovWt65T077uWR70qqo6xiRGykhlkf-PsmqxgSH7VMZHqkk-hihR3VrHhxhj9K0&u=http%3A%2F%2Flibguestfs.org ______________________________________________________________________ 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 ______________________________________________________________________
On Thu, Jan 25, 2018 at 01:31:09PM +0000, abinaya.manikandan@wipro.com wrote:
Hi,
We are trying to build libguestfs RPM package using SPEC file.
This is new information, and good that's how you should be building libguestfs on RHEL or CentOS. ...
4. We could see python-guestfs libraries in below path,
[root@euca-172-31-15-221 site-packages]$ pwd /opt/libguestfs/x86_64/1.32.10/lib/python3.6/site-packages [root@euca-172-31-15-221 site-packages]$ ls guestfs.py guestfs.pyc guestfs.pyo
We are able to import guestfs without any issue like below: [root@euca-172-31-15-221 ~]$ python Python 3.6.0 (default, Jun 1 2017, 02:10:02) [GCC 4.4.4 20100726 (Red Hat 4.4.4-13)] on linux Type "help", "copyright", "credits" or "license" for more information.
import guestfs
But the issue is when we use "GuestFS" attribute like below:
guestfs.GuestFS() Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'guestfs' has no attribute 'GuestFS'
I have tried a lot to fix the issue and also google the same but no luck. Please help me on this.
I'm going to guess that your Python binary is not looking in /opt/libguestfs/... for libraries. You could see if setting PYTHONPATH helps, ie. something like this: PYTHONPATH=/opt/libguestfs/x86_64/1.32.10/lib/python3.6/site-packages python You can also print the current path from python by doing:
import sys print (sys.path)
Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
Hi, As per you suggestion I have set PYTHONPATH. Now the issue is different. [root@euca-172-31-15-221 ~]$ echo $PYTHONPATH /opt/libguestfs/x86_64/1.32.10/lib64:/opt/libguestfs/x86_64/1.32.10/lib/python3.6/site-packages/: [root@euca-172-31-15-221 ~]$ python Python 3.6.0 (default, Jun 1 2017, 02:10:02) [GCC 4.4.4 20100726 (Red Hat 4.4.4-13)] on linux Type "help", "copyright", "credits" or "license" for more information.
import sys print(sys.path) ['', '/opt/libguestfs/x86_64/1.32.10/lib64', '/opt/libguestfs/x86_64/1.32.10/lib/python3.6/site-packages', '/root', '/opt/python/x86_64/3.6.0-1/lib/python36.zip', '/opt/python/x86_64/3.6.0-1/lib/python3.6', '/opt/python/x86_64/3.6.0-1/lib/python3.6/lib-dynload', '/opt/python/x86_64/3.6.0-1/lib/python3.6/site-packages'] import guestfs Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/libguestfs/x86_64/1.32.10/lib/python3.6/site-packages/guestfs.py", line 73, in <module> import libguestfsmod ModuleNotFoundError: No module named 'libguestfsmod'
Thanks in Advance! Regards, Abinaya sandhiya -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Thursday, January 25, 2018 8:23 PM To: Abinaya Sandhiya Manikandan (GIS) <abinaya.manikandan@wipro.com> Cc: libguestfs@redhat.com Subject: Re: [Libguestfs] python 3 bindings on libguestfs ** This mail has been sent from an external source ** On Thu, Jan 25, 2018 at 01:31:09PM +0000, abinaya.manikandan@wipro.com wrote:
Hi,
We are trying to build libguestfs RPM package using SPEC file.
This is new information, and good that's how you should be building libguestfs on RHEL or CentOS. ...
4. We could see python-guestfs libraries in below path,
[root@euca-172-31-15-221 site-packages]$ pwd /opt/libguestfs/x86_64/1.32.10/lib/python3.6/site-packages [root@euca-172-31-15-221 site-packages]$ ls guestfs.py guestfs.pyc guestfs.pyo
We are able to import guestfs without any issue like below: [root@euca-172-31-15-221 ~]$ python Python 3.6.0 (default, Jun 1 2017, 02:10:02) [GCC 4.4.4 20100726 (Red Hat 4.4.4-13)] on linux Type "help", "copyright", "credits" or "license" for more information.
import guestfs
But the issue is when we use "GuestFS" attribute like below:
guestfs.GuestFS() Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'guestfs' has no attribute 'GuestFS'
I have tried a lot to fix the issue and also google the same but no luck. Please help me on this.
I'm going to guess that your Python binary is not looking in /opt/libguestfs/... for libraries. You could see if setting PYTHONPATH helps, ie. something like this: PYTHONPATH=/opt/libguestfs/x86_64/1.32.10/lib/python3.6/site-packages python You can also print the current path from python by doing:
import sys print (sys.path)
Rich. -- Richard Jones, Virtualization Group, Red Hat https://clicktime.symantec.com/a/1/9c_A59DlXs2MB010_pFlKJc62fLY-YzkAYXvh16AOpY=?d=EZBVgACryOgmgSiTnWoITWU669d-iIPJFrFFXkG--ivACJE8jZyUaq4fIeuM71eW6WK-0Levcf_1P4ulsJQ9NPsrAD1zEvNioK0X5UkfUa99OKEjOoSktYYiocD0QW2p26YaK4sgIKd4PXpq-kGYuIlCkrXJTk12J2mRJS4Ia6njujow-G-Q1aEgiOcIamhqG54GA8xXJ-h9shqXiS0uwbT7k60yuXX9ZoThoFdaKOX52Pc_as8ioh_wc6jDP-qb726shcoRXxwPXNeoGLIZ0_xuwal0hAxG-p3kLkSQTMBFhiiYtniekTYTCezslx2pMPKrU2Lpkog5antuP76vMzn_XBItRCALU0FfmphWLTxqVqwUDt_RRTVR&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones Read my programming and virtualization blog: https://clicktime.symantec.com/a/1/5xScP5pWckKftplgoFq_lSHjFyxqid1DdNafcc_iO9I=?d=EZBVgACryOgmgSiTnWoITWU669d-iIPJFrFFXkG--ivACJE8jZyUaq4fIeuM71eW6WK-0Levcf_1P4ulsJQ9NPsrAD1zEvNioK0X5UkfUa99OKEjOoSktYYiocD0QW2p26YaK4sgIKd4PXpq-kGYuIlCkrXJTk12J2mRJS4Ia6njujow-G-Q1aEgiOcIamhqG54GA8xXJ-h9shqXiS0uwbT7k60yuXX9ZoThoFdaKOX52Pc_as8ioh_wc6jDP-qb726shcoRXxwPXNeoGLIZ0_xuwal0hAxG-p3kLkSQTMBFhiiYtniekTYTCezslx2pMPKrU2Lpkog5antuP76vMzn_XBItRCALU0FfmphWLTxqVqwUDt_RRTVR&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/aLTR835iB8IenUdS8cS8i6_MbXDHa71g2uIyj7Zi3uQ=?d=EZBVgACryOgmgSiTnWoITWU669d-iIPJFrFFXkG--ivACJE8jZyUaq4fIeuM71eW6WK-0Levcf_1P4ulsJQ9NPsrAD1zEvNioK0X5UkfUa99OKEjOoSktYYiocD0QW2p26YaK4sgIKd4PXpq-kGYuIlCkrXJTk12J2mRJS4Ia6njujow-G-Q1aEgiOcIamhqG54GA8xXJ-h9shqXiS0uwbT7k60yuXX9ZoThoFdaKOX52Pc_as8ioh_wc6jDP-qb726shcoRXxwPXNeoGLIZ0_xuwal0hAxG-p3kLkSQTMBFhiiYtniekTYTCezslx2pMPKrU2Lpkog5antuP76vMzn_XBItRCALU0FfmphWLTxqVqwUDt_RRTVR&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 ______________________________________________________________________
On Thu, Jan 25, 2018 at 03:09:47PM +0000, abinaya.manikandan@wipro.com wrote:
Hi,
As per you suggestion I have set PYTHONPATH. Now the issue is different.
[root@euca-172-31-15-221 ~]$ echo $PYTHONPATH /opt/libguestfs/x86_64/1.32.10/lib64:/opt/libguestfs/x86_64/1.32.10/lib/python3.6/site-packages/: [root@euca-172-31-15-221 ~]$ python Python 3.6.0 (default, Jun 1 2017, 02:10:02) [GCC 4.4.4 20100726 (Red Hat 4.4.4-13)] on linux Type "help", "copyright", "credits" or "license" for more information.
import sys print(sys.path) ['', '/opt/libguestfs/x86_64/1.32.10/lib64', '/opt/libguestfs/x86_64/1.32.10/lib/python3.6/site-packages', '/root', '/opt/python/x86_64/3.6.0-1/lib/python36.zip', '/opt/python/x86_64/3.6.0-1/lib/python3.6', '/opt/python/x86_64/3.6.0-1/lib/python3.6/lib-dynload', '/opt/python/x86_64/3.6.0-1/lib/python3.6/site-packages'] import guestfs Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/libguestfs/x86_64/1.32.10/lib/python3.6/site-packages/guestfs.py", line 73, in <module> import libguestfsmod ModuleNotFoundError: No module named 'libguestfsmod'
I guess you need to find where libguestfsmod* was installed and add that to the PYTHONPATH as well. In my python3 install both libraries are in the same directory, I don't know why it's different for you. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
Hi, I have enable python in libguestfs but I could see below log while running: ***************************************************************** Thank you for downloading libguestfs 1.32.10 This is how we have configured the optional components for you today: Daemon .............................. no Appliance ........................... no QEMU ................................ /opt/qemu/x86_64/2.4.0/bin-wrapped/qemu-kvm guestfish and C-based virt tools .... yes FUSE filesystem ..................... no GNU gettext for i18n ................ yes virt-p2v ............................ no OCaml bindings ...................... yes OCaml-based virt tools .............. yes Perl bindings ....................... no Perl-based virt tools ............... no Python bindings ..................... no Ruby bindings ....................... no Java bindings ....................... yes Haskell bindings .................... no PHP bindings ........................ no Erlang bindings ..................... no Lua bindings ........................ no Go bindings ......................... no gobject bindings .................... yes gobject introspection ............... no bash completion ..................... no *************************************************************** If any optional component is configured 'no' when you expected 'yes' then you should check the preceding messages. But also I could see below line in same log: ***************************************************************** checking for python... python checking Python version... 3.6 ***************************************************************** Please let me know where I made mistake. Regards, Abinaya -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Thursday, January 25, 2018 8:49 PM To: Abinaya Sandhiya Manikandan (GIS) <abinaya.manikandan@wipro.com> Cc: libguestfs@redhat.com Subject: Re: [Libguestfs] python 3 bindings on libguestfs ** This mail has been sent from an external source ** On Thu, Jan 25, 2018 at 03:09:47PM +0000, abinaya.manikandan@wipro.com wrote:
Hi,
As per you suggestion I have set PYTHONPATH. Now the issue is different.
[root@euca-172-31-15-221 ~]$ echo $PYTHONPATH /opt/libguestfs/x86_64/1.32.10/lib64:/opt/libguestfs/x86_64/1.32.10/lib/python3.6/site-packages/: [root@euca-172-31-15-221 ~]$ python Python 3.6.0 (default, Jun 1 2017, 02:10:02) [GCC 4.4.4 20100726 (Red Hat 4.4.4-13)] on linux Type "help", "copyright", "credits" or "license" for more information.
import sys print(sys.path) ['', '/opt/libguestfs/x86_64/1.32.10/lib64', '/opt/libguestfs/x86_64/1.32.10/lib/python3.6/site-packages', '/root', '/opt/python/x86_64/3.6.0-1/lib/python36.zip', '/opt/python/x86_64/3.6.0-1/lib/python3.6', '/opt/python/x86_64/3.6.0-1/lib/python3.6/lib-dynload', '/opt/python/x86_64/3.6.0-1/lib/python3.6/site-packages'] import guestfs Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/opt/libguestfs/x86_64/1.32.10/lib/python3.6/site-packages/guestfs.py", line 73, in <module> import libguestfsmod ModuleNotFoundError: No module named 'libguestfsmod'
I guess you need to find where libguestfsmod* was installed and add that to the PYTHONPATH as well. In my python3 install both libraries are in the same directory, I don't know why it's different for you. Rich. -- Richard Jones, Virtualization Group, Red Hat https://clicktime.symantec.com/a/1/KNFGbgmwVslqCkAItD5KzPPZ9eRGt_fx1HIIyC_kZ5c=?d=GmULzK_tXQNfjzfdeMRSiuzfFNVJAbDLwAxgzjynSIIQsH_ZqPWjZlbOG37FZSGWtNl6EhzHXzggG8z5yrqW425xSIcfWPuDn5y6cZriSTZ97Vl6LHPSHqSk7E1mkQfCrhEoKDwM736LwkElu3YX8qMpbkRCbkDtQM8qlRfARP0WPuRWIAr1L61Xtj5fWpvsVgm7Z-VaOBlegwWZgpaccFkv8kwTLD2I10OsIKd3AK5B93w9CT21ejv73_e086kyUN0CQkXrm9v9SPE6O7wmmXe9LqxqUD3A_RWpv52xpe-ZK2O0oKYfJzccsXG7jJgBdUo7lX_CpP_voWtAEqpsnOkUZRzl1DXNtLZIyk3yGet1YohZBeLhze4%3D&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones Read my programming and virtualization blog: https://clicktime.symantec.com/a/1/hVAighY8J909ZMoGmGkWfRK3PHiu1Cbk2kr68j6v9lI=?d=GmULzK_tXQNfjzfdeMRSiuzfFNVJAbDLwAxgzjynSIIQsH_ZqPWjZlbOG37FZSGWtNl6EhzHXzggG8z5yrqW425xSIcfWPuDn5y6cZriSTZ97Vl6LHPSHqSk7E1mkQfCrhEoKDwM736LwkElu3YX8qMpbkRCbkDtQM8qlRfARP0WPuRWIAr1L61Xtj5fWpvsVgm7Z-VaOBlegwWZgpaccFkv8kwTLD2I10OsIKd3AK5B93w9CT21ejv73_e086kyUN0CQkXrm9v9SPE6O7wmmXe9LqxqUD3A_RWpv52xpe-ZK2O0oKYfJzccsXG7jJgBdUo7lX_CpP_voWtAEqpsnOkUZRzl1DXNtLZIyk3yGet1YohZBeLhze4%3D&u=http%3A%2F%2Frwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. https://clicktime.symantec.com/a/1/jnoNHRkPC3RWm4nusnjpSp0fs8I-7B5nB62pkczrUiE=?d=GmULzK_tXQNfjzfdeMRSiuzfFNVJAbDLwAxgzjynSIIQsH_ZqPWjZlbOG37FZSGWtNl6EhzHXzggG8z5yrqW425xSIcfWPuDn5y6cZriSTZ97Vl6LHPSHqSk7E1mkQfCrhEoKDwM736LwkElu3YX8qMpbkRCbkDtQM8qlRfARP0WPuRWIAr1L61Xtj5fWpvsVgm7Z-VaOBlegwWZgpaccFkv8kwTLD2I10OsIKd3AK5B93w9CT21ejv73_e086kyUN0CQkXrm9v9SPE6O7wmmXe9LqxqUD3A_RWpv52xpe-ZK2O0oKYfJzccsXG7jJgBdUo7lX_CpP_voWtAEqpsnOkUZRzl1DXNtLZIyk3yGet1YohZBeLhze4%3D&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones%2Fvirt-df%2F ______________________________________________________________________ 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 ______________________________________________________________________
There's no information here. Please run ‘./configure’ and attach the *complete* output to your email to the mailing list. 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
Hi, PFA log file of libguestfs. Regards, Abinaya -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Monday, January 29, 2018 3:24 PM To: Abinaya Sandhiya Manikandan (GIS) <abinaya.manikandan@wipro.com> Cc: libguestfs@redhat.com Subject: Re: [Libguestfs] python 3 bindings on libguestfs ** This mail has been sent from an external source ** There's no information here. Please run ‘./configure’ and attach the *complete* output to your email to the mailing list. Rich. -- Richard Jones, Virtualization Group, Red Hat https://clicktime.symantec.com/a/1/gEkxosQ47tAcnsXkHxZ3VyKp-KU3ykxNHaxIXljSWmQ=?d=SI6GsnjIkjWCosy6_X9tUZsHFg1vEwtuxEsXTfPlDj4vDQW5obZvOf8szTkRthePdoCq7JttLPurbupTef1Udevk-mpsAh6H0dC43RXsuiVNkV08I_2kVR3ibtYVreSQRBE1aW1gAo8zQBBTzhuYVgvvvSyMEf05TaDeCD7F8bFrAB77KRwK_zxOl2pfljMqOMxXp9XPl6ajODDkvVuWlUnhB3DF8KQP8c9Mn3dW1KoC8HpA5ZYvvxIbx4ZLqm9NhICHxkRstHIFpxWWioL1KrVv0VQbCVYCvbwZtXiJ5zOrWlNYLMCkkS8rwWQbmkVy9DRvuNLQZlvVsaLEc0oaVPAaH4ies4ATNdUWAIaTT-wRo2cmCd3qkH8%3D&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones Read my programming and virtualization blog: https://clicktime.symantec.com/a/1/jFAB5vIUcn3rfUaRE32XO1x7Uy763PfftN5XPrKp-v4=?d=SI6GsnjIkjWCosy6_X9tUZsHFg1vEwtuxEsXTfPlDj4vDQW5obZvOf8szTkRthePdoCq7JttLPurbupTef1Udevk-mpsAh6H0dC43RXsuiVNkV08I_2kVR3ibtYVreSQRBE1aW1gAo8zQBBTzhuYVgvvvSyMEf05TaDeCD7F8bFrAB77KRwK_zxOl2pfljMqOMxXp9XPl6ajODDkvVuWlUnhB3DF8KQP8c9Mn3dW1KoC8HpA5ZYvvxIbx4ZLqm9NhICHxkRstHIFpxWWioL1KrVv0VQbCVYCvbwZtXiJ5zOrWlNYLMCkkS8rwWQbmkVy9DRvuNLQZlvVsaLEc0oaVPAaH4ies4ATNdUWAIaTT-wRo2cmCd3qkH8%3D&u=http%3A%2F%2Frwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. https://clicktime.symantec.com/a/1/iJ-rLgQsPeq-noeRFOUzNeOf0QtTsw5-e_qKtS2L3oA=?d=SI6GsnjIkjWCosy6_X9tUZsHFg1vEwtuxEsXTfPlDj4vDQW5obZvOf8szTkRthePdoCq7JttLPurbupTef1Udevk-mpsAh6H0dC43RXsuiVNkV08I_2kVR3ibtYVreSQRBE1aW1gAo8zQBBTzhuYVgvvvSyMEf05TaDeCD7F8bFrAB77KRwK_zxOl2pfljMqOMxXp9XPl6ajODDkvVuWlUnhB3DF8KQP8c9Mn3dW1KoC8HpA5ZYvvxIbx4ZLqm9NhICHxkRstHIFpxWWioL1KrVv0VQbCVYCvbwZtXiJ5zOrWlNYLMCkkS8rwWQbmkVy9DRvuNLQZlvVsaLEc0oaVPAaH4ies4ATNdUWAIaTT-wRo2cmCd3qkH8%3D&u=http%3A%2F%2Ffedoraproject.org%2Fwiki%2FMinGW ______________________________________________________________________ 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 ______________________________________________________________________
The logs here:
checking for python... /opt/python/x86_64/3.1.1/bin/python3 checking Python version... 3.1 checking for PYTHON... no checking for PYTHON... no checking Python prefix... /opt/python/x86_64/3.1.1 checking for Python site-packages path... /opt/python/x86_64/3.1.1/lib/python3.1/site-packages checking for Python extension suffix (PEP-3149)... .so checking for PyCapsule_New in -lc... no checking for PyString_AsString in -lc... no
are generated by this code: https://github.com/libguestfs/libguestfs/blob/7021a234aa1496ca552ec82ff73747... As you can see from the output above you are missing all of the Python development libraries (eg. ‘python3-devel’ on Fedora). On my machine with Python 3.6.2 and the correct development libraries installed I see: ... checking for python... /usr/bin/python3 checking Python version... 3.6 checking for PYTHON... yes checking Python prefix... /usr checking for Python site-packages path... /usr/lib64/python3.6/site-packages checking for Python extension suffix (PEP-3149)... .cpython-36m-x86_64-linux-gnu.so checking for PyCapsule_New in -lc... yes checking for PyString_AsString in -lc... no ... Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/
Hi, Our RHEL6 machine default OS python version is 2.6.6 and also we have installed following python versions: [root@euca-10-254-18-174 rpmbuild_13210]$ rpm -qa | grep python python-2.6.6-66.el6_8.x86_64 libvirt-python-0.10.2-62.el6_9.1.x86_6 python-devel-2.6.6-66.el6_8.x86_64 So we are trying to build libguestfs-1.32.10 with python 2.6.6 atleast. But still the log is same like below: checking for python... /usr/bin/python2.6 checking Python version... 2.6 checking for PYTHON... no checking for PYTHON... no checking Python prefix... /usr checking for Python site-packages path... /usr/lib64/python2.6/site-packages Please find below line which we are using in our SPEC: PYTHON=/usr/bin/python2.6 ./configure --disable-appliance --disable-daemon --without-libvirt --with-qemu="qemu-kvm qemu-system-x86_64 qemu" --prefix=%{_prefix} --enable-python I have tried a lot but no luck. Could you please let me know that whether you are trying this libguestfs on any RHEL machines . if yes please provide some sample spec of libguestfs for RHEL machines. Regards, Abinaya sandhiya -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Monday, January 29, 2018 8:38 PM To: Abinaya Sandhiya Manikandan (GIS) <abinaya.manikandan@wipro.com> Cc: libguestfs@redhat.com Subject: Re: [Libguestfs] python 3 bindings on libguestfs ** This mail has been sent from an external source ** The logs here:
checking for python... /opt/python/x86_64/3.1.1/bin/python3 checking Python version... 3.1 checking for PYTHON... no checking for PYTHON... no checking Python prefix... /opt/python/x86_64/3.1.1 checking for Python site-packages path... /opt/python/x86_64/3.1.1/lib/python3.1/site-packages checking for Python extension suffix (PEP-3149)... .so checking for PyCapsule_New in -lc... no checking for PyString_AsString in -lc... no
are generated by this code: https://clicktime.symantec.com/a/1/20jQKuR48Iaz7qM7c72Ewa-TzVtjx7eH6HhmcxNNNYI=?d=H4W9t6FfxUiZ8T1irhoCuVS2xPDMVwOgUrMYur8bItWGJYeDUJyMXb96d4Zed3r93KHmbWax8NNbxcYqw7yxWKoTJ41A4GD9a8lV6_LoDd3hrAuO9ttr0XbNaYWkZ3LYd-OdEer7Bfdlenhqr4TziTuhv7dryTj4Z5vT6k2Ryf-n8ldYK_5jLHZXGd_cPnYiyvvqtLFisQUX1gmNRj494EjI8YQ3DgMybUuNb4QRGcHnYwjRN6rm90QSn8AbfwMpV2Nd1JOY8Q7lrZUYUW7hh7TZFvnxfJk4_RI9Kc-lHY9jgux7BwR-YdxR7B85aDAreGVDhl2ClQrOyYGPwxIbbXizZzZ6gri9u1c6UMdaKI65Vxx95wAFcuQ%3D&u=https%3A%2F%2Fgithub.com%2Flibguestfs%2Flibguestfs%2Fblob%2F7021a234aa1496ca552ec82ff73747a302a1b80b%2Fm4%2Fguestfs-python.m4%23L28 As you can see from the output above you are missing all of the Python development libraries (eg. ‘python3-devel’ on Fedora). On my machine with Python 3.6.2 and the correct development libraries installed I see: ... checking for python... /usr/bin/python3 checking Python version... 3.6 checking for PYTHON... yes checking Python prefix... /usr checking for Python site-packages path... /usr/lib64/python3.6/site-packages checking for Python extension suffix (PEP-3149)... .cpython-36m-x86_64-linux-gnu.so checking for PyCapsule_New in -lc... yes checking for PyString_AsString in -lc... no ... Rich. -- Richard Jones, Virtualization Group, Red Hat https://clicktime.symantec.com/a/1/pbGjVmX_MV0No5eIvfDfHfOGlwgS3qHzvLmtIwbyrW8=?d=H4W9t6FfxUiZ8T1irhoCuVS2xPDMVwOgUrMYur8bItWGJYeDUJyMXb96d4Zed3r93KHmbWax8NNbxcYqw7yxWKoTJ41A4GD9a8lV6_LoDd3hrAuO9ttr0XbNaYWkZ3LYd-OdEer7Bfdlenhqr4TziTuhv7dryTj4Z5vT6k2Ryf-n8ldYK_5jLHZXGd_cPnYiyvvqtLFisQUX1gmNRj494EjI8YQ3DgMybUuNb4QRGcHnYwjRN6rm90QSn8AbfwMpV2Nd1JOY8Q7lrZUYUW7hh7TZFvnxfJk4_RI9Kc-lHY9jgux7BwR-YdxR7B85aDAreGVDhl2ClQrOyYGPwxIbbXizZzZ6gri9u1c6UMdaKI65Vxx95wAFcuQ%3D&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones Read my programming and virtualization blog: https://clicktime.symantec.com/a/1/Q748QYQlOrpG_SFxGqzVPNDbEFzkHwm9hScaG-WtMpQ=?d=H4W9t6FfxUiZ8T1irhoCuVS2xPDMVwOgUrMYur8bItWGJYeDUJyMXb96d4Zed3r93KHmbWax8NNbxcYqw7yxWKoTJ41A4GD9a8lV6_LoDd3hrAuO9ttr0XbNaYWkZ3LYd-OdEer7Bfdlenhqr4TziTuhv7dryTj4Z5vT6k2Ryf-n8ldYK_5jLHZXGd_cPnYiyvvqtLFisQUX1gmNRj494EjI8YQ3DgMybUuNb4QRGcHnYwjRN6rm90QSn8AbfwMpV2Nd1JOY8Q7lrZUYUW7hh7TZFvnxfJk4_RI9Kc-lHY9jgux7BwR-YdxR7B85aDAreGVDhl2ClQrOyYGPwxIbbXizZzZ6gri9u1c6UMdaKI65Vxx95wAFcuQ%3D&u=http%3A%2F%2Frwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. https://clicktime.symantec.com/a/1/nsJASd71EwZ9UJnYK2H5yvz81DfowBOXiZ2B4oqXXts=?d=H4W9t6FfxUiZ8T1irhoCuVS2xPDMVwOgUrMYur8bItWGJYeDUJyMXb96d4Zed3r93KHmbWax8NNbxcYqw7yxWKoTJ41A4GD9a8lV6_LoDd3hrAuO9ttr0XbNaYWkZ3LYd-OdEer7Bfdlenhqr4TziTuhv7dryTj4Z5vT6k2Ryf-n8ldYK_5jLHZXGd_cPnYiyvvqtLFisQUX1gmNRj494EjI8YQ3DgMybUuNb4QRGcHnYwjRN6rm90QSn8AbfwMpV2Nd1JOY8Q7lrZUYUW7hh7TZFvnxfJk4_RI9Kc-lHY9jgux7BwR-YdxR7B85aDAreGVDhl2ClQrOyYGPwxIbbXizZzZ6gri9u1c6UMdaKI65Vxx95wAFcuQ%3D&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones%2Fvirt-df%2F ______________________________________________________________________ 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 ______________________________________________________________________
Hi, Finally on our RHEL7 machine we are able to bind python with libguestfs. Please find below log: checking for PYTHON... yes checking Python prefix... /opt/python/x86_64/3.6.3-1 configure: Python install dir /opt/libguestfs/x86_64/1.32.10-1.el7/lib/python3.6/site-packages checking for Python extension suffix (PEP-3149)... .cpython-36m-x86_64-linux-gnu.so also python bindings turned as YES like below: This is how we have configured the optional components for you today: Daemon .............................. no Appliance ........................... no QEMU ................................ /opt/qemu/x86_64/2.4.0/bin-wrapped/qemu-kvm guestfish and C-based virt tools .... yes FUSE filesystem ..................... no GNU gettext for i18n ................ yes virt-p2v ............................ no OCaml bindings ...................... yes OCaml-based virt tools .............. yes Perl bindings ....................... no Perl-based virt tools ............... no Python bindings ..................... yes Ruby bindings ....................... no Java bindings ....................... no Haskell bindings .................... no PHP bindings ........................ no Erlang bindings ..................... no Lua bindings ........................ no Go bindings ......................... no gobject bindings .................... no gobject introspection ............... no bash completion ..................... yes :) But next problem seems to be import is not working as expected, please find below issue: [root@euca-172-31-8-98 lib]$ python Python 3.6.3 (default, Nov 29 2017, 09:19:34) [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 "/opt/libguestfs/x86_64/1.32.10/lib/python3.6/site-packages/guestfs.py", line 73, in <module> import libguestfsmod ImportError: /opt/libguestfs/x86_64/1.32.10/lib/python3.6/site-packages/libguestfsmod.cpython-36m-x86_64-linux-gnu.so: undefined symbol: PyString_FromStringAndSize
Please share any idea to fix the above issue it would be grateful. Regards, Abinaya -----Original Message----- From: Abinaya Sandhiya Manikandan (GIS) Sent: Tuesday, January 30, 2018 3:34 PM To: libguestfs@redhat.com Subject: RE: [Libguestfs] python 3 bindings on libguestfs Hi, Our RHEL6 machine default OS python version is 2.6.6 and also we have installed following python versions: [root@euca-10-254-18-174 rpmbuild_13210]$ rpm -qa | grep python python-2.6.6-66.el6_8.x86_64 libvirt-python-0.10.2-62.el6_9.1.x86_6 python-devel-2.6.6-66.el6_8.x86_64 So we are trying to build libguestfs-1.32.10 with python 2.6.6 atleast. But still the log is same like below: checking for python... /usr/bin/python2.6 checking Python version... 2.6 checking for PYTHON... no checking for PYTHON... no checking Python prefix... /usr checking for Python site-packages path... /usr/lib64/python2.6/site-packages Please find below line which we are using in our SPEC: PYTHON=/usr/bin/python2.6 ./configure --disable-appliance --disable-daemon --without-libvirt --with-qemu="qemu-kvm qemu-system-x86_64 qemu" --prefix=%{_prefix} --enable-python I have tried a lot but no luck. Could you please let me know that whether you are trying this libguestfs on any RHEL machines . if yes please provide some sample spec of libguestfs for RHEL machines. Regards, Abinaya sandhiya -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Monday, January 29, 2018 8:38 PM To: Abinaya Sandhiya Manikandan (GIS) <abinaya.manikandan@wipro.com> Cc: libguestfs@redhat.com Subject: Re: [Libguestfs] python 3 bindings on libguestfs ** This mail has been sent from an external source ** The logs here:
checking for python... /opt/python/x86_64/3.1.1/bin/python3 checking Python version... 3.1 checking for PYTHON... no checking for PYTHON... no checking Python prefix... /opt/python/x86_64/3.1.1 checking for Python site-packages path... /opt/python/x86_64/3.1.1/lib/python3.1/site-packages checking for Python extension suffix (PEP-3149)... .so checking for PyCapsule_New in -lc... no checking for PyString_AsString in -lc... no
are generated by this code: https://clicktime.symantec.com/a/1/20jQKuR48Iaz7qM7c72Ewa-TzVtjx7eH6HhmcxNNNYI=?d=H4W9t6FfxUiZ8T1irhoCuVS2xPDMVwOgUrMYur8bItWGJYeDUJyMXb96d4Zed3r93KHmbWax8NNbxcYqw7yxWKoTJ41A4GD9a8lV6_LoDd3hrAuO9ttr0XbNaYWkZ3LYd-OdEer7Bfdlenhqr4TziTuhv7dryTj4Z5vT6k2Ryf-n8ldYK_5jLHZXGd_cPnYiyvvqtLFisQUX1gmNRj494EjI8YQ3DgMybUuNb4QRGcHnYwjRN6rm90QSn8AbfwMpV2Nd1JOY8Q7lrZUYUW7hh7TZFvnxfJk4_RI9Kc-lHY9jgux7BwR-YdxR7B85aDAreGVDhl2ClQrOyYGPwxIbbXizZzZ6gri9u1c6UMdaKI65Vxx95wAFcuQ%3D&u=https%3A%2F%2Fgithub.com%2Flibguestfs%2Flibguestfs%2Fblob%2F7021a234aa1496ca552ec82ff73747a302a1b80b%2Fm4%2Fguestfs-python.m4%23L28 As you can see from the output above you are missing all of the Python development libraries (eg. ‘python3-devel’ on Fedora). On my machine with Python 3.6.2 and the correct development libraries installed I see: ... checking for python... /usr/bin/python3 checking Python version... 3.6 checking for PYTHON... yes checking Python prefix... /usr checking for Python site-packages path... /usr/lib64/python3.6/site-packages checking for Python extension suffix (PEP-3149)... .cpython-36m-x86_64-linux-gnu.so checking for PyCapsule_New in -lc... yes checking for PyString_AsString in -lc... no ... Rich. -- Richard Jones, Virtualization Group, Red Hat https://clicktime.symantec.com/a/1/pbGjVmX_MV0No5eIvfDfHfOGlwgS3qHzvLmtIwbyrW8=?d=H4W9t6FfxUiZ8T1irhoCuVS2xPDMVwOgUrMYur8bItWGJYeDUJyMXb96d4Zed3r93KHmbWax8NNbxcYqw7yxWKoTJ41A4GD9a8lV6_LoDd3hrAuO9ttr0XbNaYWkZ3LYd-OdEer7Bfdlenhqr4TziTuhv7dryTj4Z5vT6k2Ryf-n8ldYK_5jLHZXGd_cPnYiyvvqtLFisQUX1gmNRj494EjI8YQ3DgMybUuNb4QRGcHnYwjRN6rm90QSn8AbfwMpV2Nd1JOY8Q7lrZUYUW7hh7TZFvnxfJk4_RI9Kc-lHY9jgux7BwR-YdxR7B85aDAreGVDhl2ClQrOyYGPwxIbbXizZzZ6gri9u1c6UMdaKI65Vxx95wAFcuQ%3D&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones Read my programming and virtualization blog: https://clicktime.symantec.com/a/1/Q748QYQlOrpG_SFxGqzVPNDbEFzkHwm9hScaG-WtMpQ=?d=H4W9t6FfxUiZ8T1irhoCuVS2xPDMVwOgUrMYur8bItWGJYeDUJyMXb96d4Zed3r93KHmbWax8NNbxcYqw7yxWKoTJ41A4GD9a8lV6_LoDd3hrAuO9ttr0XbNaYWkZ3LYd-OdEer7Bfdlenhqr4TziTuhv7dryTj4Z5vT6k2Ryf-n8ldYK_5jLHZXGd_cPnYiyvvqtLFisQUX1gmNRj494EjI8YQ3DgMybUuNb4QRGcHnYwjRN6rm90QSn8AbfwMpV2Nd1JOY8Q7lrZUYUW7hh7TZFvnxfJk4_RI9Kc-lHY9jgux7BwR-YdxR7B85aDAreGVDhl2ClQrOyYGPwxIbbXizZzZ6gri9u1c6UMdaKI65Vxx95wAFcuQ%3D&u=http%3A%2F%2Frwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. https://clicktime.symantec.com/a/1/nsJASd71EwZ9UJnYK2H5yvz81DfowBOXiZ2B4oqXXts=?d=H4W9t6FfxUiZ8T1irhoCuVS2xPDMVwOgUrMYur8bItWGJYeDUJyMXb96d4Zed3r93KHmbWax8NNbxcYqw7yxWKoTJ41A4GD9a8lV6_LoDd3hrAuO9ttr0XbNaYWkZ3LYd-OdEer7Bfdlenhqr4TziTuhv7dryTj4Z5vT6k2Ryf-n8ldYK_5jLHZXGd_cPnYiyvvqtLFisQUX1gmNRj494EjI8YQ3DgMybUuNb4QRGcHnYwjRN6rm90QSn8AbfwMpV2Nd1JOY8Q7lrZUYUW7hh7TZFvnxfJk4_RI9Kc-lHY9jgux7BwR-YdxR7B85aDAreGVDhl2ClQrOyYGPwxIbbXizZzZ6gri9u1c6UMdaKI65Vxx95wAFcuQ%3D&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones%2Fvirt-df%2F ______________________________________________________________________ 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 ______________________________________________________________________
On Tue, Jan 30, 2018 at 02:05:51PM +0000, abinaya.manikandan@wipro.com wrote:
Hi,
Finally on our RHEL7 machine we are able to bind python with libguestfs. Please find below log:
checking for PYTHON... yes checking Python prefix... /opt/python/x86_64/3.6.3-1 configure: Python install dir /opt/libguestfs/x86_64/1.32.10-1.el7/lib/python3.6/site-packages checking for Python extension suffix (PEP-3149)... .cpython-36m-x86_64-linux-gnu.so
The trouble is you haven't included the full ./configure log ... again.
[root@euca-172-31-8-98 lib]$ python Python 3.6.3 (default, Nov 29 2017, 09:19:34) [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 "/opt/libguestfs/x86_64/1.32.10/lib/python3.6/site-packages/guestfs.py", line 73, in <module> import libguestfsmod ImportError: /opt/libguestfs/x86_64/1.32.10/lib/python3.6/site-packages/libguestfsmod.cpython-36m-x86_64-linux-gnu.so: undefined symbol: PyString_FromStringAndSize
Somehow during ./configure it thought PyString_FromStringAndSize is defined, but when running it's not. I believe that symbol is defined by Python 2 and was removed in Python 3. Most likely the ./configure test is running against the wrong version of Python, but I can't tell without the full details. 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
Hi, Here I have attached full log. PFA. Regards, Abinaya -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Tuesday, January 30, 2018 7:53 PM To: Abinaya Sandhiya Manikandan (GIS) <abinaya.manikandan@wipro.com> Cc: libguestfs@redhat.com Subject: Re: [Libguestfs] python 3 bindings on libguestfs ** This mail has been sent from an external source ** On Tue, Jan 30, 2018 at 02:05:51PM +0000, abinaya.manikandan@wipro.com wrote:
Hi,
Finally on our RHEL7 machine we are able to bind python with libguestfs. Please find below log:
checking for PYTHON... yes checking Python prefix... /opt/python/x86_64/3.6.3-1 configure: Python install dir /opt/libguestfs/x86_64/1.32.10-1.el7/lib/python3.6/site-packages checking for Python extension suffix (PEP-3149)... .cpython-36m-x86_64-linux-gnu.so
The trouble is you haven't included the full ./configure log ... again.
[root@euca-172-31-8-98 lib]$ python Python 3.6.3 (default, Nov 29 2017, 09:19:34) [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 "/opt/libguestfs/x86_64/1.32.10/lib/python3.6/site-packages/guestfs.py", line 73, in <module> import libguestfsmod ImportError: /opt/libguestfs/x86_64/1.32.10/lib/python3.6/site-packages/libguestfsm od.cpython-36m-x86_64-linux-gnu.so: undefined symbol: PyString_FromStringAndSize
Somehow during ./configure it thought PyString_FromStringAndSize is defined, but when running it's not. I believe that symbol is defined by Python 2 and was removed in Python 3. Most likely the ./configure test is running against the wrong version of Python, but I can't tell without the full details. Rich. -- Richard Jones, Virtualization Group, Red Hat https://clicktime.symantec.com/a/1/m1ifcq0w4i2caGSzGJQFVYNMAtm-F_jy2da7yLm3WUc=?d=I0_Cz8d5wRedML76JQJRSTkLam9A5wjHsXzeUba7wGoig0kthHOpVZld8D_9iXq9zHUwkdVvCcVNvFOpNS1ZtkhTY6-wY4dcfZNKyMX-ZUsm1XjV4k2nK6NiAUC2EcF9hIMLm62V1pef1ZuRCyQg9QtL0ixeFwPRmAkUMl_9C9E-ozTPw5fPhs9eV5vIdfJtVQbwjS-egsigVGCdVxeLsPp1VBoM6qmkaquMmfXD4gLVCTzk1PKkHM3yr_h34uKQHs75eMN74AKclu3yOEp-fwu1mdLp4gx8tK4UYxNlGMTsznkb9qTZaZ5DEIGNjqehPIZ38HwtYYMKt1nnSvYvF_HHudLYgafVvOBVNPqkOsc_h7puDzyXWywB&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones Read my programming and virtualization blog: https://clicktime.symantec.com/a/1/_wOn-r-zguM3MJat-_YTdnlrzMdC8Uy4f-YGN-SlXZE=?d=I0_Cz8d5wRedML76JQJRSTkLam9A5wjHsXzeUba7wGoig0kthHOpVZld8D_9iXq9zHUwkdVvCcVNvFOpNS1ZtkhTY6-wY4dcfZNKyMX-ZUsm1XjV4k2nK6NiAUC2EcF9hIMLm62V1pef1ZuRCyQg9QtL0ixeFwPRmAkUMl_9C9E-ozTPw5fPhs9eV5vIdfJtVQbwjS-egsigVGCdVxeLsPp1VBoM6qmkaquMmfXD4gLVCTzk1PKkHM3yr_h34uKQHs75eMN74AKclu3yOEp-fwu1mdLp4gx8tK4UYxNlGMTsznkb9qTZaZ5DEIGNjqehPIZ38HwtYYMKt1nnSvYvF_HHudLYgafVvOBVNPqkOsc_h7puDzyXWywB&u=http%3A%2F%2Frwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100 libraries supported. https://clicktime.symantec.com/a/1/z8q4tTFedQabGZNSzUHliq8kmSd9OAL8iYF5emr3nu8=?d=I0_Cz8d5wRedML76JQJRSTkLam9A5wjHsXzeUba7wGoig0kthHOpVZld8D_9iXq9zHUwkdVvCcVNvFOpNS1ZtkhTY6-wY4dcfZNKyMX-ZUsm1XjV4k2nK6NiAUC2EcF9hIMLm62V1pef1ZuRCyQg9QtL0ixeFwPRmAkUMl_9C9E-ozTPw5fPhs9eV5vIdfJtVQbwjS-egsigVGCdVxeLsPp1VBoM6qmkaquMmfXD4gLVCTzk1PKkHM3yr_h34uKQHs75eMN74AKclu3yOEp-fwu1mdLp4gx8tK4UYxNlGMTsznkb9qTZaZ5DEIGNjqehPIZ38HwtYYMKt1nnSvYvF_HHudLYgafVvOBVNPqkOsc_h7puDzyXWywB&u=http%3A%2F%2Ffedoraproject.org%2Fwiki%2FMinGW ______________________________________________________________________ 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 ______________________________________________________________________
The interesting line is this one ... checking for PyString_AsString in -lc... no and if you compare that to the code, eg in python/guestfs-py.c: #ifdef HAVE_PYSTRING_ASSTRING PyDict_SetItemString (dict, "ftyp", PyString_FromStringAndSize (&dirent->ftyp, 1)); #else PyDict_SetItemString (dict, "ftyp", PyUnicode_FromStringAndSize (&dirent->ftyp, 1)); #endif So it shouldn't be using that function (PyString_FromStringAndSize) at all. I think most likely you've either attached the wrong log, or it's loading libguestfsmod.so from another build of libguestfs (eg. one linked with Python 2) so it might be you still have the wrong PYTHONPATH. Suggest removing all other copies of libguestfs, or even restarting from a completely fresh install. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-builder quickly builds VMs from scratch http://libguestfs.org/virt-builder.1.html
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 checking for PyString_AsString in -lc... no checking for ruby... ruby checking for rake... no It seems like still " checking for PyString_AsString in -lc... no". Please find below details while we run ./run python the issue is different: [root@euca-10-254-5-21 libguestfs-1.32.10]$ ./run python Python 3.6.3 (default, Nov 29 2017, 09:19:34) [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 "/var/fpwork/libguestfs/libguestfs-1.32.10/python/guestfs.py", line 73, in <module> import libguestfsmod ImportError: /var/fpwork/libguestfs/libguestfs-1.32.10/python/.libs/libguestfsmod.cpython-36m-x86_64-linux-gnu.so: undefined symbol: PyCObject_FromVoidPtrAndDesc
Please let me know why this issues is coming again and again. Even google itself nothing is there to resolve the same. Please find below steps which we are using to install libguestfs: ./configure --disable-appliance --disable-daemon --without-libvirt --with-qemu="qemu-kvm qemu-system-x86_64 qemu" --prefix=/home_local/libguestfs/1.32.0/ --enable-python Please help me on this. Regards, Abinaya -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Tuesday, January 30, 2018 9:00 PM To: Abinaya Sandhiya Manikandan (GIS) <abinaya.manikandan@wipro.com> Cc: libguestfs@redhat.com Subject: Re: [Libguestfs] python 3 bindings on libguestfs ** This mail has been sent from an external source ** The interesting line is this one ... checking for PyString_AsString in -lc... no and if you compare that to the code, eg in python/guestfs-py.c: #ifdef HAVE_PYSTRING_ASSTRING PyDict_SetItemString (dict, "ftyp", PyString_FromStringAndSize (&dirent->ftyp, 1)); #else PyDict_SetItemString (dict, "ftyp", PyUnicode_FromStringAndSize (&dirent->ftyp, 1)); #endif So it shouldn't be using that function (PyString_FromStringAndSize) at all. I think most likely you've either attached the wrong log, or it's loading libguestfsmod.so from another build of libguestfs (eg. one linked with Python 2) so it might be you still have the wrong PYTHONPATH. Suggest removing all other copies of libguestfs, or even restarting from a completely fresh install. Rich. -- Richard Jones, Virtualization Group, Red Hat https://clicktime.symantec.com/a/1/WGcqPOLaJikB8IRxVRgKdjKHzb5Tz7RycWNOg9wh-BA=?d=PeWFmlM2QiXWrRQf_mWIRNX9YypoxGfJyDKwe2CO3IUZHkv0LGSVuMQrgnN9RiJcBGgwnxVvYsXpGiQQdAvIPeoRSKGPKtDcyoYQPxi0DZdWwKWZdyeUPQZP6F8XlLOXZkWI9F1sozbTL1Ejou0XMfpoCO2LZOX93_6TxiAA7EBIA801R4fngc0CEVSAgxTv0jOJdhMwLDTB_U1GCP5W6hU7miZM-Qjn0eP8k2kMsJeyOCHBgqs_uy6ipAHxUOlyIGU8rrMiB33tbRxo0p_Xp3Eo11SkOIhKAiaxavQxc0-TNiis_-3xNhNLdM2MVulodPmW8uUJgxrbeXisrktPcr5WHwtRS38q02u20d9SUUGSVYmlHdTgRA%3D%3D&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones Read my programming and virtualization blog: https://clicktime.symantec.com/a/1/igBHFjQWrXVj2qh7NysXNal_cCO-dH_VvYcnhBE_RAw=?d=PeWFmlM2QiXWrRQf_mWIRNX9YypoxGfJyDKwe2CO3IUZHkv0LGSVuMQrgnN9RiJcBGgwnxVvYsXpGiQQdAvIPeoRSKGPKtDcyoYQPxi0DZdWwKWZdyeUPQZP6F8XlLOXZkWI9F1sozbTL1Ejou0XMfpoCO2LZOX93_6TxiAA7EBIA801R4fngc0CEVSAgxTv0jOJdhMwLDTB_U1GCP5W6hU7miZM-Qjn0eP8k2kMsJeyOCHBgqs_uy6ipAHxUOlyIGU8rrMiB33tbRxo0p_Xp3Eo11SkOIhKAiaxavQxc0-TNiis_-3xNhNLdM2MVulodPmW8uUJgxrbeXisrktPcr5WHwtRS38q02u20d9SUUGSVYmlHdTgRA%3D%3D&u=http%3A%2F%2Frwmj.wordpress.com virt-builder quickly builds VMs from scratch https://clicktime.symantec.com/a/1/USAd2BfXD9qoI_kotwGQFTW5NIh4is62Em-IyNgQAUQ=?d=PeWFmlM2QiXWrRQf_mWIRNX9YypoxGfJyDKwe2CO3IUZHkv0LGSVuMQrgnN9RiJcBGgwnxVvYsXpGiQQdAvIPeoRSKGPKtDcyoYQPxi0DZdWwKWZdyeUPQZP6F8XlLOXZkWI9F1sozbTL1Ejou0XMfpoCO2LZOX93_6TxiAA7EBIA801R4fngc0CEVSAgxTv0jOJdhMwLDTB_U1GCP5W6hU7miZM-Qjn0eP8k2kMsJeyOCHBgqs_uy6ipAHxUOlyIGU8rrMiB33tbRxo0p_Xp3Eo11SkOIhKAiaxavQxc0-TNiis_-3xNhNLdM2MVulodPmW8uUJgxrbeXisrktPcr5WHwtRS38q02u20d9SUUGSVYmlHdTgRA%3D%3D&u=http%3A%2F%2Flibguestfs.org%2Fvirt-builder.1.html ______________________________________________________________________ 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 ______________________________________________________________________
On Wed, Jan 31, 2018 at 09:09:11AM +0000, abinaya.manikandan@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 http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
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:rjones@redhat.com] Sent: Wednesday, January 31, 2018 7:33 PM To: Abinaya Sandhiya Manikandan (GIS) <abinaya.manikandan@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.manikandan@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 ______________________________________________________________________
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:rjones@redhat.com] Sent: Wednesday, January 31, 2018 7:33 PM To: Abinaya Sandhiya Manikandan (GIS) <abinaya.manikandan@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.manikandan@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 ______________________________________________________________________
++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:rjones@redhat.com] Sent: Wednesday, January 31, 2018 7:33 PM To: Abinaya Sandhiya Manikandan (GIS) <abinaya.manikandan@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.manikandan@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 ______________________________________________________________________
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:rjones@redhat.com] Sent: Wednesday, January 31, 2018 7:33 PM To: Abinaya Sandhiya Manikandan (GIS) <abinaya.manikandan@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.manikandan@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 ______________________________________________________________________
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:rjones@redhat.com] Sent: Wednesday, January 31, 2018 7:33 PM To: Abinaya Sandhiya Manikandan (GIS) <abinaya.manikandan@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.manikandan@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 ______________________________________________________________________
On Mon, Feb 05, 2018 at 11:58:45AM +0000, abinaya.manikandan@wipro.com wrote:
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]
As I said before, and as is confirmed by the message above, there is something very confused and broken about your Python installation. There's nothing much we can do about that, you need to fix it. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v
Hello Richard, Finally found the issue. As per my understand The PyCObject API has been removed in Python 3.3. Instead of that we have to use PyCapsule, which is available in python 2.7 and 3.1+. I could see below line in python/guestfs-py.h file: #ifndef HAVE_PYCAPSULE_NEW return PyCObject_FromVoidPtrAndDesc ((void *) g, (char *) "guestfs_h", NULL); #else return PyCapsule_New ((void *) g, "guestfs_h", NULL); #endif But when run the same with python 3 this file #else part is not working as expected. So I have changed the above line as like below to work with python 3.5: #ifndef HAVE_PYCAPSULE_NEW return PyCapsule_New ((void *) g, "guestfs_h", NULL); #endif // I have removed that #else part and make it available if condition only. And now all issue fixed and able to import guestfs in python-3.5.1: [root@XXX tmp]$ python Python 3.5.1 (default, Jan 30 2018, 01:29:28) [GCC 4.4.4 20100726 (Red Hat 4.4.4-13)] on linux Type "help", "copyright", "credits" or "license" for more information.
import guestfs help(guestfs) Help on module guestfs:
NAME guestfs - Python bindings for libguestfs 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. Errors which happen while using the API are turned into Python RuntimeError exceptions. : Regards, Abinaya -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Monday, February 5, 2018 8:11 PM To: Abinaya Sandhiya Manikandan (GIS) <abinaya.manikandan@wipro.com> Cc: libguestfs@redhat.com Subject: Re: [Libguestfs] python 3 bindings on libguestfs ** This mail has been sent from an external source ** On Mon, Feb 05, 2018 at 11:58:45AM +0000, abinaya.manikandan@wipro.com wrote:
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]
As I said before, and as is confirmed by the message above, there is something very confused and broken about your Python installation. There's nothing much we can do about that, you need to fix it. Rich. -- Richard Jones, Virtualization Group, Red Hat https://clicktime.symantec.com/a/1/mcqaE-KrFSqv5MeP8TAzYHLGaR1iGyvYEBQsJ1e6Ess=?d=uD6ubJEzBec6H17OGiYulGMgcQX_h36Hew0td4ye7oPtVextduwrgX-V1JWNwRQM0skodl0mF2lbpZkaQGW-r7YPpfzW9cGxAwap1qbDudaTXsZ3HMrqvBQA_Pw3AxZ5Z-5dMK9GbGS46pKDK9DKadB3zpxPLSPE70zk9qGzhd2vzljn4j6qOS4BzKxGXKaWQTrvuSL6FnPaoRdjJqQkTQVlkogdj4Ekyy9GbSs9VhxGNZvIhaHi67TluoYk1iIhkYo3XwWjfMobYAMwrF6ez_hfC6TReIRQIby6cN-5YFO6ON8gQ19JgnHsjyODqkZ3i3WBwY7UFUvGwji-EbQPBlulCHCEgFpOMpor28_h-G9ScjphZCLVrxY%3D&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones Read my programming and virtualization blog: https://clicktime.symantec.com/a/1/qmLqJS97hP6khMMtbb1TX76oRwapK6QOWe4uV6HULOo=?d=uD6ubJEzBec6H17OGiYulGMgcQX_h36Hew0td4ye7oPtVextduwrgX-V1JWNwRQM0skodl0mF2lbpZkaQGW-r7YPpfzW9cGxAwap1qbDudaTXsZ3HMrqvBQA_Pw3AxZ5Z-5dMK9GbGS46pKDK9DKadB3zpxPLSPE70zk9qGzhd2vzljn4j6qOS4BzKxGXKaWQTrvuSL6FnPaoRdjJqQkTQVlkogdj4Ekyy9GbSs9VhxGNZvIhaHi67TluoYk1iIhkYo3XwWjfMobYAMwrF6ez_hfC6TReIRQIby6cN-5YFO6ON8gQ19JgnHsjyODqkZ3i3WBwY7UFUvGwji-EbQPBlulCHCEgFpOMpor28_h-G9ScjphZCLVrxY%3D&u=http%3A%2F%2Frwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. https://clicktime.symantec.com/a/1/7ip8IM8WWsnwzlDdD9Ewdn13sk0pQ-woixfvwIpWnEI=?d=uD6ubJEzBec6H17OGiYulGMgcQX_h36Hew0td4ye7oPtVextduwrgX-V1JWNwRQM0skodl0mF2lbpZkaQGW-r7YPpfzW9cGxAwap1qbDudaTXsZ3HMrqvBQA_Pw3AxZ5Z-5dMK9GbGS46pKDK9DKadB3zpxPLSPE70zk9qGzhd2vzljn4j6qOS4BzKxGXKaWQTrvuSL6FnPaoRdjJqQkTQVlkogdj4Ekyy9GbSs9VhxGNZvIhaHi67TluoYk1iIhkYo3XwWjfMobYAMwrF6ez_hfC6TReIRQIby6cN-5YFO6ON8gQ19JgnHsjyODqkZ3i3WBwY7UFUvGwji-EbQPBlulCHCEgFpOMpor28_h-G9ScjphZCLVrxY%3D&u=http%3A%2F%2Flibguestfs.org%2Fvirt-v2v ______________________________________________________________________ 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 ______________________________________________________________________
Hi, Adding libguestfs details: [root@server190 ~]$ guestfish --version guestfish 1.32.10 We have enable python3 bindings on libguestfs according to below guide: http://libguestfs.org/guestfs-building.1.html#building-python-2-and-python-3... Regards, Abinaya -----Original Message----- From: Abinaya Sandhiya Manikandan (GIS) Sent: Wednesday, January 24, 2018 2:43 PM To: libguestfs@redhat.com Subject: RE: python 3 bindings on libguestfs Hello, Please fine below details: [root@server190 ~]$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.5 (Santiago) We are trying to import guestfs in python according to manual page: http://libguestfs.org/guestfs-py I should be able to initialize guestfs with following command: import guestfs g = guestfs.GuestFS(python_return_dict=True) g.add_drive_opts("disk.img", format="raw", readonly=1) g.launch() But I could see below issue: [root@server190~]$ python Python 3.5.1 (default, Feb 18 2016, 07:20:42) [GCC 4.4.7 20120313 (Red Hat 4.4.7-16)] on linux Type "help", "copyright", "credits" or "license" for more information.
import guestfs g = guestfs.GuestFS(python_return_dict=True) Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'guestfs' has no attribute 'GuestFS'
Can you please suggest us how to fix this issue. Regards, Abinaya sandhiya -----Original Message----- From: Richard W.M. Jones [mailto:rjones@redhat.com] Sent: Tuesday, January 23, 2018 6:50 PM To: Abinaya Sandhiya Manikandan (GIS) <abinaya.manikandan@wipro.com> Cc: libguestfs@redhat.com Subject: Re: python 3 bindings on libguestfs ** This mail has been sent from an external source ** On Tue, Jan 23, 2018 at 12:48:48PM +0000, abinaya.manikandan@wipro.com wrote:
Hi Team,
As per our user request we are trying to enable python3 on libguestfs 1.32.10 as per steps which is mentioned in below URL.
https://clicktime.symantec.com/a/1/Ss0xsCzVNcdbeLhSFW9boZraqqnns4WC-tj nH8jnX9Y=?d=m-3gmKl4Uz2mYBtVcmkQBwLDbLRXzcIdsMi742-hNJ6iuSnXqqHO63oiv5 vWH7DVqDlNDnD0P_ILEARt7YquJBxYe-KXsROvS3B8vx6QWKgzvZOKxVSRP3IHlsnlgijk jd7dOx6vu1hTCv9RVrXdrt4_-GZuxKWGkwd39y_KRcNQ3RRx7IY6vrBZrowxmGHN5YYsl1 qx4O0ZGguNbCg6u9ZE95Yxgqelzly3Qvqq0w75__TRe4VY4CGM74mzEyK3ZPJl4gh8wgoD A6WiuqcJkw_Sqy7qtHsMzVjIzT44ElLp2UEuBX1FPKLNd4xakYBF1fQCTcUzuDCGPStbgv XFzjeAlAUjGZcDVIVv6w%3D%3D&u=https%3A%2F%2Fgithub.com%2Flibguestfs%2Fl ibguestfs%2Fblob%2Fmaster%2Fdocs%2Fguestfs-building.pod
But python-guestfs is not getting enabled. Please suggest me on this.
What Linux distro are you using? What commands did you try? What error(s) did you see? Rich. -- Richard Jones, Virtualization Group, Red Hat https://clicktime.symantec.com/a/1/l43u-vCppnFofQgkwDBZpXuPVp7ns2eSEHKwQni7Dpg=?d=m-3gmKl4Uz2mYBtVcmkQBwLDbLRXzcIdsMi742-hNJ6iuSnXqqHO63oiv5vWH7DVqDlNDnD0P_ILEARt7YquJBxYe-KXsROvS3B8vx6QWKgzvZOKxVSRP3IHlsnlgijkjd7dOx6vu1hTCv9RVrXdrt4_-GZuxKWGkwd39y_KRcNQ3RRx7IY6vrBZrowxmGHN5YYsl1qx4O0ZGguNbCg6u9ZE95Yxgqelzly3Qvqq0w75__TRe4VY4CGM74mzEyK3ZPJl4gh8wgoDA6WiuqcJkw_Sqy7qtHsMzVjIzT44ElLp2UEuBX1FPKLNd4xakYBF1fQCTcUzuDCGPStbgvXFzjeAlAUjGZcDVIVv6w%3D%3D&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones Read my programming and virtualization blog: https://clicktime.symantec.com/a/1/1pCrqFd96voDFrxf1hMdLos00qiOeyOsW8Tbo86ndBc=?d=m-3gmKl4Uz2mYBtVcmkQBwLDbLRXzcIdsMi742-hNJ6iuSnXqqHO63oiv5vWH7DVqDlNDnD0P_ILEARt7YquJBxYe-KXsROvS3B8vx6QWKgzvZOKxVSRP3IHlsnlgijkjd7dOx6vu1hTCv9RVrXdrt4_-GZuxKWGkwd39y_KRcNQ3RRx7IY6vrBZrowxmGHN5YYsl1qx4O0ZGguNbCg6u9ZE95Yxgqelzly3Qvqq0w75__TRe4VY4CGM74mzEyK3ZPJl4gh8wgoDA6WiuqcJkw_Sqy7qtHsMzVjIzT44ElLp2UEuBX1FPKLNd4xakYBF1fQCTcUzuDCGPStbgvXFzjeAlAUjGZcDVIVv6w%3D%3D&u=http%3A%2F%2Frwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. https://clicktime.symantec.com/a/1/X6NALrO-Hm8WIPBrRNSY6uL063_5aL5ffIYcwIGfQ70=?d=m-3gmKl4Uz2mYBtVcmkQBwLDbLRXzcIdsMi742-hNJ6iuSnXqqHO63oiv5vWH7DVqDlNDnD0P_ILEARt7YquJBxYe-KXsROvS3B8vx6QWKgzvZOKxVSRP3IHlsnlgijkjd7dOx6vu1hTCv9RVrXdrt4_-GZuxKWGkwd39y_KRcNQ3RRx7IY6vrBZrowxmGHN5YYsl1qx4O0ZGguNbCg6u9ZE95Yxgqelzly3Qvqq0w75__TRe4VY4CGM74mzEyK3ZPJl4gh8wgoDA6WiuqcJkw_Sqy7qtHsMzVjIzT44ElLp2UEuBX1FPKLNd4xakYBF1fQCTcUzuDCGPStbgvXFzjeAlAUjGZcDVIVv6w%3D%3D&u=http%3A%2F%2Fpeople.redhat.com%2F~rjones%2Fvirt-df%2F ______________________________________________________________________ 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 ______________________________________________________________________
participants (2)
-
abinaya.manikandan@wipro.com -
Richard W.M. Jones