Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] problems with make graph-build on x86_64
@ 2014-06-12 15:29 Dallas Clement
  2014-06-12 15:35 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Dallas Clement @ 2014-06-12 15:29 UTC (permalink / raw)
  To: buildroot

Hi,

I tried a make-graph build for the first time on Debian 7.2 / 32 bit the
other day.  It worked flawlessly.  Today, I tried it on RHEL 6.4 headless
server / x86_64.  This time, I got errors I was not able to resolve.

bash-4.1$ make graph-build
./support/scripts/graph-build-time --type=histogram --order=name
--input=output/build/build-time.log
--output=output/graphs/build.hist-name.pdf
Traceback (most recent call last):
  File "./support/scripts/graph-build-time", line 55, in <module>
    import matplotlib.pyplot as plt
  File "/usr/lib64/python2.6/site-packages/matplotlib/pyplot.py", line 78,
in <module>
    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 <module>
    from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK,
FigureCanvasGTK,\
  File
"/usr/lib64/python2.6/site-packages/matplotlib/backends/backend_gtk.py",
line 8, in <module>
    import gtk; gdk = gtk.gdk
  File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line
64, in <module>
    _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
make: *** [graph-build] Error 1

Has anyone experienced this same problem?  I'm not sure if this is a x86_64
problem or not having X11 installed.

Thanks,

Dallas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140612/fa9e135b/attachment.html>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] problems with make graph-build on x86_64
  2014-06-12 15:29 [Buildroot] problems with make graph-build on x86_64 Dallas Clement
@ 2014-06-12 15:35 ` Thomas Petazzoni
  2014-06-12 15:48   ` Dallas Clement
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2014-06-12 15:35 UTC (permalink / raw)
  To: buildroot

Dear Dallas Clement,

On Thu, 12 Jun 2014 10:29:41 -0500, Dallas Clement wrote:

> I tried a make-graph build for the first time on Debian 7.2 / 32 bit the
> other day.  It worked flawlessly.  Today, I tried it on RHEL 6.4 headless
> server / x86_64.  This time, I got errors I was not able to resolve.
> 
> bash-4.1$ make graph-build
> ./support/scripts/graph-build-time --type=histogram --order=name
> --input=output/build/build-time.log
> --output=output/graphs/build.hist-name.pdf
> Traceback (most recent call last):
>   File "./support/scripts/graph-build-time", line 55, in <module>
>     import matplotlib.pyplot as plt
>   File "/usr/lib64/python2.6/site-packages/matplotlib/pyplot.py", line 78,
> in <module>
>     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 <module>
>     from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK,
> FigureCanvasGTK,\
>   File
> "/usr/lib64/python2.6/site-packages/matplotlib/backends/backend_gtk.py",
> line 8, in <module>
>     import gtk; gdk = gtk.gdk
>   File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line
> 64, in <module>
>     _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
> make: *** [graph-build] Error 1

What version of matplotlib do you have? Seems like it's not using the
PDF or PNG backend, but the Gtk backend, which tries to open a
X11 window.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] problems with make graph-build on x86_64
  2014-06-12 15:35 ` Thomas Petazzoni
@ 2014-06-12 15:48   ` Dallas Clement
  2014-06-12 16:18     ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Dallas Clement @ 2014-06-12 15:48 UTC (permalink / raw)
  To: buildroot

On Thu, Jun 12, 2014 at 10:35 AM, Thomas Petazzoni <
thomas.petazzoni@free-electrons.com> wrote:

> Dear Dallas Clement,
>
> On Thu, 12 Jun 2014 10:29:41 -0500, Dallas Clement wrote:
>
> > I tried a make-graph build for the first time on Debian 7.2 / 32 bit the
> > other day.  It worked flawlessly.  Today, I tried it on RHEL 6.4 headless
> > server / x86_64.  This time, I got errors I was not able to resolve.
> >
> > bash-4.1$ make graph-build
> > ./support/scripts/graph-build-time --type=histogram --order=name
> > --input=output/build/build-time.log
> > --output=output/graphs/build.hist-name.pdf
> > Traceback (most recent call last):
> >   File "./support/scripts/graph-build-time", line 55, in <module>
> >     import matplotlib.pyplot as plt
> >   File "/usr/lib64/python2.6/site-packages/matplotlib/pyplot.py", line
> 78,
> > in <module>
> >     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 <module>
> >     from matplotlib.backends.backend_gtk import gtk, FigureManagerGTK,
> > FigureCanvasGTK,\
> >   File
> > "/usr/lib64/python2.6/site-packages/matplotlib/backends/backend_gtk.py",
> > line 8, in <module>
> >     import gtk; gdk = gtk.gdk
> >   File "/usr/lib64/python2.6/site-packages/gtk-2.0/gtk/__init__.py", line
> > 64, in <module>
> >     _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
> > make: *** [graph-build] Error 1
>
> What version of matplotlib do you have? Seems like it's not using the
> PDF or PNG backend, but the Gtk backend, which tries to open a
> X11 window.
>
> Best regards,
>
> Thomas
> --
> Thomas Petazzoni, CTO, Free Electrons
> Embedded Linux, Kernel and Android engineering
> http://free-electrons.com
>

> What version of matplotlib do you have?

python-matplotlib.x86_64        0.99.1.2-1.el6
@anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
python-matplotlib-tk.x86_64     0.99.1.2-1.el6
rhel-6-server-optional-rpms
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20140612/058a6585/attachment.html>

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] problems with make graph-build on x86_64
  2014-06-12 15:48   ` Dallas Clement
@ 2014-06-12 16:18     ` Thomas Petazzoni
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2014-06-12 16:18 UTC (permalink / raw)
  To: buildroot

Dear Dallas Clement,

On Thu, 12 Jun 2014 10:48:37 -0500, Dallas Clement wrote:

> > What version of matplotlib do you have?
> 
> python-matplotlib.x86_64        0.99.1.2-1.el6
> @anaconda-RedHatEnterpriseLinux-201301301459.x86_64/6.4
> python-matplotlib-tk.x86_64     0.99.1.2-1.el6
> rhel-6-server-optional-rpms

Might be a too old version. I would suggest you to create a simple
example of a matplotlib application on this system, and see if you're
able to generate a PDF/PNG graph. If yes, give us your source code so
that we can compare with the more recent versions of matplotlib and see
if a backward compatible solution is possible.

Thanks,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-12 16:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-12 15:29 [Buildroot] problems with make graph-build on x86_64 Dallas Clement
2014-06-12 15:35 ` Thomas Petazzoni
2014-06-12 15:48   ` Dallas Clement
2014-06-12 16:18     ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox