root@ ruby /var/abs/local # python
Python 2.4.3 (#1, May 2 2006, 18:09:44)
[GCC 4.0.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gtk
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/site-packages/dbus/__init__.py", line 45, in ?
RuntimeError: could not open display
>>>
KeyboardInterrupt
>>> quit
'Use Ctrl-D (i.e. EOF) to exit.'
>>>
root@ ruby /var/abs/local # python
Python 2.4.3 (#1, May 2 2006, 18:09:44)
[GCC 4.0.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import gnome.canvas
__main__:1: DeprecationWarning: Module gnome.canvas is deprecated; please import gnomecanvas instead
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/site-packages/gtk-2.0/gnome/canvas.py", line 7, in ?
from gnomecanvas import *
ImportError: could not import gtk._gtk
>>> import gtk
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.4/site-packages/dbus/__init__.py", line 45, in ?
RuntimeError: could not open display
>>> import gnomecanvas
Traceback (most recent call last):
File "<stdin>", line 1, in ?
ImportError: could not import gtk._gtk
>>>