I'm replying to my first post.  Rule 1:  do a search first to see if
this problem is mentioned here before.

I found a post by T. Davis on Dec 10 with the same problem as I have
(see below or my first message).  But I do not understand his
"solution".  He seems to have already have Python 2.6 and Tcl/Tk stuff
installed.  I thought SAGE was totally self contained?  Puzzling.

I do have my own Python installed, but it is version 2.4.  I checked
and the matplotlib, numpy, and scipy imported in SAGE are not my
versions and come from the SAGE installation (as I would have
thought).

Here is T. Davis' post:

I tried a clean install of 'matplotlib' within a clean, stand-alone
Python 2.6 installation.  I did this completely outside 'sage'.  I
had
exactly the same issue with TkAgg.  The problem is that my system has
Tcl and Tk installed in a non-standard place. The python installation
scripts for 'matplotlib' couldn't find them, and looked in a hard-
coded location as a last act of desperation.  I went into one of the
setup python scripts for 'matplotlib' and changed the two lines which
had hard-coded locations for Tcl and Tk, respectively.  Once I did
that, TkAgg built cleanly and my 'matplotlib' build/install went
fine.  I think the same thing would probably work inside sage if one
is willing to do some hand editing.

On Dec 25, 12:11 pm, LouP <pec...@anvil.nrl.navy.mil> wrote:
> I just installed SAGE on my Mac Book Pro (OS X 10.4, Intel chip).  The
> install seemed to go well, but when I try to import pylab I get the
> following error:
>
> /Applications/sage/local/lib/python2.6/site-packages/matplotlib/
> backends/tkagg.py in <module>()
>       2 import Tkinter as Tk
>       3
>       4 def blit(photoimage, aggimage, bbox=None, colormode=1):
>       5     tk = photoimage.tk
>       6
>
> ImportError: No module named _tkagg
>
> Does this mean I have to find the backend _tkagg and install it or
> should it be there in the SAGE package?
>
> So far numpy, matplotlib, and scipy import properly as best I can
> tell.
>
> Thanks for any help.
>
> -- Lou Pecora

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to