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