Ticket #6724 (closed defect: fixed)
[with patch, positive review] spell-check all modules under sage/modules
| Reported by: | mvngu | Owned by: | tba |
|---|---|---|---|
| Priority: | major | Milestone: | sage-4.1.1 |
| Component: | documentation | Keywords: | |
| Cc: | Work issues: | ||
| Report Upstream: | Reviewers: | Chris Wuthrich, Mitesh Patel | |
| Authors: | Minh Van Nguyen | Merged in: | Sage 4.1.1 |
| Dependencies: | Stopgaps: |
Description
As the subject says.
Attachments
Change History
comment:1 Changed 4 years ago by mvngu
- Summary changed from spell-check all modules under sage/modules to [with patch, needs review] spell-check all modules under sage/modules
- Authors set to Minh Van Nguyen
Changed 4 years ago by mvngu
-
attachment
trac_6724-spell-check-modules.patch
added
based on Sage 4.1.1.rc2
comment:2 Changed 4 years ago by wuthrich
- Summary changed from [with patch, needs review] spell-check all modules under sage/modules to [with patch, needs work] spell-check all modules under sage/modules
I don't think I should give a positive review here. The docbuild gives me :
Warning: could not import sage.modules.fg_pid.fgp_morphism cannot import name FGP_Morphism
comment:3 Changed 4 years ago by mvngu
With Sage 4.1.1.rc2, the only warnings I see when building the reference manual are:
WARNING: /scratch/mvngu/sage-4.1.1.rc2-sage.math/local/lib/python2.6/site-packages/sage/graphs/graph.py:docstring of sage.graphs.graph.GenericGraph.kirchhoff_matrix:56: (WARNING/2) Literal block ends without a blank line; unexpected unindent. WARNING: /scratch/mvngu/sage-4.1.1.rc2-sage.math/local/lib/python2.6/site-packages/sage/graphs/graph.py:docstring of sage.graphs.graph.GenericGraph.laplacian_matrix:56: (WARNING/2) Literal block ends without a blank line; unexpected unindent. WARNING: /scratch/mvngu/sage-4.1.1.rc2-sage.math/local/lib/python2.6/site-packages/sage/graphs/graph.py:docstring of sage.graphs.graph.Graph.clique_number:19: (WARNING/2) Inline literal start-string without end-string.
These warnings are fixed by #6684. So I applied patches against Sage 4.1.1.rc2 in this order:
- the patch at #6684
- the patch on this ticket
The reference manual then rebuilt without any warnings. So I'm curious where and how you got the warning you reported.
comment:4 Changed 4 years ago by wuthrich
It was on sage4.1.1.rc2 + the two other spelling-tickets that you just closed #6723 and #6731.
This warning appeared in sage -docbuild reference html
and the table of contents of the html reference contained as the last entry of Modules
UNABLE TO IMPORT MODULE
...
and I just did it again on a brand new clone from sage 4.1.1.rc2; importing only this patch; doing sage -b (which went all fine) and then sage -docbuild reference html gives me the same warning as before, namely
chrigu@linux-ljo8:~/sage/trac_spell> sage -docbuild reference html Warning: could not import sage.modules.fg_pid.fgp_morphism cannot import name FGP_Morphism sphinx-build -b html -d /usr/local/sage/devel/sage/doc/output/doctrees/en/reference . /usr/local/sage/devel/sage/doc/output/html/en/reference Sphinx v0.5.1, building html loading pickled environment... done building [html]: targets for 0 source files that are out of date updating environment: 0 added, 617 changed, 0 removed reading sources... algebras etc
Am I doing something wrong ?
Changed 4 years ago by mvngu
-
attachment
trac_6724-spell-check-modules-reduced.patch
added
based on Sage 4.1.1.rc2
comment:5 Changed 4 years ago by mvngu
Here I start again, outlining specific steps so that we are in sync on what's going on.
- I took the sage.math binary of Sage 4.1.1.rc2, uncompressed it and ran it:
[mvngu@sage mvngu]$ pwd /scratch/mvngu [mvngu@sage mvngu]$ tar -zxf /home/mvngu/release/sage-4.1.1.rc2-sage.math.washington.edu-x86_64-Linux.tar.gz -C . [mvngu@sage mvngu]$ cd sage-4.1.1.rc2-sage.math.washington.edu-x86_64-Linux/ [mvngu@sage sage-4.1.1.rc2-sage.math.washington.edu-x86_64-Linux]$ ./sage ---------------------------------------------------------------------- | Sage Version 4.1.1.rc2, Release Date: 2009-08-06 | | 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. sage: exit Exiting SAGE (CPU time 0m0.08s, Wall time 0m2.80s). Exiting spawned Gap process. [mvngu@sage sage-4.1.1.rc2-sage.math.washington.edu-x86_64-Linux]$ ./sage -b main <more output messages>
- With this clean slate, the content of the file modules.rst should be as follows:
[mvngu@sage sage-4.1.1.rc2-sage.math.washington.edu-x86_64-Linux]$ cd devel/sage-main/ [mvngu@sage sage-main]$ cat doc/en/reference/modules.rst .. _ch:modules: Modules ======= .. toctree:: :maxdepth: 2 sage/modules/module sage/modules/free_module sage/modules/free_module_element sage/modules/complex_double_vector sage/modules/real_double_vector sage/modules/free_module_homspace sage/modules/free_module_morphism sage/modules/matrix_morphism sage/modules/fg_pid/fgp_module sage/modules/fg_pid/fgp_element sage/modules/fg_pid/fgp_morphism
- Now I merge the patches at #6723, #6731, and #6724 (in that order) using Mercurial queue:
[mvngu@sage sage-main]$ hg qimport http://trac.sagemath.org/sage_trac/raw-attachment/ticket/6723/trac_6723-spell-check-modular.patch && hg qpush adding trac_6723-spell-check-modular.patch to series file applying trac_6723-spell-check-modular.patch Now at: trac_6723-spell-check-modular.patch [mvngu@sage sage-main]$ hg qimport http://trac.sagemath.org/sage_trac/raw-attachment/ticket/6731/trac_6731-spell-check-schemes.patch && hg qpush adding trac_6731-spell-check-schemes.patch to series file applying trac_6731-spell-check-schemes.patch Now at: trac_6731-spell-check-schemes.patch [mvngu@sage sage-main]$ hg qimport http://trac.sagemath.org/sage_trac/raw-attachment/ticket/6724/trac_6724-spell-check-modules.patch && hg qpush adding trac_6724-spell-check-modules.patch to series file applying trac_6724-spell-check-modules.patch Now at: trac_6724-spell-check-modules.patch
- The content of the file modules.rst should not and have not been changed because the patches at #6723, #6731, and #6724 don't touch that file at all. This file controls what goes into the section on modules of the the built reference manual.
[mvngu@sage sage-main]$ cat doc/en/reference/modules.rst .. _ch:modules: Modules ======= .. toctree:: :maxdepth: 2 sage/modules/module sage/modules/free_module sage/modules/free_module_element sage/modules/complex_double_vector sage/modules/real_double_vector sage/modules/free_module_homspace sage/modules/free_module_morphism sage/modules/matrix_morphism sage/modules/fg_pid/fgp_module sage/modules/fg_pid/fgp_element sage/modules/fg_pid/fgp_morphism
- I now rebuild those library files that have changed and then proceed to build the reference manual:
[mvngu@sage sage-main]$ cd ../.. [mvngu@sage sage-4.1.1.rc2-sage.math.washington.edu-x86_64-Linux]$ ./sage -b main <compiler messages> [mvngu@sage sage-4.1.1.rc2-sage.math.washington.edu-x86_64-Linux]$ ./sage -docbuild reference html <output messages>
- The only warnings I see are those relating to bad ReST formatting in sage/graphs/graph.py:
WARNING: /scratch/mvngu/sage-4.1.1.rc2-sage.math.washington.edu-x86_64-Linux/local/lib/python2.6/site-packages/sage/graphs/graph.py:docstring of sage.graphs.graph.GenericGraph.kirchhoff_matrix:56: (WARNING/2) Literal block ends without a blank line; unexpected unindent. WARNING: /scratch/mvngu/sage-4.1.1.rc2-sage.math.washington.edu-x86_64-Linux/local/lib/python2.6/site-packages/sage/graphs/graph.py:docstring of sage.graphs.graph.GenericGraph.laplacian_matrix:56: (WARNING/2) Literal block ends without a blank line; unexpected unindent. WARNING: /scratch/mvngu/sage-4.1.1.rc2-sage.math.washington.edu-x86_64-Linux/local/lib/python2.6/site-packages/sage/graphs/graph.py:docstring of sage.graphs.graph.Graph.clique_number:19: (WARNING/2) Inline literal start-string without end-string.
But this can be resolved with the patch at #6684. - If after following the steps above and you still get the same warnings you reported above, you might instead want to apply the patch trac_6724-spell-check-modules-reduced.patch. It's a reduced version of the patch trac_6724-spell-check-modules.patch with the following hunk removed:
diff -r 87b600f2b8d5 -r e457c012dba6 sage/modules/fg_pid/fgp_morphism.py --- a/sage/modules/fg_pid/fgp_morphism.py +++ b/sage/modules/fg_pid/fgp_morphism.py @@ -441,7 +441,7 @@ raise ValueError, "no lift of element to domain" # Write back in terms of rows of B, and delete rows not corresponding to A, - # since those coresponding to relations + # since those corresponding to relations v = (z*U)[:A.nrows()] # Take the linear combination that v defines.
comment:6 Changed 4 years ago by wuthrich
- Summary changed from [with patch, needs work] spell-check all modules under sage/modules to [with patch, needs review] spell-check all modules under sage/modules
Sorry, I noticed only now, that I have the same problem in without the patch. Everything looks like in your case except that the title of the file is changed.... I will download from scratch and see if I can get it to work.
Since I won't object any more if someone else gives a positive review I change the summary back; maybe someone else will be faster than me.
