The b"" is a string with the Python 3 byte-prefix. In Python 2, version 2.6+ this is a noop for Python 3 compatibility. In Python versions older than 2.6, this is an error.
Conclusion: You are running an old Python interpreter, in particular not the one that is part of Sage. Hence it breaks. On Thursday, April 19, 2012 7:49:11 AM UTC-4, Rajeev wrote: > > Hi, > > I get the following error while trying to install git from > sage-optional packages. The error seems to be in one of the python > library files (os.py) and is a syntax error - > > File "/compute/imsc9/rajeev/bin/sage-4.8/local/lib/python/os.py", line 758 > bs = b"" > ^ > SyntaxError: invalid syntax > > I think this is a bug? > > Rajeev > > -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org