import gtk RuntimeError: could not open display

P

Petr Jakes

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,526
Members
44,997
Latest member
mileyka

Latest Threads

Top