#6674: [with patch, needs review] only use ASCII characters in patches
---------------------------+------------------------------------------------
 Reporter:  mvngu          |       Owner:  tba            
     Type:  defect         |      Status:  new            
 Priority:  blocker        |   Milestone:  sage-4.1.1     
Component:  documentation  |    Keywords:                 
 Reviewer:                 |      Author:  Minh Van Nguyen
   Merged:                 |  
---------------------------+------------------------------------------------

Comment(by mvngu):

 The new patch should have removed all non-ASCII characters. It also
 removes duplicate citations. That is, don't redefine a reference for each
 function. Only define a reference once. If you then need to refer to that
 reference, then use a shorthand notation to refer to that reference. That
 way, it wouldn't result in warnings when building the reference manual.

 Here are the steps to see the warnings caused by patches or library files
 with non-ASCII characters:
  1. Take a binary or source version of Sage 4.1.1.rc0.
  1. Apply the patches `trac_5793-cliquer-flattened.patch` and
 `trac_5793-part-6.patch` at ticket #5793. Install the package
 http://sage.math.washington.edu/home/mvngu/patch/cliquer-1.2.spkg .
  1. Run Sage with `./sage -br main` and exit Sage.
  1. Make an experimental binary version of the patched repository with
 `./sage -bdist 4.1.1.rc0-exp`. The resulting binary can be found in
 `SAGE_ROOT/dist`.
  1. Extract the resulting binary and run it with `./sage`. You would see
 something similar to:
 {{{
 [mv...@sage sage-4.1.1.rc0-sage.math-x86_64-Linux]$ ./sage
 ----------------------------------------------------------------------
 | Sage Version 4.1.1.rc0, Release Date: 2009-07-29                   |
 | Type notebook() for the GUI, and license() for information.        |
 ----------------------------------------------------------------------
 **********************************************************************
 *                                                                    *
 * Warning: this is a prerelease version, and it may be unstable.     *
 *                                                                    *
 **********************************************************************
 The Sage install tree may have moved.
 Regenerating Python.pyo and .pyc files that hardcode the install PATH
 (please wait at most a few minutes)...
 Do not interrupt this.
 ---------------------------------------------------------------------------
 SyntaxError                               Traceback (most recent call
 last)

 /scratch/mvngu/sage-4.1.1.rc0-sage.math-x86_64-Linux/local/lib/python2.6
 /site-packages/IPython/ipmaker.py in force_import(modname)
      64         reload(sys.modules[modname])
      65     else:
 ---> 66         __import__(modname)
      67
      68

 
/scratch/mvngu/sage-4.1.1.rc0-sage.math-x86_64-Linux/local/bin/ipy_profile_sage.py
 in <module>()
       5     preparser(True)
       6
 ----> 7     import sage.all_cmdline
       8     sage.all_cmdline._init_cmdline(globals())
       9

 /scratch/mvngu/sage-4.1.1.rc0-sage.math-x86_64-Linux/local/lib/python2.6
 /site-packages/sage/all_cmdline.py in <module>()
      12 try:
      13
 ---> 14     from sage.all import *
      15     from sage.calculus.predefined import x
      16     preparser(on=True)

 /scratch/mvngu/sage-4.1.1.rc0-sage.math-x86_64-Linux/local/lib/python2.6
 /site-packages/sage/all.py in <module>()
      83 from sage.modular.all    import *
      84 from sage.schemes.all    import *
 ---> 85 from sage.graphs.all     import *
      86 from sage.groups.all     import *
      87 from sage.databases.all  import *

 /scratch/mvngu/sage-4.1.1.rc0-sage.math-x86_64-Linux/local/lib/python2.6
 /site-packages/sage/graphs/all.py in <module>()
 ----> 1
       2
       3 from graph_generators import graphs, digraphs
       4 from graph_database import GraphDatabase, GenericGraphQuery,
 GraphQuery
       5 from graph import Graph, DiGraph
       6 from bipartite_graph import BipartiteGraph
       7 from graph_bundle import GraphBundle

 /scratch/mvngu/sage-4.1.1.rc0-sage.math-x86_64-Linux/local/lib/python2.6
 /site-packages/sage/graphs/graph_generators.py in <module>()
     139
 
################################################################################

     140
 --> 141 import graph
     142 from   math import sin, cos, pi
     143 from sage.misc.randstate import current_randstate

 SyntaxError: Non-ASCII character '\xc3' in file
 /scratch/mvngu/sage-4.1.1.rc0-sage.math-x86_64-Linux/local/lib/python2.6
 /site-packages/sage/graphs/graph.py on line 10146, but no encoding
 declared; see http://www.python.org/peps/pep-0263.html for details
 (graph.py, line 10145)
 Error importing ipy_profile_sage - perhaps you should run %upgrade?
 WARNING: Loading of ipy_profile_sage failed.
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/6674#comment:10>
Sage <http://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to