More bugs:

sage: a = [ [[1,1],[0,1]], [[0,-1],[1,0]] ]
sage: G = MatrixGroup([Matrix(_) for _ in a])
sage: Gm = magma(G)
TypeError: Error evaluating Magma code.
IN:_sage_[2]:=Matrix group over Integer Ring with 2 generators:
 [[[1, 1], [0, 1]], [[0, -1], [1, 0]]];
OUT:
In file "/Users/victorsmiller/.sage//temp/
victor_millers_macbook_pro.local/9860//interface//tmp9882", line 1,
column 19:
>> _sage_[2]:=Matrix group over Integer Ring with 2 generators:
                     ^
User error: bad syntax

[I did the above from the command line interface.  Read on to see why]

Also, I just tried to use the magma interface on my macbook.  This is
a weird problem.  I first started the notebook and typed

sage: magma('1+1')


Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_6.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding:
utf-8 -*-\\n" +
_support_.preparse_worksheet_cell(base64.b64decode("bWFnbWEoJzErMScp"),globals())
+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>

  File "/private/var/folders/zs/sfhqf6rs4dgdjf89wmqsc6440000gn/T/
tmpsQGH8V/___code___.py", line 2, in <module>
    exec compile(u"magma('1+1')" + '\n', '', 'single')
  File "", line 1, in <module>

  File "/tmp/sage-mac-app/local/lib/python2.6/site-packages/sage/
interfaces/magma.py", line 736, in __call__
    A = Expect.__call__(self, x)
  File "/tmp/sage-mac-app/local/lib/python2.6/site-packages/sage/
interfaces/expect.py", line 1105, in __call__
    return cls(self, x, name=name)
  File "/tmp/sage-mac-app/local/lib/python2.6/site-packages/sage/
interfaces/expect.py", line 1538, in __init__
    raise TypeError, x
TypeError: Unable to start magma


I realized that I didn't have the magma executable in my default
path.  So, I made a symbolic link from /usr/local/bin/magma to where
the magma executable is.  Tried again -- no dice.  I stopped the
server and exited sage (I'm using the Sage.app), and started again --
still no change.  Now here's the weird thing -- if I just start up
sage from the command line, and I type

sage: magma('1+1')

everything works ok.  I just can't do it from the notebook.  Since I
had installed 10.7 Lion the other day I thought that possibly sage
needed rebuilding (even though it had been running ok).  I did a sage -
b .  It recompiled a lot of things, but the behavior hasn't changed.
Any suggestions?

Victor

-- 
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