On Wednesday, May 28, 2014 10:03:32 AM UTC-7, Jim wrote:
>
> On May 28, 2014, at 5:11 AM, kcrisman <[email protected] <javascript:>>
> wrote:
>
> In fact, one test you could do is to test that one file. You'd have to cd
> into the actual Sage-6.2-... directory and then do
>
> ./sage -t src/sage/plot/plot.py
>
>
> Fails the test (same error: cannot import name _tkagg):
>
> Jims-computer:sage jim$ ./sage -t src/sage/plot/plot.py
> init.sage does not exist ... creating
> Running doctests with ID 2014-05-28-09-13-04-3aafce8a.
> Doctesting 1 file.
> sage -t src/sage/plot/plot.py
> **********************************************************************
> File "src/sage/plot/plot.py", line 262, in sage.plot.plot
> Failed example:
> from pylab import *
> … (skipping)
> from matplotlib.backends import _tkagg
> ImportError: cannot import name _tkagg
> … (skipping much more)
> 3 items had failures:
> 11 of 77 in sage.plot.plot
> 7 of 12 in sage.plot.plot.SelectiveFormatter
> 7 of 12 in
> sage.plot.plot.SelectiveFormatter.None._SelectiveFormatterClass.__init__
> [374 tests, 25 failures, 93.39 s]
> ----------------------------------------------------------------------
> sage -t src/sage/plot/plot.py # 25 doctests failed
> ----------------------------------------------------------------------
> Total time for all tests: 93.8 seconds
> cpu time: 70.3 seconds
> cumulative wall time: 93.4 seconds
>
> I captured the entire output into a log file that I could send, if that
> would help.
>
> Still the question remains: does anyone else experience the failure on Mac
> OSX 10.9 when you do:
>
> sage: import matplotlib.pyplot as plt
>
> Again, thanks,
> Jim
>
>
Try this: start a new Sage session and do
sage: import matplotlib
sage: matplotlib.get_backend()
What does it return? If it returns 'TkAgg', try
sage: matplotlib.use('agg')
sage: import matplotlib.pyplot as plt
Let us know what happens.
--
John
--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.