On 10/16/07, Steffen <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I tried to run the example in the sage tutorial:
>
> #!/usr/bin/env sage-python

Somebody made a serious mistake in the tutorial; it should be

#!/usr/bin/env sage    -python

I.e., *note* the space.

See

 SAGE_ROOT/examples/programming/standalone_scripts

for examples (especially see the python subdirectory).

I've fixed this mistake in the tutorial for the next Sage release.

Many thanks for reporting this issue.

 -- William

>
> import sys
>
> from sage.all import *
>
> if len(sys.argv) != 2:
>         print "Usage: %s <n>"%sys.argv[0]
>         print "Outputs the prime factorization of n."
>         sys.exit(1)
>
> print factor(sage_eval(sys.argv[1]))
>
>
> Running the script I get the following error:
> /usr/bin/env: sage-python: file or directory not found
> I have looked it up and the script env indeed does not offer the
> parameter sage-python, but for example python. I am runnig a Suse10.0
> and I have updated with sage -upgrade from 2.8.6 to 2.8.7. I have set
> the PATH variable SAGE_ROOT to fooDir/sage-2.8.6-suse-i686-Linux.
>
> Is there something wrong with my installation or did I make any
> mistake?
>
> Cheers, Steffen
>
>
> >
>


-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
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-forum
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to