Re: [sage-devel] Re: compilation error on debian
Op woensdag 18 september 2013 10:22:04 UTC+1 schreef Jeroen Demeyer: On 2013-09-18 07:20, Dima Pasechnik wrote: accoring to http://www.python.org/dev/peps/pep-0263/ $SAGE_LOCAL/bin/hg might benefit from the 2nd line saying # -*- coding: latin-1 -*- (or # -*- coding: utf-8 -*-) ? That wouldn't help since the offending character is on the *first* line, before the coding line. PEP 0263 says explicitly that the encoding magic can occur either on the first or on the second line, presumably for cases like this, so it looks like it is worth trying. Peter -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-devel] Re: compilation error on debian
PEP 0263 says explicitly that the encoding magic can occur either on the first or on the second line, presumably for cases like this, so it looks like it is worth trying. (If it already tries to decode the first line before looking at the second line to see if it specifies an encoding, then there is little you can do.) -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/groups/opt_out.
[sage-devel] Re: compilation error on debian
Hi, Jan Groenewald wrote: It might be the é in your path, though \xc3 is something else: In [1]: print u'\xc3' Ã 0xC3 is the first byte of the UTF-8 encoding of 'é'. -- Marc -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/groups/opt_out.
[sage-devel] Re: compilation error on debian
Hi, I think I also had similar problems because of accented letters in my building path. I don't know if that would be easy to fix, but you can always build Sage lesewhere and then move it back where you want to store it even if that includes accented letters. Best, JP On Wednesday, September 18, 2013 8:46:01 AM UTC+2, Marc Mezzarobba wrote: Hi, Jan Groenewald wrote: It might be the é in your path, though \xc3 is something else: In [1]: print u'\xc3' Ã 0xC3 is the first byte of the UTF-8 encoding of 'é'. -- Marc -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/groups/opt_out.
Re: [sage-devel] Re: compilation error on debian
On 2013-09-18 07:20, Dima Pasechnik wrote: accoring to http://www.python.org/dev/peps/pep-0263/ $SAGE_LOCAL/bin/hg might benefit from the 2nd line saying # -*- coding: latin-1 -*- (or # -*- coding: utf-8 -*-) ? That wouldn't help since the offending character is on the *first* line, before the coding line. This seems related to http://bugs.python.org/issue6011 I think the only solution is to use ASCII characters in the directory where Sage is compiled. -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/groups/opt_out.
[sage-devel] Re: compilation error on debian
On 2013-09-17, ti tims tit...@gmail.com wrote: Hi all @sage I do not succeed in compiling sage 5.11 on debian testing. here is the output copying build/scripts-2.7/hg - /home/tm202135/Téléchargements/sage-5.11/local/bin changing mode of /home/tm202135/Téléchargements/sage-5.11/local/bin/hg to 755 running install_egg_info Writing /home/tm202135/Téléchargements/sage-5.11/local/lib/python/mercurial-2.2.2-py2.7.egg-info File /home/tm202135/Téléchargements/sage-5.11/local/bin/hg, line 1 SyntaxError: Non-ASCII character '\xc3' in file /home/tm202135/Téléchargements/sage-5.11/local/bin/hg on line 1, but no encoding declared; see http://www.python.org/peps/pep-0263.html$ Mercurial installed correctly, but doesn't seem to work properly. Running 'hg log' in the directory /home/tm202135/Téléchargements/sage-5.11/spkg/build/mercurial-2.2.2.p0 failed. accoring to http://www.python.org/dev/peps/pep-0263/ $SAGE_LOCAL/bin/hg might benefit from the 2nd line saying # -*- coding: latin-1 -*- (or # -*- coding: utf-8 -*-) ? Although I'm unable to reproduce this... Dima -- You received this message because you are subscribed to the Google Groups sage-devel group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/groups/opt_out.