<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 12, 2014 at 10:35 AM, Thomas Petazzoni <span dir="ltr"><<a href="mailto:thomas.petazzoni@free-electrons.com" target="_blank">thomas.petazzoni@free-electrons.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Dear Dallas Clement,<br>
<div><div class="h5"><br>
On Thu, 12 Jun 2014 10:29:41 -0500, Dallas Clement wrote:<br>
<br>
> I tried a make-graph build for the first time on Debian 7.2 / 32 bit the<br>
> other day. It worked flawlessly. Today, I tried it on RHEL 6.4 headless<br>
> server / x86_64. This time, I got errors I was not able to resolve.<br>
><br>
> bash-4.1$ make graph-build<br>
> ./support/scripts/graph-build-time --type=histogram --order=name<br>
> --input=output/build/build-time.log<br>
> --output=output/graphs/build.hist-name.pdf<br>
> Traceback (most recent call last):<br>
> File "./support/scripts/graph-build-time", line 55, in <module><br>
> import matplotlib.pyplot as plt<br>
> File "/usr/lib64/python2.6/site-packages/matplotlib/pyplot.py", line 78,<br>
> in <module><br>
> new_figure_manager, draw_if_interactive, show = pylab_setup()<br>
> File<br>
> "/usr/lib64/python2.6/site-packages/matplotlib/backends/__init__.py", line<br>
> 25, in pylab_setup<br>
> globals(),locals(),[backend_name])<br>
> File<br>
> "/usr/lib64/python2.6/site-packages/matplotlib/backends/backend_gtkagg.py",<br>
> line 10, in <module><br>
> from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK,<br>
> FigureCanvasGTK,\<br>
> File<br>
> "/usr/lib64/python2.6/site-packages/matplotlib/backends/backend_gtk.py",<br>
> line 8, in <module><br>
> import gtk; gdk = gtk.gdk<br>
> File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line<br>
> 64, in <module><br>
> _init()<br>
> File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line<br>
> 52, in _init<br>
> _gtk.init_check()<br>
> RuntimeError: could not open display<br>
> make: *** [graph-build] Error 1<br>
<br>
</div></div>What version of matplotlib do you have? Seems like it's not using the<br>
PDF or PNG backend, but the Gtk backend, which tries to open a<br>
X11 window.<br>
<br>
Best regards,<br>
<br>
Thomas<br>
<span class=""><font color="#888888">--<br>
Thomas Petazzoni, CTO, Free Electrons<br>
Embedded Linux, Kernel and Android engineering<br>
<a href="http://free-electrons.com" target="_blank">http://free-electrons.com</a><br>
</font></span></blockquote></div><br>> What version of matplotlib do you have?<br><br>python-matplotlib.x86_64 0.99.1.2-1.el6 @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4<br>python-matplotlib-tk.x86_64 0.99.1.2-1.el6 rhel-6-server-optional-rpms<br>
<br></div></div>