'could not open display' error when import gtk - how fix?

seberino at spawar.navy.mil seberino at spawar.navy.mil
Tue Feb 14 20:40:32 EST 2006


Why can't I import gtk (pygtk) module?  It appears gtk module want X
perms?


>>> import gtk
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py", line
37, in ?    from _gtk import *
RuntimeError: could not open display




More information about the Python-list mailing list