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 ______________________________________________________________________