Hi Chris,<br><br>I've seen this before when trying to build yt on my machine. If the matplotlib installer can't find tcl/tk on your machine, it won't be able to build Tkinter. You'll need to install <a href="http://www.tcl.tk/">tcl/tk</a> and re-run the yt install script. <br>
<br>You should be able to use yt with the 'Agg' backend even if you don't do this. You won't be able to view figures interactively, but you will be able to save .png files to look at later. This is probably the default backend, which is why moving the matplotlibrc file allowed you to start iyt. <br>
<br>Andrew Myers<br><br><div class="gmail_quote">On Mon, Dec 6, 2010 at 1:13 PM, Chris Malone <span dir="ltr"><<a href="mailto:chris.m.malone@gmail.com">chris.m.malone@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
A followup:<br><br>I tried the install script on a different machine and it installed fine.  I then went back to my original machine and mv'ed the ~/.matplotlib/matplotlibrc file out of the way and the ipython session started properly with iyt.<br>

<br>So something in my matplibrc file is causing the crash, but the only warning I received was that the numerix param was obsolete.  I tried just commenting out that particular line in the matplotlibrc file but I still recieve the same errors as before.  Any ideas what else in the matplotlibrc file could be causing the crash?<br>
<font color="#888888">
<br>Chris</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Mon, Dec 6, 2010 at 3:46 PM, Chris Malone <span dir="ltr"><<a href="mailto:chris.m.malone@gmail.com" target="_blank">chris.m.malone@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Jeff,<br><br>Thanks for the quick response.  Changing this in my ~/.matplotlib/matplotlibrc file results in:<div><br>$ iyt<br>/home/cmalone/install/yt/yt-x86_64/lib/python2.6/site-packages/matplotlib/rcsetup.py:117: UserWarning: rcParams key "numerix" is obsolete and has no effect;<br>


 please delete it from your matplotlibrc file<br>  warnings.warn('rcParams key "numerix" is obsolete and has no effect;\n'<br>Traceback (most recent call last):<br>  File "/home/cmalone/install/yt/yt-x86_64/bin/iyt", line 7, in <module><br>


    execfile(__file__)<br></div>  File "/home/cmalone/install/yt/yt-x86_64/src/yt-hg/scripts/iyt", line 32, in <module><br>    ip_shell = IPython.Shell.IPShellMatplotlib(user_ns=namespace)<br>  File "/home/cmalone/install/yt/yt-x86_64/lib/python2.6/site-packages/IPython/Shell.py", line 1106, in __init__<br>


    shell_class=MatplotlibShell)<br>  File "/home/cmalone/install/yt/yt-x86_64/lib/python2.6/site-packages/IPython/Shell.py", line 73, in __init__<br>    debug=debug,shell_class=shell_class)<br>  File "/home/cmalone/install/yt/yt-x86_64/lib/python2.6/site-packages/IPython/ipmaker.py", line 100, in make_IPython<br>


    embedded=embedded,**kw)<br>  File "/home/cmalone/install/yt/yt-x86_64/lib/python2.6/site-packages/IPython/Shell.py", line 627, in __init__<br>    user_ns,user_global_ns,b2 = self._matplotlib_config(name,user_ns,user_global_ns)<br>


  File "/home/cmalone/install/yt/yt-x86_64/lib/python2.6/site-packages/IPython/Shell.py", line 556, in _matplotlib_config<br>    import matplotlib.pylab as pylab<br>  File "/home/cmalone/install/yt/yt-x86_64/lib/python2.6/site-packages/matplotlib/pylab.py", line 259, in <module><br>


    from matplotlib.pyplot import *<br>  File "/home/cmalone/install/yt/yt-x86_64/lib/python2.6/site-packages/matplotlib/pyplot.py", line 95, in <module><br>    new_figure_manager, draw_if_interactive, show = pylab_setup()<br>


  File "/home/cmalone/install/yt/yt-x86_64/lib/python2.6/site-packages/matplotlib/backends/__init__.py", line 25, in pylab_setup<br>    globals(),locals(),[backend_name])<br>  File "/home/cmalone/install/yt/yt-x86_64/lib/python2.6/site-packages/matplotlib/backends/backend_tkagg.py", line 8, in <module><br>


    import Tkinter as Tk, FileDialog<br>  File "/home/cmalone/install/yt/yt-x86_64/lib/python2.6/lib-tk/Tkinter.py", line 39, in <module><br>    import _tkinter # If this fails your Python may not be configured for Tk<br>


ImportError: No module named _tkinter<br><br>The install script that I attached before listed "no" for the Tkinter, wxPython and Gtk+ OPTIONAL BACKEND DEPENDENCIES when trying to build matplotlib.<br><font color="#888888"><br>

Chris</font><div><div></div><div><br>
<br><br><div class="gmail_quote">On Mon, Dec 6, 2010 at 3:17 PM, j s oishi <span dir="ltr"><<a href="mailto:jsoishi@gmail.com" target="_blank">jsoishi@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


Hi Chris,<br>
<br>
Could you try switching the backend in your .matplotlibrc file to<br>
TkAgg? yt may not install all the GUI backends matplotlib can support,<br>
but it should work with TkAgg straight out of the box.<br>
<br>
thanks,<br>
<br>
jeff<br>
<div><div></div><div><br>
On Mon, Dec 6, 2010 at 11:52 AM, Chris Malone <<a href="mailto:chris.m.malone@gmail.com" target="_blank">chris.m.malone@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> Im running on a Fedora 9, 64-bit local desktop:<br>
><br>
> $ uname -r 2.6.27.25-78.2.56.fc9.x86_64<br>
><br>
> I used the install script for both the current stable release as well as the<br>
> development release.  Both scripts completed without any errors.  I wanted<br>
> to try the Quick Start instructions to play with the iyt interface.  Below<br>
> is what happens for both cases (after prepending the appropriate environment<br>
> variables):<br>
><br>
> $ iyt<br>
> /home/cmalone/install/yt/yt-x86_64/lib/python2.6/site-packages/matplotlib/rcsetup.py:117:<br>
> UserWarning: rcParams key "numerix" is obsolete and has no effect;<br>
>  please delete it from your matplotlibrc file<br>
>   warnings.warn('rcParams key "numerix" is obsolete and has no effect;\n'<br>
> Traceback (most recent call last):<br>
>   File "/home/cmalone/install/yt/yt-x86_64/bin/iyt", line 7, in <module><br>
>     execfile(__file__)<br>
>   File "/home/cmalone/install/yt/yt-x86_64/src/yt-hg/scripts/iyt", line 30,<br>
> in <module><br>
>     ip_shell = ipbackends[bend](user_ns=namespace)<br>
>   File<br>
> "/home/cmalone/install/yt/yt-x86_64/lib/python2.6/site-packages/IPython/Shell.py",<br>
> line 1116, in __init__<br>
>     shell_class=MatplotlibMTShell)<br>
>   File<br>
> "/home/cmalone/install/yt/yt-x86_64/lib/python2.6/site-packages/IPython/Shell.py",<br>
> line 775, in __init__<br>
>     import gtk<br>
> ImportError: No module named gtk<br>
><br>
><br>
> It therefore appears (and see example install log below) that pygtk was not<br>
> installed or detected.  Is this working as intended, such that the install<br>
> script doesn't include the GUI backend information?  Or is is something on<br>
> my end that is not working properly?  The install script mentions if you<br>
> have problems with wxPython you should set INST_WXPYTHON=0, but I don't see<br>
> anything specific about Gtk and I didn't have any wxPython issues other than<br>
> the installer not finding it when trying to install matplotlib (again see<br>
> install log).<br>
><br>
> In other words, it appears that the install script isn't completely creating<br>
> a "fully isolated Python installation with the dependencies you need to run<br>
> yt," unless there are some options I need to pass to matplotlib via the<br>
> MPL_SUPP_* flags?<br>
><br>
> If it helps at all, I do have a Python 2.5.1 global installation, which has<br>
> access to matplotlib, NumPy, wxPython, Tkinter, and Gtk.  Would it be easier<br>
> to install by hand and just point to the appropriate locations of these<br>
> libraries?  If so, which versions of HDF5, NumPy, Matplotlib and wxPython<br>
> are required? (only versions of Python are specified at<br>
> <a href="http://yt.enzotools.org/doc/installation.html#installing-by-hand" target="_blank">http://yt.enzotools.org/doc/installation.html#installing-by-hand</a><br>
><br>
><br>
> -------------- yt_install.log attached ----------------<br>
><br>
> Chris<br>
><br>
</div></div>> _______________________________________________<br>
> yt-users mailing list<br>
> <a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
> <a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
><br>
><br>
_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
</blockquote></div><br>
</div></div></blockquote></div><br>
</div></div><br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br>