Thanks a lot, what a silly misunderstanding!!!
On Nov 10, 4:43 pm, "Justin C. Walker" <[email protected]> wrote: > Hi, > > On Nov 9, 2009, at 22:51 , Christian wrote: > > > I'm trying to run a standalone sage/python script, but I got invalid > > syntax when running from console. The same commands work without any > > problem inside the sage environment. I just followed the > > documentation, the examples there work just fine. Am I missing > > something? > > [snip] > > > Command: > > $ sage -python test.sage > > I thin your problem is here (^). With "sage -python", you are running > "plain python", and python does not grok "sage" code (Sage preparses > input before passing it to the python interpreter). > > If you want to run a ".py" file, use "sage -python"; if you want to > run a ".sage" file, use "sage". > > HTH > > Justin > > -- > Justin C. Walker, Curmudgeon-At-Large > Institute for the Enhancement of the Director's Income > -------- > When LuteFisk is outlawed, > Only outlaws will have LuteFisk > -------- --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
