Got It.  Success.  Thanks!  I'm surprised at my syntax troubles with
this, but it all makes sense now.

Appreciated,
Amelia

On Jun 12, 8:21 am, Tobias Katz <[email protected]> wrote:
> Hi,
> <x> has been only a placeholder.
>
> In your case you probably would have to enter
> load('/Users/ataylor/research/Students/EliseAndrew/sageprogram.sage')
>
> Good luck with it!
>
> Tobi
>
> On 06/12/2010 04:06 PM, ataylor wrote:
>
>
>
> > Tobias,
>
> > We are using the notebook, but knowing how to do it command line is
> > also helpful.
>
> > So it is true that we did not know to use < >.  However, I'm still
> > doing something wrong.  I entered
>
> > load </Users/ataylor/research/Students/EliseAndrew/sageprogram.sage>
>
> > and I know this is closer because my error changed. The error now
> > says
>
> > ValueError: argument
> > (='</Users/ataylor/research/Students/EliseAndrew/sageprogram.sage>\
> > ') to load or attach must have extension py, sage, or pyx
>
> > But our program does have the extension sage.  So I'm not sure why it
> > is telling me this.
>
> > - Amelia
>
> > On Jun 12, 1:28 am, Tobias Katz <[email protected]> wrote:
> >> Hi Amelia,
> >> How did you try to load the file?
> >> I guess you are using  the notebook.
> >> There it is possible to load a file with
> >> load('<absolute_path>').
>
> >> If you are using the command line version you can also use
> >> run <absolute or relative path>
> >> or
> >> run -i <absolute or relative path>
> >> for running your script in the actual namespace.
>
> >> Cheers..
>
> >> On 06/12/2010 06:07 AM, ataylor wrote:
>
> >>> Hi.
>
> >>> I have a MacOS 10.5.8 and while I used sage a long time ago, I have
> >>> students who need to use sage now and so am being reintroduced.
>
> >>> Today we wrote a little for loop and called the file sageprogram.sage
> >>> just to get started.  However, we cannot, for the life of us load the
> >>> file into sage.
>
> >>> (1) we did check the sage path and put the file into a folder that is
> >>> definitely on the path --- namely /Applications/sage/
>
> >>> (2) The error we get is
>
> >>> Traceback (click to the left of this block for traceback)
> >>> ...
> >>> IOError: [Errno 2] No such file or directory: 'sageprogram.sage'
>
> >>> Which makes sense if the file is not on the path searched by sage, but
> >>> it appears to be so.
>
> >>> Clearly sage is not finding the program.  However, we can't find
> >>> anything (looked in the tutorial and the reference manual) to help us
> >>> help sage find the file.  In the tutorial where it talks about loading
> >>> and attaching files  it does not say anything about paths or where to
> >>> place the files.
>
> >>> - Amelia

-- 
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-support
URL: http://www.sagemath.org

Reply via email to