Hi!  Is it possible that some locations changed in your installation?  Here 
is an old post that has a very similar error:
https://groups.google.com/forum/#!topic/sage-support/fV2VNL-5UuY

Otherwise, perhaps the problem may be the one described here:
http://ask.sagemath.org/question/626/sage-python-import-matplotlib-no-module-named
in which case the binary was probably compiled without tkagg support, which 
is normal.  You could Compile Sage from scratch, perhaps could redo 
matplotlib.  See 
also http://ask.sagemath.org/question/3962/gui-backend-matplotlib-in-sage

Now, we did upgrade matplotlib in http://trac.sagemath.org/ticket/14993 so 
I wouldn't be surprised if that did cause some problems (there were several 
tickets fixed) but it is a little surprising that this is the one, since we 
have this same line in the documentation at 
http://www.sagemath.org/doc/reference/plotting/sage/plot/plot.html#sage.plot.plot.SelectiveFormatter

I hope that ONE of these things helps, but I'm sorry if not - in that 
event, any other platform details would be very helpful for us.

On Tuesday, May 27, 2014 7:04:08 AM UTC-4, Jim wrote:
>
> Hello,
>
> A script that I wrote in April under Sage 6.1.1 stopped working; 
> attempting to import matplotlib.pyplot produces an error:
>
> Jims-computer:HW2 jim$ sage
> ┌────────────────────────────────────────────────────────────────────┐
> │ Sage Version 6.2, Release Date: 2014-05-06                         │
> │ Type "notebook()" for the browser-based notebook interface.        │
> │ Type "help()" for help.                                            │
> └────────────────────────────────────────────────────────────────────┘
> sage: import matplotlib.pyplot as mpl
> ---------------------------------------------------------------------------
> ImportError                               Traceback (most recent call 
> last)
> <ipython-input-1-0309ea03fddd> in <module>()
> ----> 1 import matplotlib.pyplot as mpl
>
>
> /Applications/sage/local/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.9-x86_64.egg/matplotlib/pyplot.pyin
>  
> <module>()
> *     96* 
> *     97* from matplotlib.backends import pylab_setup
> ---> 98 _backend_mod, new_figure_manager, draw_if_interactive, _show 
> =pylab_setup
> ()
> *     99* 
> *    100* 
>
>
> /Applications/sage/local/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.9-x86_64.egg/matplotlib/backends/__init__.pycin
>  
> pylab_setup()
> *     26*     # imports. 0 means only perform absolute imports.
> *     27*     backend_mod = __import__(backend_name,
> ---> 28                              globals(),locals(),[backend_name],0)
> *     29* 
> *     30*     # Things we pull in from all backends
>
>
> /Applications/sage/local/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.9-x86_64.egg/matplotlib/backends/backend_tkagg.pyin
>  
> <module>()
> *      9* 
> *     10* # Paint image to Tk photo blitter extension
> ---> 11 import matplotlib.backends.tkagg as tkagg
> *     12* 
> *     13* from matplotlib.backends.backend_agg import FigureCanvasAgg
>
>
> /Applications/sage/local/lib/python2.7/site-packages/matplotlib-1.3.1-py2.7-macosx-10.9-x86_64.egg/matplotlib/backends/tkagg.pyin
>  
> <module>()
> *      1* from __future__ import print_function
> ----> 2 from matplotlib.backends import _tkagg
> *      3* import Tkinter as Tk
> *      4* 
> *      5* def blit(photoimage, aggimage, bbox=None, colormode=1):
>
> ImportError: cannot import name _tkagg
> sage: 
>
> Downloaded and installed the Sage 6.2 binary on OSX 10.9.3.
>
> Seems like a regression error, but I don’t know how to fix it…
>
> Please help.
> Thank you,
> Jim Clark
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to