Hi, It is correct that the machine I'm building on does not have X11 running, though it is installed. I can, however, enter python and import gtk without error.
[EMAIL PROTECTED] examples]# python Python 2.4.1 (#1, May 16 2005, 15:15:14) [GCC 4.0.0 20050512 (Red Hat 4.0.0-5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import gtk >>> [EMAIL PROTECTED] examples]# Adam On Tue, 21 Nov 2006, John Hunter wrote: >>>>>> "Adam" == Adam Miller <[EMAIL PROTECTED]> writes: > > Adam> Hi, I'm having a bit of troulbe getting pylab.show() to > Adam> display a figure drawn with matplotlib. > > Adam> The Test: > > Adam> python import pylab pylab.plot([0,0],[1,1]) pylab.show() > > Adam> I do not recieve an error, though I also do not see the > Adam> graph. > > Adam> FC4 x86_64 install > > Adam> python-matplotlib-debuginfo-0.87.7-2 > Adam> python-matplotlib-0.87.7-2 > > Adam> gtk2-2.6.10-2.fc4.4.i386 gtk2-2.6.10-2.fc4.4.x86_64 > Adam> gtk2-devel-2.6.10-2.fc4.4.i386 > Adam> gtk2-devel-2.6.10-2.fc4.4.x86_64 > > Adam> When I build the rpms from the srpm I see the following, > Adam> though the build continues. > > Adam> pygtk present but import failed pygtk present but import > Adam> failed > > > matplotlib build has this annoying problem that it requires an X11 > environment to build the GTK runtime code. Often if you are logged in > as su you may not have access to the X display. You need to build in > an environment in which you can do: > >> python >>>> import gtk > > Then mpl should build the gtk backend properly. What you are > currently seeing is that the GTK build is failing which is why you are > getting the runtime error. > > JDH > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users