import gtk RuntimeError: could not open display

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


Hi
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/htmlgenerator.py", line 7, in ?
    from pylab import *
File "/usr/lib/python2.4/site-packages/pylab.py", line 1, in ?
    from matplotlib.pylab import *
File "/usr/lib/python2.4/site-packages/matplotlib/pylab.py", line 219,
in ?
    new_figure_manager, draw_if_interactive, show = pylab_setup()
File
"/usr/lib/python2.4/site-packages/matplotlib/backends/__init__.py",
line 23, in pylab_setup
    globals(),locals(),[backend_name])
File
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_gtkagg.py",
line 10, in ?
    from backend_gtk import gtk, FigureManagerGTK, FigureCanvasGTK,\
File
"/usr/lib/python2.4/site-packages/matplotlib/backends/backend_gtk.py",
line 7, in ?
    import gtk; gdk = gtk.gdk
File "/usr/lib/python2.4/__init__.py", line 37, in ?

RuntimeError: could not open display




More information about the Python-list mailing list