#7999: SyntaxError when loading Sage 4.3.1.rc1 due to non-ASCII character
-------------------------------+--------------------------------------------
Reporter: mvngu | Owner: tbd
Type: defect | Status: needs_review
Priority: minor | Milestone: sage-4.3.1
Component: misc | Keywords:
Author: Minh Van Nguyen | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-------------------------------+--------------------------------------------
Changes (by newvalueoldvalue):
* status: new => needs_review
* author: => Minh Van Nguyen
Old description:
> I built Sage 4.3.1.rc1 from source and then produced a sage.math binary.
> Loading the binary resulted in the following !SyntaxError:
> {{{
> SyntaxError: Non-ASCII character '\xc3' in file
> /dev/shm/mvngu/sage-4.3.1.rc1-dev/local/lib/python2.6/site-
> packages/sage/schemes/elliptic_curves/ell_rational_field.py on line 5448,
> but no encoding declared; see http://www.python.org/peps/pep-0263.html
> for details (ell_rational_field.py, line 5447)
> Error importing ipy_profile_sage - perhaps you should run %upgrade?
> WARNING: Loading of ipy_profile_sage failed.
> }}}
> The guilty line is line 5447:
> {{{
> modular forms. Astérisque, (295):ix, 117-290, 2004.
> }}}
> of `sage/schemes/elliptic_curves/ell_rational_field.py`, which doesn't
> have the following preamble to indicate that the file has non-ASCII
> characters:
> {{{
> # -*- coding: utf-8 -*-
> }}}
New description:
I built Sage 4.3.1.rc1 from source and then produced a sage.math binary.
Loading the binary resulted in the following !SyntaxError:
{{{
SyntaxError: Non-ASCII character '\xc3' in file
/dev/shm/mvngu/sage-4.3.1.rc1-dev/local/lib/python2.6/site-
packages/sage/schemes/elliptic_curves/ell_rational_field.py on line 5448,
but no encoding declared; see http://www.python.org/peps/pep-0263.html for
details (ell_rational_field.py, line 5447)
Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.
}}}
The guilty line is line 5447:
{{{
modular forms. Astérisque, (295):ix, 117-290, 2004.
}}}
of `sage/schemes/elliptic_curves/ell_rational_field.py`, which doesn't
have the following preamble to indicate that the file has non-ASCII
characters:
{{{
# -*- coding: utf-8 -*-
}}}
See this [http://wiki.sagemath.org/devel/nonASCII wiki page] for
information on dealing with non-ASCII characters in source files.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7999#comment:1>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.