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/7021a234aa1496ca552ec82ff73747a302a1b80b/m4/guestfs-python.m4#L28
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/