#6235: set MPLCONFIGDIR environment variable when Sage starts up
--------------------------+-------------------------------------------------
 Reporter:  was           |         Owner:  cwitty        
     Type:  defect        |        Status:  closed        
 Priority:  blocker       |     Milestone:  sage-4.6      
Component:  misc          |    Resolution:  fixed         
 Keywords:                |        Author:  John Palmieri 
 Upstream:  N/A           |      Reviewer:  Leif Leonhardy
   Merged:  sage-4.6.rc0  |   Work_issues:                
--------------------------+-------------------------------------------------

Comment(by mpatel):

 Justin Walker [http://groups.google.com/group/sage-
 release/browse_thread/thread/daa80febef383120/328ebbaffc728a92#328ebbaffc728a92
 reports] a doctest failure in `doc/en/constructions/plotting.rst`:
 {{{
 #!python
 sage -t  -long -force_lib devel/sage/doc/en/constructions/plotting.rst
 **********************************************************************
 File "/Users/Sage/sage-4.6.alpha0/devel/sage-
 main/doc/en/constructions/plotting.rst", line 42:
     sage: f.plot()
 Exception raised:
     Traceback (most recent call last):
       File "/Users/Sage/sage-4.6.alpha0/local/bin/ncadoctest.py", line
 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File "/Users/Sage/sage-4.6.alpha0/local/bin/sagedoctest.py", line
 38, in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File "/Users/Sage/sage-4.6.alpha0/local/bin/ncadoctest.py", line
 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_0[7]>", line 1, in <module>
         f.plot()###line 42:
     sage: f.plot()
       File "/Users/Sage/sage-4.6.alpha0/local/lib/python/site-
 packages/sage/misc/displayhook.py", line 174, in displayhook
         print_obj(sys.stdout, obj)
       File "/Users/Sage/sage-4.6.alpha0/local/lib/python/site-
 packages/sage/misc/displayhook.py", line 142, in print_obj
         print >>out_stream, `obj`
       File "sage_object.pyx", line 101, in
 sage.structure.sage_object.SageObject.__repr__
 (sage/structure/sage_object.c:1341)
       File "/Users/Sage/sage-4.6.alpha0/local/lib/python/site-
 packages/sage/plot/plot.py", line 1080, in _repr_
         self.show()
       File "/Users/Sage/sage-4.6.alpha0/local/lib/python/site-
 packages/sage/plot/misc.py", line 84, in wrapper
         return func(*args, **kwds)
       File "/Users/Sage/sage-4.6.alpha0/local/lib/python/site-
 packages/sage/plot/plot.py", line 1727, in show
         self.save(DOCTEST_MODE_FILE, **options)
       File "/Users/Sage/sage-4.6.alpha0/local/lib/python/site-
 packages/sage/plot/plot.py", line 2388, in save
         figure=self.matplotlib(*args, **kwds)
       File "/Users/Sage/sage-4.6.alpha0/local/lib/python/site-
 packages/sage/plot/plot.py", line 1927, in matplotlib
         from matplotlib.figure import Figure, figaspect
       File "/Users/Sage/sage-4.6.alpha0/local/lib/python/site-
 packages/matplotlib/figure.py", line 18, in <module>
         from axes import Axes, SubplotBase, subplot_class_factory
       File "/Users/Sage/sage-4.6.alpha0/local/lib/python/site-
 packages/matplotlib/axes.py", line 18, in <module>
         import matplotlib.contour as mcontour
       File "/Users/Sage/sage-4.6.alpha0/local/lib/python/site-
 packages/matplotlib/contour.py", line 21, in <module>
         import matplotlib.texmanager as texmanager
       File "/Users/Sage/sage-4.6.alpha0/local/lib/python/site-
 packages/matplotlib/texmanager.py", line 72, in <module>
         class TexManager:
       File "/Users/Sage/sage-4.6.alpha0/local/lib/python/site-
 packages/matplotlib/texmanager.py", line 92, in TexManager
         os.mkdir(texcache)
     OSError: [Errno 17] File exists:
 '/Users/justin/.sage//matplotlib-1.0.0/tex.cache'
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6235#comment:34>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to