import gtk RuntimeError: could not open display

Petr Jakes petr at
Mon Sep 11 09:20:42 CEST 2006

my script is working well when I am running it from the terminal
window. While I am trying to start it as a Cron job, I am getting an
Error described bellow:
My configuration: Pentium III, Python 2.4.1, Fedora Core4

Thanks for your comments.
Petr Jakes

File "/root/eric/analyza_dat_TPC/", line 7, in ?
    from pylab import *
File "/usr/lib/python2.4/site-packages/", line 1, in ?
    from matplotlib.pylab import *
File "/usr/lib/python2.4/site-packages/matplotlib/", line 219,
in ?
    new_figure_manager, draw_if_interactive, show = pylab_setup()
line 23, in pylab_setup
line 10, in ?
    from backend_gtk import gtk, FigureManagerGTK, FigureCanvasGTK,\
line 7, in ?
    import gtk; gdk = gtk.gdk
File "/usr/lib/python2.4/", line 37, in ?

RuntimeError: could not open display

More information about the Python-list mailing list