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.py
 in <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__.pyc
 in 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.py
 in <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.py
 in <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