You can try to put

export DOT_SAGE=/Volumes/Scratch/.sage

into the sagerc



On Tuesday, October 16, 2012 9:45:07 PM UTC+1, fomalhauty wrote:
>
> Hi,
>
> This is the result:
>
> sage: import tempfilesage: tempfile.TemporaryFile(dir='/Network/Servers/
> smb-files.math.uwaterloo.ca/cifs.homedir/MacProfile/.sage//matplotlib-1.1.0
> ')
> ---------------------------------------------------------------------------
> OSError                                   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/python/tempfile.pyc
>  
> in TemporaryFile(mode, bufsize, suffix, prefix, dir)
>     485         (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags)
>     486         try:
> --> 487             _os.unlink(name)
>     488             return _os.fdopen(fd, mode, bufsize)
>     489         except:
>
> OSError: [Errno 16] Resource busy: '/Network/Servers/
> smb-files.math.uwaterloo.ca/cifs.homedir/MacProfile/.sage/matplotlib-1.1.0/tmph90Jr1
> '
>
>
> Do you have any idea how to put things like 
> "MPLCONFIGDIR=/Volumes/Scratch" into ~/.sage/sagerc? I could not find any 
> examples.
>
> Thanks.
>
> On Tuesday, October 16, 2012 3:20:50 PM UTC-4, Volker Braun wrote:
>>
>> What do you get if you try the following:
>>
>> sage: import tempfile
>> sage: tempfile.TemporaryFile(dir='/Network/Servers/
>> smb-files.math.uwaterloo.ca/cifs.homedir/MacProfile/.sage//matplotlib-1.1.0
>> ')
>>
>>
>> On Tuesday, October 16, 2012 7:24:19 PM UTC+1, fomalhauty wrote:
>>>
>>> Hi John,
>>>
>>> The output of mount is 
>>>
>>> /dev/disk0s2 on / (hfs, local, journaled)
>>> devfs on /dev (devfs, local, nobrowse)
>>> /dev/disk0s3 on /Volumes/Scratch (hfs, local, journaled)
>>> map -hosts on /net (autofs, nosuid, automounted, nobrowse)
>>> map auto_home on /home (autofs, automounted, nobrowse)
>>> map -fstab on /Network/Servers (autofs, automounted, nobrowse)
>>> trigger on 
>>> /Network/Servers/smb-files.math.uwaterloo.ca/cifs.homedir(autofs, 
>>> automounted, nobrowse)
>>> //[email protected]/cifs.homedir on /Network/Servers/
>>> smb-files.math.uwaterloo.ca/cifs.homedir (smbfs, nodev, nosuid, 
>>> automounted, nobrowse, mounted by h3zhan)
>>>
>>>
>>> and echo $HOME:
>>>
>>> /Network/Servers/smb-files.math.uwaterloo.ca/cifs.homedir/MacProfile
>>>
>>> and  ls -l /Network/Servers/
>>> smb-files.math.uwaterloo.ca/cifs.homedir/MacProfile/.sage/<http://smb-files.math.uwaterloo.ca/cifs.homedir/MacProfile/.sage//matplotlib-1.1.0>
>>> :
>>>
>>>
>>> total 256
>>> drwx------  1 h3zhan  wheel  16384 10 Oct 13:10 cache
>>> drwx------  1 h3zhan  wheel  16384 28 Sep 14:49 db
>>> drwx------  1 h3zhan  wheel  16384 10 Oct 13:24 directory.sagenb
>>> drwx------  1 h3zhan  wheel  16384 28 Sep 14:49 gap
>>> -rwx------  1 h3zhan  wheel      0 16 Oct 13:35 gp-expect.log
>>> drwx------  1 h3zhan  wheel  16384 10 Oct 13:10 ipython
>>> drwx------  1 h3zhan  wheel  16384 16 Oct 12:29 matplotlib-1.1.0
>>> drwx------  1 h3zhan  wheel  16384 16 Oct 12:29 sage_notebook.sagenb
>>> drwx------  1 h3zhan  wheel  16384 10 Oct 13:16 temp
>>>
>>>
>>> Thanks for your help!
>>>
>>>
>>> On Tuesday, October 16, 2012 1:46:35 PM UTC-4, John H Palmieri wrote:
>>>>
>>>>
>>>>
>>>> On Tuesday, October 16, 2012 10:45:08 AM UTC-7, John H Palmieri wrote:
>>>>>
>>>>>
>>>>>
>>>>> On Tuesday, October 16, 2012 10:38:34 AM UTC-7, fomalhauty wrote:
>>>>>>
>>>>>> Hi Volker,
>>>>>>
>>>>>> All the programs were installed by the university, and I cannot 
>>>>>> install a program myself as I am not the administrator. I asked the 
>>>>>> computer facility help center, but they have not figured out a solution. 
>>>>>>
>>>>>> My Sage can do simple evaluations, but it cannot write to a location 
>>>>>> to plot the graph:
>>>>>>
>>>>>> sage: cd matplotlib-1.1.0/
>>>>>> [Errno 2] No such file or directory: 
>>>>>> 'matplotlib-RealNumber(1.1).gen(0)/'
>>>>>> /Network/Servers/
>>>>>> smb-files.math.uwaterloo.ca/cifs.homedir/MacProfile/.sage
>>>>>>
>>>>>> And the output of "mount" just gave a name error..
>>>>>>
>>>>>
>>>>> He meant to run "mount" from a Terminal window on the Mac, not from 
>>>>> within Sage. From a Terminal window, what is the output from
>>>>>
>>>>>   echo $HOME
>>>>>
>>>>
>>>> And also from a terminal window: what's the output from
>>>>
>>>>   ls -l /Network/Servers/
>>>> smb-files.math.uwaterloo.ca/cifs.homedir/MacProfile/.sage/<http://smb-files.math.uwaterloo.ca/cifs.homedir/MacProfile/.sage//matplotlib-1.1.0>
>>>>
>>>> -- 
>>>> John
>>>>
>>>>>

-- 
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