I followed the examples 1 and 2 in http://libguestfs.org/guestfs-python.3.html

I create disk img by example 1 and use example 2 to inspect the img.

I got error in the line:
g.inspect_os() : no operating systems found.

how could fix it? any examples to create os in python?