I think the issue was that I was running on a system which had a
relocated sage v2.9.3 prior to a relocated sage v2.10.1 (current
version) and the location of the matplotlibrc file changed between the
two sage version. All I did was remove the ~/.matplotlib and the
~/.sage directories and now plotting works.

On Feb 10, 5:41 pm, mabshoff <[EMAIL PROTECTED]
dortmund.de> wrote:
> On Feb 10, 10:07 pm, gri6507 <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> > I am running into a permissions problem on a SAGE install relocated by
> > "make install" which was run as root and installed into DESTDIR=/usr/
> > lib. Below is an example of a permissions problem. It looks like a
> > writable directory check is failing. Which directory is it? Which
> > directories need to be writable by everyone when sage is relocated?
>
> > [EMAIL PROTECTED]:~>sage
> > ----------------------------------------------------------------------
> > | SAGE Version 2.10.1, Release Date: 2008-02-02                      |
> > | Type notebook() for the GUI, and license() for information.        |
> > ----------------------------------------------------------------------
> > Setting permissions of DOT_SAGE directory so only you can read and
> > write it.
>
> we change the default permission of $HOME/.sage to "700" now since
> there are various keys stored in that place. I assume matplotlib has a
> hard-coded reference to the root matplotlib config file. There was
> some email earlier this week about making matplotlib use a better
> config system, but I don't have a link handy.
>
> Cheers,
>
> Michael
>
>
>
> > sage: a = x^2;
> > sage: show(plot(a))
> > ---------------------------------------------------------------------------
> > <type 'exceptions.TypeError'>             Traceback (most recent call
> > last)
>
> > /home/gri6507/<ipython console> in <module>()
>
> > /usr/lib/sage/local/lib/python2.5/site-packages/sage/misc/
> > functional.py in show(x, *args, **kwds)
> >     914     if not isinstance(x, (sage.interfaces.expect.Expect,
> > sage.interfaces.expect.ExpectElement)):
> >     915         try:
> > --> 916             return x.show(*args, **kwds)
> >     917         except AttributeError:
> >     918             pass
>
> > /usr/lib/sage/local/lib/python2.5/site-packages/sage/plot/plot.py in
> > show(self, xmin, xmax, ymin, ymax, figsize, filename, dpi, axes,
> > axes_labels, frame, fontsize, aspect_ratio)
> >    1246         self.save(filename, xmin, xmax, ymin, ymax, figsize,
> > dpi=dpi, axes=axes,
> >    1247                   frame=frame, fontsize=fontsize,
> > -> 1248                   aspect_ratio=aspect_ratio)
> >    1249         os.system('%s %s 2>/dev/null 1>/dev/null &'%
> > (sage.misc.viewer.browser(), filename))
> >    1250
>
> > /usr/lib/sage/local/lib/python2.5/site-packages/sage/plot/plot.py in
> > save(self, filename, xmin, xmax, ymin, ymax, figsize, figure, sub,
> > savenow, dpi, axes, axes_labels, fontsize, frame, verify,
> > aspect_ratio)
> >    1340             axes = self.__show_axes
> >    1341
> > -> 1342         from matplotlib.figure import Figure
> >    1343         if filename is None:
> >    1344             filename = sage.misc.misc.graphics_filename()
>
> > /usr/lib/sage/local/lib/python2.5/site-packages/matplotlib/figure.py
> > in <module>()
> >       8 import artist
> >       9 from artist import Artist
> > ---> 10 from axes import Axes, Subplot, PolarSubplot, PolarAxes
> >      11 from cbook import flatten, allequal, Stack, iterable, dedent
> >      12 import _image
>
> > /usr/lib/sage/local/lib/python2.5/site-packages/matplotlib/axes.py in
> > <module>()
> >      11 from matplotlib import artist as martist
> >      12 from matplotlib import agg
> > ---> 13 from matplotlib import axis as maxis
> >      14 from matplotlib import cbook
> >      15 from matplotlib import collections as mcoll
>
> > /usr/lib/sage/local/lib/python2.5/site-packages/matplotlib/axis.py in
> > <module>()
> >      18 from transforms import Value, blend_xy_sep_transform,\
> >      19      translation_transform, bbox_all, identity_transform
> > ---> 20 from font_manager import FontProperties
> >      21 from text import Text, TextWithDash, _process_text_args
> >      22 from patches import bbox_artist
>
> > /usr/lib/sage/local/lib/python2.5/site-packages/matplotlib/
> > font_manager.py in <module>()
> >    1112
> >    1113 else:
> > -> 1114     _fmcache = os.path.join(get_configdir(),
> > 'fontManager.cache')
> >    1115
> >    1116     fontManager = None
>
> > /usr/lib/sage/local/lib/python2.5/site-packages/matplotlib/__init__.py
> > in wrapper(*args, **kwargs)
> >     205         assert(callable, func)
> >     206         def wrapper(*args, **kwargs):
> > --> 207             ret = func(*args, **kwargs)
> >     208
> >     209             if (always or not wrapper._spoke):
>
> > /usr/lib/sage/local/lib/python2.5/site-packages/matplotlib/__init__.py
> > in _get_configdir()
> >     398     if os.path.exists(p):
> >     399         if not _is_writable_dir(p):
> > --> 400             raise RuntimeError("'%s' is not a writable dir;
> > you must set %s/.matplotlib to be a writable dir.  You can also set
> > environment variable MPLCONFIGDIR to any writable directory where you
> > want matplotlib data stored "%h)
> >     401     else:
> >     402         if not _is_writable_dir(h):
>
> > <type 'exceptions.TypeError'>: not enough arguments for format string
> > sage:
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to