python - ImportError: No module named gi.repository Mac OS X -
i installing virt-manager0.10.0 on mac os x
first installed python,libvirt, gtk+3, pygtk, , other dependencies homebrew
but when run virt-manager got error
from gi.repository import gobject importerror: no module named gi.repository
when run import in python command line same error.but there no error when try import gtk
i think problem homebrew pygtk version doesn't use gtk+3 , uses gtk2 , can see here gi.repository windows gtk+3 use syntax.
pygtk gtk 2 only. if want python bindings gtk 3, need install pygobject. see https://stackoverflow.com/a/9672426/518853
Comments
Post a Comment