Hi,
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?
Tested: Sage Version 4.2, Release Date: 2009-10-24
Code (test.sage):
import sys
from sage.all import *
F.<x> = GF(2)[]
k.<a> = GF(2^8,name='a',modulus=x^8+x^4+x^3+x+1,repr='int')
A = Matrix(k,3,3,[k.random_element() for _ in range(3*3)])
Command:
$ sage -python test.sage
Error:
File "test.sage", line 3
F.<x> = GF(2)[]
^
SyntaxError: invalid syntax
I appreciate any help.
Thanks!!!
Christian
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---