-
-
Save holms/8324973 to your computer and use it in GitHub Desktop.
git clone git://git.fedorahosted.org/virt-manager.git | |
cd virt-manager | |
sudo port -v install intltool py27-pygtk | |
sudo python setup.py install | |
I fixed that by doing:
portuninstall -f py27-gobject3 port clean py27-gobject3 port install -s py27-gobject3
now for the next error....
virt-manager jhoeve$ virt-manager Traceback (most recent call last): File "/usr/share/virt-manager/virt-manager", line 30, in from gi.repository import LibvirtGLib ImportError: cannot import name LibvirtGLib
I am experiencing the same problem, and got as far as you did (though I am using brew). libvirt-glib is separate library and it looks like the version of of gi.repository that you and I both have does not support it. I haven't figured out much more than that.
I found from another place that you need to tell gobject-inspector (that is the gi, part of gi.repository) where to find its type libs by using an environment variable GI_TYPELIB_PATH. In my case that would have been:
export GI_TYPELIB_PATH=/usr/local/lib/girepository-1.0
The problem was the particular gi typelib in question, LibvirtGlib did not exist. I could not find a brew package for this library so I built it myself pulling it from here:
ftp://libvirt.org/libvirt/glib/
Sadly after figuring out how to make it build (I had to patch the make files to remove an unsupported link option), it did not seem to product the typelib library, so I'm stuck again.
OK, there is an --enable-introspection on the configure for libvirt-glib, however it does not detect the gobject-introspection library (which it is doing via a package tool). Anyway I bet if I could ever git this LibvirtGlib.typelib file built virt-manager would run.
There are also a couple of other dependencies that need to be satisfied after libvirt-glib. I managed to get virt-manager installed and running using homebrew, albeit it is missing a few features. I've created a homebrew tap for others to check out and experiment with:
https://github.com/jeffreywildman/homebrew-virt-manager
Я ничего не понял)))
Thanks for the brew version.
How can one install libvirtd and qemu-kvm required to launch vm with virt-manager?
Repo was moved to https://github.com/virt-manager/virt-manager
Doesn't work in OSX 10.9
Even after symlinking
/usr/bin/pythonw2.7
to/usr/bin/python2
and installingpy27-gobject
(andpy27-gobject3
), I still get the following error: