Package Details: python-libguestfs 1.38.4-1

Git Clone URL: https://aur.archlinux.org/python-libguestfs.git (read-only)
Package Base: python-libguestfs
Description: Python bindings for libguestfs
Upstream URL: http://libguestfs.org/
Licenses: LGPL3
Submitter: sanerb
Maintainer: sanerb
Last Packager: sanerb
Votes: 0
Popularity: 0.000000
First Submitted: 2018-02-28 05:27
Last Updated: 2018-08-14 18:10

Latest Comments

sanerb commented on 2018-12-23 06:51

as mentioned in https://bugzilla.redhat.com/show_bug.cgi?id=1627964 this seems to be a bug that upstream does not think is a bug. we're sort of waiting on that bug report. it may also be related to https://aur.archlinux.org/packages/libguestfs/ instead, as i build per upstream docs.

python 2.x bindings should work fine for now.

this indicates it is indeed a libguestfs issue: https://github.com/virt-manager/virt-bootstrap/issues/5#issuecomment-433753348

recommend you comment on libguestfs.

EDIT:

confirmed. see comments here:

https://bugzilla.redhat.com/show_bug.cgi?id=1627964

and my comment here:

https://aur.archlinux.org/packages/libguestfs/#comment-675276

rwmjones commented on 2018-12-22 20:56

The function is:

PyObject *
guestfs_int_py_fromstringsize (const char *str, size_t size)
{
#ifdef HAVE_PYSTRING_ASSTRING
  return PyString_FromStringAndSize (str, size);
#else
  return PyUnicode_FromStringAndSize (str, size);
#endif
}

I'm going to need to see the full ./configure output to determine why HAVE_PYSTRING_ASSTRING is defined but the function doesn't actually exist.

It might also be that you're mixing Python 2 & 3 extensions.

MichaelChou commented on 2018-09-13 11:11

I got the following error:

Python 3.7.0 (default, Jul 15 2018, 10:44:58) 
[GCC 8.1.1 20180531] 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 "/usr/lib/python3.7/site-packages/guestfs.py", line 73, in <module>
    import libguestfsmod
ImportError: /usr/lib/python3.7/site-packages/libguestfsmod.cpython-37m-x86_64-linux-gnu.so: undefined symbol: PyString_FromStringAndSize