madmaze / pyNmonAnalyzer

Python tool for reformatting and plotting/graphing NMON output
118 stars 42 forks source link

issues running on headless machines when GTK doesnt have an attached display #2

Closed matthiaslee closed 11 years ago

matthiaslee commented 11 years ago

/pyNmonAnalyzer.py -b -x node001.nmon Traceback (most recent call last): File "./pyNmonAnalyzer.py", line 24, in import pyNmonPlotter File "/root/pyNmonPlotter.py", line 20, in import matplotlib.pyplot as plt File "/usr/lib64/python2.6/site-packages/matplotlib/pyplot.py", line 78, in new_figure_manager, draw_if_interactive, show = pylab_setup() File "/usr/lib64/python2.6/site-packages/matplotlib/backends/init.py", line 25, in pylab_setup globals(),locals(),[backend_name]) File "/usr/lib64/python2.6/site-packages/matplotlib/backends/backend_gtkagg.py", line 10, in from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK, FigureCanvasGTK,\ File "/usr/lib64/python2.6/site-packages/matplotlib/backends/backend_gtk.py", line 8, in import gtk; gdk = gtk.gdk File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/init.py", line 64, in _init() File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/init.py", line 52, in _init _gtk.init_check() RuntimeError: could not open display