This question already has an answer here:

I am trying to port Python 2 to Python 3, but I am having trouble importing Glade:

import gtk.glade 
ImportError: cannot import name glade, introspection typelib not found

Any idea how to fix this?

marked as duplicate by muru, Eric Carvalho, Ravan, Charles Green, Luís de Sousa Nov 16 '15 at 10:52

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Try replacing that import line with this: from gi.repository import gtk.glade – David Nov 13 '15 at 21:15
  • I tired : from gi.repository import gtk.glad getting SyntaxError: invalid syntax from gi.repository import Gtk.glad getting SyntaxError: invalid syntax – mrudula Nov 13 '15 at 21:16
  • Are you doing this from command line? – David Nov 13 '15 at 21:17
  • No. In source code script.py file – mrudula Nov 13 '15 at 21:18
  • hm okay Im not sure, never seen a SyntaxError with from before – David Nov 13 '15 at 21:19

Browse other questions tagged or ask your own question.