Okay. Here is what will work. The package loading mechanism has changed so my quick hack to create a package from Maagard et al's files will not work now. I'll try to fix it eventually when I have time...
1. Download and extract Maagard's tarball anywhere, say to /Users/me/gapfiles/braid (so /Users/me/gapfiles/braid/assemble.g is a file on your machine). 2. Edit all lines in assemble of the form Read("blahblah"); to say Read("/Users/me/gapfiles/braid/blahblah"); 3. Start GAP in sage by sage -gap. The following should work: gap> Read("/Users/wdj/computer_algebra/gapfiles/braid_dir2/assemble.g"); gap> g:=SymmetricGroup(3);; gap> t:=[(1,2), (1,2)];; gap> Braid(g,t); Thu Nov 5 16:16:38 EST 2009 Collecting 20 random tuples... done Cleaning done; 20 random tuples remaining Orbit 1: Length=1 Generated subgroup size=2 Centralizer size=2 Remaining portion of structure constant=0 Cleaning current orbit... done; 0 random tuples remaining Thu Nov 5 16:16:38 EST 2009 Summary: orbits of generating tuples Note/Question: gap_console() does not work, *I think* because it does not start GAP using the -A flag. Does this make sense to anyone? Is there a way to add an option to gap_console so that GAP can be started in Sage using any of the available GAP flags? On Wed, Nov 4, 2009 at 10:27 PM, Adam Sorkin <azsor...@hotmail.com> wrote: > > I am trying to load a Gap package for braid orbit computations. I > would like to run everything through Sage if possible. This is an > undeposited Implementation, so running "sage -i gap_packages-4.4.10_4 > " doesn't retrieve this package. I'm running this on OSX, 10.5, and > have gap_version() = 4.4.10. I've downloaded and unzipped the package. > I've tried the instructions: > > > in sage, in gap_console() > Read("assemble.g"); > > > and get the message > > "Error, file must exist and be readable called from <function> > ( <arguments> ) called from read-eval-loop > Entering break read-eval-print loop ..." > > Any suggestions? > > Adam > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---