Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError when loading Sage 4.3.1.rc1 due to non-ASCII character #7999

Closed
sagetrac-mvngu mannequin opened this issue Jan 19, 2010 · 6 comments
Closed

SyntaxError when loading Sage 4.3.1.rc1 due to non-ASCII character #7999

sagetrac-mvngu mannequin opened this issue Jan 19, 2010 · 6 comments

Comments

@sagetrac-mvngu
Copy link
Mannequin

sagetrac-mvngu mannequin commented Jan 19, 2010

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 wiki page for information on dealing with non-ASCII characters in source files.

Component: misc

Author: Minh Van Nguyen

Reviewer: Mitesh Patel

Merged: sage-4.3.1.rc2

Issue created by migration from https://trac.sagemath.org/ticket/7999

@sagetrac-mvngu sagetrac-mvngu mannequin added this to the sage-4.3.1 milestone Jan 19, 2010
@sagetrac-mvngu

This comment has been minimized.

@sagetrac-mvngu
Copy link
Mannequin Author

sagetrac-mvngu mannequin commented Jan 19, 2010

Author: Minh Van Nguyen

@sagetrac-mvngu
Copy link
Mannequin Author

sagetrac-mvngu mannequin commented Jan 19, 2010

based on Sage 4.3.1.rc1

@qed777
Copy link
Mannequin

qed777 mannequin commented Jan 19, 2010

comment:2

Attachment: trac_7999-encoding.patch.gz

@qed777
Copy link
Mannequin

qed777 mannequin commented Jan 19, 2010

Reviewer: Mitesh Patel

@rlmill
Copy link
Mannequin

rlmill mannequin commented Jan 19, 2010

Merged: sage-4.3.1.rc2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants