471,351 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,351 software developers and data experts.

import gtk RuntimeError: could not open display

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

Sep 11 '06 #1
0 2207

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

17 posts views Thread by Jacek Generowicz | last post: by
6 posts views Thread by [Yosi] | last post: by
6 posts views Thread by jodawi | last post: by
2 posts views Thread by alex.hatzisavas | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.