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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -