I don't have a mac but I'd start by looking at the output of "mount" and 
see how /Network/Servers/smb-files.math.uwaterloo.ca is mounted. Its 
probably better to install Sage locally on your computer instead of a 
network shared drive (Did you install Sage yourself?)



On Tuesday, October 16, 2012 5:32:58 PM UTC+1, fomalhauty wrote:
>
> Thanks for your reply. I am using the computer in my office and not sure 
> if there is anything I can do to write permissions. If so, could you give 
> some detailed advice (I am new to mac)? Thank you!
>
>
>
> On Tuesday, October 16, 2012 12:15:00 PM UTC-4, Volker Braun wrote:
>>
>> Well the obvious question is: do you have write permissions 
>> to /Network/Servers/
>> smb-files.math.uwaterloo.ca/cifs.homedir/MacProfile/.sage//matplotlib-1.1.0
>>  
>>
>>
>>
>>
>>
>>
>> On Tuesday, October 16, 2012 4:25:22 PM UTC+1, fomalhauty wrote:
>>>
>>> Hi there,
>>>
>>> I am learning Sage recently and when I was trying to display a complete 
>>> graph in the terminal window it showed the following:
>>>
>>>
>>> sage: K=graphs.CompleteGraph(2)
>>> sage: K.show()
>>>
>>> ---------------------------------------------------------------------------
>>> RuntimeError                              Traceback (most recent call 
>>> last)
>>>
>>> /Network/Servers/smb-files.math.uwaterloo.ca/cifs.homedir/MacProfile/<ipython
>>>  
>>> console> in <module>()
>>>
>>> /Applications/Sage-5.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/graphs/generic_graph.pyc
>>>  
>>> in show(self, **kwds)
>>>   14574             if kwds.has_key(kwd):
>>>   14575                 plot_kwds[kwd] = kwds.pop(kwd)
>>> > 14576         self.plot(**plot_kwds).show(**kwds)
>>>   14577 
>>>   14578     def plot3d(self, bgcolor=(1,1,1), vertex_colors=None, 
>>> vertex_size=0.06,
>>>
>>> /Applications/Sage-5.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/misc/decorators.pyc
>>>  
>>> in wrapper(*args, **kwds)
>>>     454             kwds[self.name + "options"] = suboptions
>>>     455 
>>> --> 456             return func(*args, **kwds)
>>>     457 
>>>     458         #Add the options specified by @options to the signature 
>>> of the wrapped
>>>
>>> /Applications/Sage-5.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/plot/graphics.pyc
>>>  
>>> in show(self, **kwds)
>>>    1719         else:
>>>    1720             kwds.setdefault('filename', 
>>> sage.misc.misc.tmp_filename() + '.png')
>>> -> 1721             self.save(**kwds)
>>>    1722             os.system('%s %s 2>/dev/null 1>/dev/null &'
>>>    1723                       % (sage.misc.viewer.browser(), 
>>> kwds['filename']))
>>>
>>> /Applications/Sage-5.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/misc/decorators.pyc
>>>  
>>> in wrapper(*args, **kwds)
>>>     454             kwds[self.name + "options"] = suboptions
>>>     455 
>>> --> 456             return func(*args, **kwds)
>>>     457 
>>>     458         #Add the options specified by @options to the signature 
>>> of the wrapped
>>>
>>> /Applications/Sage-5.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/plot/graphics.pyc
>>>  
>>> in save(self, filename, **kwds)
>>>    2549             SageObject.save(self, filename)
>>>    2550         else:
>>> -> 2551             figure = self.matplotlib(**options)
>>>    2552             # You can output in PNG, PS, EPS, PDF, or SVG 
>>> format, depending
>>>    2553             # on the file extension.
>>>
>>> /Applications/Sage-5.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/plot/graphics.pyc
>>>  
>>> in matplotlib(self, filename, xmin, xmax, ymin, ymax, figsize, figure, sub, 
>>> axes, axes_labels, fontsize, frame, verify, aspect_ratio, gridlines, 
>>> gridlinesstyle, vgridlinesstyle, hgridlinesstyle, show_legend, 
>>> legend_options, axes_pad, ticks_integer, tick_formatter, ticks, base, scale)
>>>    2070             axes = self._show_axes
>>>    2071 
>>> -> 2072         from matplotlib.figure import Figure
>>>    2073         from matplotlib import rcParams
>>>    2074         self.fontsize(fontsize)
>>>
>>> /Applications/Sage-5.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.7/site-packages/matplotlib/__init__.py
>>>  
>>> in <module>()
>>>     769 
>>>     770 # this is the instance used by the matplotlib classes
>>> --> 771 rcParams = rc_params()
>>>     772 
>>>     773 if rcParams['examples.directory']:
>>>
>>> /Applications/Sage-5.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.7/site-packages/matplotlib/__init__.py
>>>  
>>> in rc_params(fail_on_error)
>>>     687     'Return the default params updated from the values in the rc 
>>> file'
>>>     688 
>>> --> 689     fname = matplotlib_fname()
>>>     690     if not os.path.exists(fname):
>>>     691         # this should never happen, default in mpl-data should 
>>> always be found
>>>
>>> /Applications/Sage-5.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.7/site-packages/matplotlib/__init__.py
>>>  
>>> in matplotlib_fname()
>>>     599                 return fname
>>>     600 
>>> --> 601     fname = os.path.join(get_configdir(), 'matplotlibrc')
>>>     602     if os.path.exists(fname): return fname
>>>     603 
>>>
>>> /Applications/Sage-5.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.7/site-packages/matplotlib/__init__.py
>>>  
>>> in wrapper(*args, **kwargs)
>>>     244         assert callable(func)
>>>     245         def wrapper(*args, **kwargs):
>>> --> 246             ret = func(*args, **kwargs)
>>>     247 
>>>     248             if (always or not wrapper._spoke):
>>>
>>> /Applications/Sage-5.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.7/site-packages/matplotlib/__init__.py
>>>  
>>> in _get_configdir()
>>>     458             os.makedirs(configdir)
>>>     459         if not _is_writable_dir(configdir):
>>> --> 460             raise RuntimeError('Could not write to 
>>> MPLCONFIGDIR="%s"'%configdir)
>>>     461         return configdir
>>>     462 
>>>
>>> RuntimeError: Could not write to MPLCONFIGDIR="/Network/Servers/
>>> smb-files.math.uwaterloo.ca/cifs.homedir/MacProfile/.sage//matplotlib-1.1.0
>>> "
>>> sage: 
>>>
>>>
>>> Could anyone explain what was going on?  Thanks a lot!
>>>
>>>

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


Reply via email to