My set-up: Linux Fedora 9, 2.6.27.7-53.fc9.i686 Thinkpad X40 shell = bash (with pretty minimal .bashrc and .bash_profile) Sage Version 3.2.2, Release Date: 2008-12-18 from a binary, not an upgrade
I do have a .gaprc and had installed gap before installing sage. I tried removing .gaprc, but that didn't fix the problem. By the end of January, I will have a different laptop, running Fedora 10. So almost certainly the problem will disappear for me then. So this is not to pressing. About the laplacian bug (really the weighted_adjacency_matrix bug), could someone else please make a patch? I am travelling non-stop between semesters now and have not had time to learn how to do this. Thanks, Dave On Jan 7, 6:06 pm, mabshoff <michael.absh...@mathematik.uni- dortmund.de> wrote: > On Jan 7, 3:38 pm, davidp <dav...@reed.edu> wrote: > > Hi Dave, > > > Oops. I take back my last post. Running Sage 3.2.2, I got the > > following: > > > sage: combinations([1,2,3,4],2) > > ------------------------------------------------------------ > > File "<string>", line 1 > > [ [ 1, 2 ], [ 1, 3 ], [ 1, 4 ], [ 2, 3 ], [ 2, 4 ], [ 3, 4 ] ] > > gap> > > I tried in Sage 3.2, 3.2.1, 3.2.2 and 3.2.3 and it always worked for > me. > ^ > > > > > SyntaxError: invalid syntax > > > The problem seems to occur on line 1580 of combinat.py: > > > 1579 ans=gap.eval("Combinations(%s,%s)"%(mset,ZZ(k))).replace > > ("\n","") > > 1580 return eval(ans) > > > For the example above: > > > sage: gap.eval("Combinations([1,2,3,4],2)") > > '[ [ 1, 2 ], [ 1, 3 ], [ 1, 4 ], [ 2, 3 ], [ 2, 4 ], [ 3, 4 ] ]\n\x1b > > [1m\x1b[34mgap> \x1b[0m' > > sage: eval(gap.eval("Combinations([1,2,3,4],2)").replace("\n","")) > > ------------------------------------------------------------ > > File "<string>", line 1 > > [ [ 1, 2 ], [ 1, 3 ], [ 1, 4 ], [ 2, 3 ], [ 2, 4 ], [ 3, 4 ] ] > > gap> > > ^ > > SyntaxError: invalid syntax > > > sage: eval(gap.eval("Combinations([1,2,3,4],2)").replace("\n","")) > > ------------------------------------------------------------ > > File "<string>", line 1 > > [ [ 1, 2 ], [ 1, 3 ], [ 1, 4 ], [ 2, 3 ], [ 2, 4 ], [ 3, 4 ] ] > > gap> > > ^ > > SyntaxError: invalid syntax > > > Thanks for any suggestions. > > Hmm, this looks like some escape characters from the shell. What shell > are you using? . What platform is this on? Did you build this Sage > yourself or is it a binary? Did you upgrade it from a previous release > of Sage? > > Do you have any gap config file around? This problem sounds familiar, > but I cannot put my finger on it. > > > Dave > > One last think: Do you have a patch for the laplacian_matrix() > problem, i.e.http://trac.sagemath.org/sage_trac/ticket/4888or do you > want someone from our end to make a patch? Robert Miller looked at the > suggested fix and he agrees that it is the right way to go. > > Cheers, > > Michael --~--~---------~--~----~------------~-------~--~----~ 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 URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---