[yt-users] Installation script issue with pygtk

j s oishi jsoishi at gmail.com
Mon Dec 6 12:17:03 PST 2010


Hi Chris,

Could you try switching the backend in your .matplotlibrc file to
TkAgg? yt may not install all the GUI backends matplotlib can support,
but it should work with TkAgg straight out of the box.

thanks,

jeff

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



More information about the yt-users mailing list