#6235: set MPLCONFIGDIR environment variable when Sage starts up
----------------------+-----------------------------------------------------
   Reporter:  was     |       Owner:  cwitty  
       Type:  defect  |      Status:  new     
   Priority:  minor   |   Milestone:  sage-4.6
  Component:  misc    |    Keywords:          
     Author:          |    Upstream:  N/A     
   Reviewer:          |      Merged:          
Work_issues:          |  
----------------------+-----------------------------------------------------

Comment(by jason):

 Replying to [comment:13 leif]:
 > Replying to [comment:12 jason]:
 > > At the same time, this directory should not be inside a specific Sage
 installation (i.e., below SAGE_ROOT) since that means system-wide installs
 can't have individual customizations, and it also breaks system-wide font
 cache generation (i.e., matplotlib assumes that a user can update the font
 cache file, I believe).  So where are we now?  Separate matplotlib config
 directories for each version of Sage inside of the .sage directory?
 >
 > I was thinking of that, too. Not that easy, though. (E.g. using the Sage
 version as an "index" isn't reliable either.)
 >
 > Is the font cache the only problem? If so, we could just delete it upon
 every Sage [script] start-up... (quite ugly, of course)

 I believe (off the top of my head) that the error "    TypeError: coercing
 to Unicode: need string or buffer, dict found" comes from the newer
 matplotlib including some stix fonts, and so it updates the font cache
 file to include those files.  However, older versions of matplotlib did
 not deal gracefully with font cache files that referred to nonexistant
 directories.  So if you install the new Sage, then matplotlib updates the
 font cache file to include the new fonts in the new matplotlib, then you
 move the new Sage install, the old Sage install will probably die when
 trying to open the nonexistant new font.  Of course, matplotlib should
 just silently regenerate the cache file, and that is what the bugfix in
 the 1.0.0 spkg is.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6235#comment:14>
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