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 ______________________________________________________________________