Hi [ Note this is the question Gap Undeposited Implementations; I couldn't seem to reply to that discussion any more]
I'm using Sage 4.3.3 through the terminal. I'm trying to use the Braid package written by K. Magaard for GAP. I would like to do everything through Sage, but I'm getting the following error message: sage: gap.eval('Read("assemble.g")') ' ' sage: g = SymmetricGroup(3) sage: t = [ g( (1,2) ) for i in range(4) ] sage: gap.Braid(g,t) ERROR: An unexpected error occurred while tokenizing input The following traceback may be corrupted or invalid The error message is: ('EOF in multi-line statement', (47, 0)) --------------------------------------------------------------------------- RuntimeError Traceback (most recent call last) /homes/home01/a/azsorkin/Desktop/RFG_branched_covers_2009_2010/ braid-1.1/lib/<ipython console> in <module>() /opt/pkg/sage/local/lib/python2.6/site-packages/sage/interfaces/ expect.pyc in __call__(self, *args, **kwds) 1379 1380 def __call__(self, *args, **kwds): -> 1381 return self._parent.function_call(self._name, list(args), kwds) 1382 1383 def _sage_doc_(self): /opt/pkg/sage/local/lib/python2.6/site-packages/sage/interfaces/ gap.pyc in function_call(self, function, args, kwds) 883 self.eval('$__SAGE_LAST__ := %s;;'%marker) 884 res = self.eval("%s(%s)"%(function, ",".join([s.name() for s in args]+ --> 885 ['%s=%s'% (key,value.name()) for key, value in kwds.items()]))) 886 887 if gap.eval('last') != marker: /opt/pkg/sage/local/lib/python2.6/site-packages/sage/interfaces/ gap.pyc in eval(self, x, newlines, strip, **kwds) 478 input_line += ';' 479 --> 480 result = Expect.eval(self, input_line, **kwds) 481 482 if not newlines: /opt/pkg/sage/local/lib/python2.6/site-packages/sage/interfaces/ expect.pyc in eval(self, code, strip, synchronize, locals, **kwds) 981 try: 982 with gc_disabled(): --> 983 return '\n'.join([self._eval_line(L, **kwds) for L in code.split('\n') if L != '']) 984 except KeyboardInterrupt: 985 # DO NOT CATCH KeyboardInterrupt, as it is being caught /opt/pkg/sage/local/lib/python2.6/site-packages/sage/interfaces/ gap.pyc in _eval_line(self, line, allow_use_file, wait_for_prompt) 720 return '' 721 else: --> 722 raise RuntimeError, message 723 724 except KeyboardInterrupt: RuntimeError: Gap produced error output List Element: <list>[4] must have an assigned value executing Braid($sage1,$sage7); sage: Thanks for the help. -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org