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(a)wipro.com>
Cc: libguestfs(a)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/WGcqPOLaJikB8IRxVRgKdjKHzb5Tz7RycWNOg9...
Read my programming and virtualization blog:
https://clicktime.symantec.com/a/1/igBHFjQWrXVj2qh7NysXNal_cCO-dH_VvYcnhB...
virt-builder quickly builds VMs from scratch
https://clicktime.symantec.com/a/1/USAd2BfXD9qoI_kotwGQFTW5NIh4is62Em-IyN...
______________________________________________________________________
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
______________________________________________________________________