Sage 7.2.beta6 released

199 views
Skip to first unread message

Volker Braun

unread,
Apr 28, 2016, 6:53:07 PM4/28/16
to sage-release
As always, you can get the latest beta version from the "develop" git branch. Alternatively, the self-contained source tarball is at http://www.sagemath.org/download-latest.html

c04fdff Updated SageMath version to 7.2.beta6
46bf5cf Trac #17048: Faster Posets.RandomPoset
655da7a Trac #20464: cleanup of ecm interface
62be89a Trac #20381: Patch to brial to get it building again on Cygwin
0e14cd8 Trac #18381: Cholesky decomposition should be real
8a13856 Trac #18497: Update Sphinx to 1.4.1
2e95853 Trac #20498: Clean up multi_modular.pyx
bc255ee Trac #20497: allow to use * for cartesian product of posets
77a0236 Trac #20501: Don't use today() for default arguments
60ec0cc Trac #20496: Escape abbreviated first names in references
ef9a49b Trac #19072: upgrade SageTeX to version 3.0
c4f5db9 Trac #20195: Minor documentation bug in limit
4df5b8d Trac #20346: Add pictures to platonic.py
13d6629 Trac #20502: fix is_zero for RR('nan')
cb86656 Trac #14540: Fix chaining of MILP constraints
1d4bad9 Trac #20345: Add pictures to shape.pyx
e8c3afc Trac #20488: Prepare for Sphinx upgrade
e3b539b Trac #20479: Correct error in vertex_boundary
5b170d6 Trac #20446: GLPKExactBackend - a variation on GLPKBackend that sets a solver parameter and signals errors on integer variables
afc6bfc Trac #20182: Automatic doctest for external softwares
2f431d2 Trac #20109: Add pictures to plot3d.py
97f1af7 Trac #20095: Report broken links in the doc of graphs/
60cbc67 Trac #20492: cblas_libs on cygwin should be a list, not a string
dede5e3 Trac #20491: WeightedIntegerVector returns vectors of rationals, not integers
921a7fd Trac #20483: some more future division in quadratic_form
9a46ec7 Trac #19397: Add support for homogeneous components of a filtered module
77e2a4f Trac #20490: Hash error with multivariate Laurent polynomial rings
e6d94f9 Trac #19190: LatticePoset: add atoms, coatoms, doubly irreducibles etc.
4996796 Trac #14801: Piecewise functions done right
bdccb9d Trac #11187: Implementation of finite reflection groups
592846d Trac #20026: Reverse the scale of colors in Matrix.plot
0cedd22 Trac #20485: The dim() of a quadratic form should be a Sage Integer
5f110b7 Trac #20478: Common base class for LinearFunction and LinearConstraint
cb924b4 Trac #20480: cleanup of centralizer_size
8866868 Trac #20476: change some divisions to floor divisions
d24ca01 Trac #20471: Change all classic divisions to true divisions in combinat folder
69d73ef Trac #20470: Conversion of sparse to dense matrices over F2 is unspeakably slow
310dce0 Trac #20201: Improving Efficiency of LinearCode.NearestNeighborDecoder method
950f0f5 Updated SageMath version to 7.2.beta5

François Bissey

unread,
Apr 28, 2016, 7:14:59 PM4/28/16
to sage-r...@googlegroups.com
Note for sage-on-gentoo users:
sage-9999 now pulls this release.
However non-English documentation is not building and therefore disabled.
This is likely a bug in the new sphinx
https://github.com/cschwan/sage-on-gentoo/issues/416

Francois

Andrew

unread,
Apr 29, 2016, 3:56:27 AM4/29/16
to sage-release
Sage 7.2.beta6 builds on  OS X 10.11.4 (el capitan) with Xcode 7.3 Build version 7D175.

I am unable to build the documentation. As suggested I tried make doc-clean first but this did not help. Log

I then ran make ptestlong and it started by building the documentation and then bombing. Will do sage -t --all --long when I get home.

Andrew
dochtml.log

Dima Pasechnik

unread,
Apr 29, 2016, 5:41:51 AM4/29/16
to sage-release
docs build for me (on Linux), with MAKE="make -j4"
For me the log starts as follows (comparing to your log, it seems that you do -j1, i.e. single-thread):

Building reference manual, first pass.

[combinat ] loading pickled environment... not yet created
[tensor_fr] loading pickled environment... not yet created
[polynomia] loading pickled environment... not yet created
[repl     ] loading pickled environment... not yet created
[repl     ] building [mo]: targets for 0 po files that are out of date
[polynomia] building [mo]: targets for 0 po files that are out of date
[repl     ] building [inventory]: targets for 35 source files that are out of date
[polynomia] building [inventory]: targets for 58 source files that are out of date
...

Could it be that you can buid docs in parallel, but cannot, if you do it single-threaded (as basically noone is doing
right now)?

Dima

Dima Pasechnik

unread,
Apr 29, 2016, 6:22:15 AM4/29/16
to sage-release


On Friday, April 29, 2016 at 10:41:51 AM UTC+1, Dima Pasechnik wrote:
docs build for me (on Linux), with MAKE="make -j4"
For me the log starts as follows (comparing to your log, it seems that you do -j1, i.e. single-thread):

Building reference manual, first pass.

[combinat ] loading pickled environment... not yet created
[tensor_fr] loading pickled environment... not yet created
[polynomia] loading pickled environment... not yet created
[repl     ] loading pickled environment... not yet created
[repl     ] building [mo]: targets for 0 po files that are out of date
[polynomia] building [mo]: targets for 0 po files that are out of date
[repl     ] building [inventory]: targets for 35 source files that are out of date
[polynomia] building [inventory]: targets for 58 source files that are out of date
...

Could it be that you can buid docs in parallel, but cannot, if you do it single-threaded (as basically noone is doing
right now)?

I tried rebuilding docs with MAKE="make -j1", and it worked (on Linux).
So, reproducing this problem proves to be problematic...

William Stein

unread,
Apr 29, 2016, 11:12:44 AM4/29/16
to sage-release
In case you want to quickly try something out, this release is now
sage-develop on SageMathCloud (if you use the terminal).

William
> --
> You received this message because you are subscribed to the Google Groups
> "sage-release" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-release...@googlegroups.com.
> To post to this group, send email to sage-r...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-release.
> For more options, visit https://groups.google.com/d/optout.



--
William (http://wstein.org)

Steven Trogdon

unread,
Apr 29, 2016, 11:26:42 AM4/29/16
to sage-release
As a consequence of http://trac.sagemath.org/ticket/20498 the following has been introduced:

grep -r "Error(f" src/sage/arith/multi_modular.pyx 
            raise ValueError(f"minimum value for lower bound is 2, given: {l_bound}")
            raise ValueError(f"upper bound cannot be greater than {MAX_MODULUS}, given: {u_bound}")
                    raise OverflowError(f"given modulus {p} is larger than {MAX_MODULUS}")

Is the "f" a new syntax change? This causes some build issues on my sage-on-gentoo install.

Error compiling Cython file:
------------------------------------------------------------
...
            Traceback (most recent call last):
            ...
            ArithmeticError: The inverse of 6 modulo 10 is not defined.
        """
        if l_bound < 2:
            raise ValueError(f"minimum value for lower bound is 2, given: {l_bound}")
                             ^
------------------------------------------------------------

sage/arith/multi_modular.pyx:174:30: Expected ')', found 'BEGIN_STRING'

Vanilla Sage seems fine.
---

John H Palmieri

unread,
Apr 29, 2016, 11:28:33 AM4/29/16
to sage-release

Please try "make doc-clean" again. The file multi_modular.pyx seems to be the problem, and in the latest beta, it moved, and this will cause a docbuilding problem until you do "make doc-clean".

Kwankyu Lee

unread,
Apr 30, 2016, 7:01:43 AM4/30/16
to sage-release
As this is the first beta release of Sage with 

Trac #20182: Automatic doctest for external softwares

I ran make ptestall on MacBook Pro, OS X El Capitan. I report the result:

sage$ make ptestall
...

sage -t src/sage/tests/cmdline.py

    [246 tests, 67.00 s]

----------------------------------------------------------------------

sage -t src/sage/doctest/control.py  # 1 doctest failed

sage -t src/sage/repl/rich_output/pretty_print.py  # 1 doctest failed

sage -t src/sage/misc/remote_file.py  # 2 doctests failed

sage -t src/sage/dev/trac_interface.py  # 5 doctests failed

sage -t src/sage/plot/graphics.py  # 2 doctests failed

sage -t src/doc/en/developer/coding_basics.rst  # 1 doctest failed

sage -t src/sage/databases/oeis.py  # 2 doctests failed

sage -t src/sage/arith/misc.py  # 1 doctest failed

sage -t src/sage/combinat/designs/bibd.py  # 1 doctest failed

sage -t src/sage/combinat/integer_lists/invlex.pyx  # 1 doctest failed

sage -t src/sage/dev/digest_transport.py  # 1 doctest failed

sage -t src/sage/dev/git_interface.py  # 2 doctests failed

sage -t src/sage/dev/patch.py  # 3 doctests failed

sage -t src/sage/finance/stock.py  # 12 doctests failed

sage -t src/sage/dev/sagedev.py  # 2 doctests failed

sage -t src/sage/libs/gap/all_documented_functions.py  # Timed out

sage -t src/sage/libs/gap/assigned_names.py  # Timed out

sage -t src/sage/misc/package.py  # 6 doctests failed

sage -t src/sage/plot/plot.py  # 1 doctest failed

sage -t src/sage/plot/plot3d/platonic.py  # Timed out

sage -t src/sage/plot/plot3d/implicit_plot3d.py  # Timed out

sage -t src/sage/plot/plot3d/parametric_plot3d.py  # Timed out

sage -t src/sage/plot/plot3d/parametric_surface.pyx  # Timed out

sage -t src/sage/repl/load.py  # 2 doctests failed

sage -t src/sage/schemes/elliptic_curves/ell_rational_field.py  # 1 doctest failed

sage -t src/sage/structure/sage_object.pyx  # 2 doctests failed

----------------------------------------------------------------------

Total time for all tests: 3242.7 seconds

    cpu time: 5776.2 seconds

    cumulative wall time: 9086.0 seconds

External software detected for doctesting: internet,latex

make: *** [ptestall] Error 5

sage$


Of course, this report should not give a reason to stop a release. 

Volker Braun

unread,
Apr 30, 2016, 7:14:09 AM4/30/16
to sage-release
Cython 0.24 supports f-strings:   https://www.python.org/dev/peps/pep-0498/

Justin C. Walker

unread,
Apr 30, 2016, 1:27:40 PM4/30/16
to sage-r...@googlegroups.com

On Apr 28, 2016, at 15:53 , Volker Braun wrote:

> As always, you can get the latest beta version from the "develop" git
> branch. Alternatively, the self-contained source tarball is at
> http://www.sagemath.org/download-latest.html

Built on OS X 10.11.4 (Quad-core Core i7) w/o problems.
Testing ('ptestlong') produced one failure:

sage -t --long --warn-long 62.2 src/sage/schemes/elliptic_curves/ell_number_field.py # 1 doctest failed
**********************************************************************
File "src/sage/schemes/elliptic_curves/ell_number_field.py", line 22, in sage.schemes.elliptic_curves.ell_number_field
Failed example:
K.<i> = NumberField(x^2+1)
Expected nothing
Got:
doctest:95: SyntaxWarning: import * only allowed at module level
**********************************************************************

Tried to build on 10.6.8, but the build never got started:
***************************************************
You are using Xcode version 3.2.6.
...

Is this no longer supported? I must have missed the discussion.

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income
--------
Experience is what you get
when you don't get what you want.
--------



Francois Bissey

unread,
Apr 30, 2016, 3:47:23 PM4/30/16
to sage-r...@googlegroups.com

> On 1/05/2016, at 05:27, Justin C. Walker <jus...@mac.com> wrote:
>
> sage -t --long --warn-long 62.2 src/sage/schemes/elliptic_curves/ell_number_field.py # 1 doctest failed
> **********************************************************************
> File "src/sage/schemes/elliptic_curves/ell_number_field.py", line 22, in sage.schemes.elliptic_curves.ell_number_field
> Failed example:
> K.<i> = NumberField(x^2+1)
> Expected nothing
> Got:
> doctest:95: SyntaxWarning: import * only allowed at module level
> **********************************************************************

I get
[plot3d ] /scratch2/portage/sci-mathematics/sage-9999/work/sage-9999/src-python2_7/build/lib/sage/functions/piecewise.py:95: SyntaxWarning: import * only allowed at module level

when building the documentation.

François

Andrew

unread,
Apr 30, 2016, 7:25:42 PM4/30/16
to sage-release


On Saturday, 30 April 2016 01:28:33 UTC+10, John H Palmieri wrote:
Please try "make doc-clean" again. The file multi_modular.pyx seems to be the problem, and in the latest beta, it moved, and this will cause a docbuilding problem until you do "make doc-clean".

Using "make doc-clean" did not fix the problem. After trying verious other things without success I took the extreme action of "git clean -f -d -x" and rebuilt everything and this time the documentation built without problems.

Andrew

Justin C. Walker

unread,
Apr 30, 2016, 7:39:13 PM4/30/16
to sage-r...@googlegroups.com
Does it reproduce? My failure does even when run as a singleton...

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Director
Institute for the Enhancement of the Director's Income
--------
"Weaseling out of things is what separates us from the animals.
Well, except the weasel."
- Homer J Simpson
--------


Francois Bissey

unread,
Apr 30, 2016, 10:05:58 PM4/30/16
to sage-r...@googlegroups.com
Not has in doctesting. But each time the documentation is built I get it several times:
--
[repl ] reading sources... [ 50%] sage/repl/ipython_tests
[polynomia] reading sources... [ 22%] sage/rings/polynomial/ideal
/scratch2/portage/sci-mathematics/sage-9999/work/sage-9999/src-python2_7/build/lib/sage/functions/piecewise.py:95: SyntaxWarning: import * only allowed at module level
def __call__(self, function_pieces, **kwds):
[asymptoti] building [mo]: targets for 0 po files that are out of date
--
[function_] reading sources... [ 85%] sage/rings/function_field/function_field_order
[categorie] reading sources... [ 34%] sage/categories/examples/infinite_enumerated_sets
/scratch2/portage/sci-mathematics/sage-9999/work/sage-9999/src-python2_7/build/lib/sage/functions/piecewise.py:95: SyntaxWarning: import * only allowed at module level
def __call__(self, function_pieces, **kwds):
[coding ] writing output... [ 92%] sage/coding/sd_codes
--
[graphs ] reading sources... [ 94%] sage/graphs/strongly_regular_db
[plotting ] reading sources... [ 33%] sage/plot/complex_plot
[plotting ] /scratch2/portage/sci-mathematics/sage-9999/work/sage-9999/src-python2_7/build/lib/sage/functions/piecewise.py:95: SyntaxWarning: import * only allowed at module level
[plotting ] def __call__(self, function_pieces, **kwds):
libpng warning: iTXt: bad compression info
--
libpng warning: iTXt: bad compression info
[combinat ] reading sources... [ 62%] sage/combinat/root_system/reflection_group_real
[plot3d ] /scratch2/portage/sci-mathematics/sage-9999/work/sage-9999/src-python2_7/build/lib/sage/functions/piecewise.py:95: SyntaxWarning: import * only allowed at module level
[plot3d ] def __call__(self, function_pieces, **kwds):
[combinat ] reading sources... [ 62%] sage/combinat/root_system/root_lattice_realization_algebras


François

kcrisman

unread,
Apr 30, 2016, 10:18:27 PM4/30/16
to sage-release


Tried to build on 10.6.8, but the build never got started:
***************************************************
You are using Xcode version 3.2.6.
...

Is this no longer supported?  I must have missed the discussion.


This doesn't surprise me if you do it from scratch; you may have an old enough Xcode that the compiler can't build the gcc required directly, but needs a bootstrap to build the latest gcc (which is apparently written in C++?).  That is what happened to my 10.4 builds some months ago and I didn't have time to pursue it any further.  Though I hadn't seen the "never got started" piece at that time.   Of course, that's just relying on my memory - the computer I used for that wouldn't have had anything close to Xcode 3.2.6, so your problem may be different.

Andrew

unread,
May 1, 2016, 3:27:51 AM5/1/16
to sage-release
Running OS X 10.11.4 (el capitan) with Xcode 7.3 I didn't get any errors with src/sage/schemes/elliptic_curves/ell_number_field.py but I did get the following:

sage -t --long src/sage/dev/sagedev.py  # 3 doctests failed
sage -t --long src/sage/dev/patch.py  # 6 doctests failed

I get these both when running make ptestlong and running them by hand. Full details of these errors below.

I get another error when I try to (re)build the documentation of a single file. For example:
sage --docbuild file=src/sage/algebras/iwahori_hecke_algebra.py html
gives me the following output:
[html     ] loading pickled environment... not yet created
[html     ] Compiling the master document
[html     ] building [mo]: targets for 0 po files that are out of date
[html     ] building [html]: targets for 1 source files that are out of date
[html     ] updating environment: 1 added, 0 changed, 0 removed
[html     ] reading sources... [100%] index
[html     ] Merging environment/index files...
[html     ] ... done (2 todos, 1 index, 3 citations, 1 modules)
[html     ] Exception occurred:
[html     ] File "/usr/local/src/sage/src/sage_setup/docbuild/ext/multidocs.py", line 206, in citation_dir
[html     ] assert app.outdir.startswith(SAGE_DOC)
[html     ] AssertionError
[html     ] The full traceback has been saved in /var/folders/pz/2_c5gpmx3q90fwldvvcfc_x0000325/T/sphinx-err-fE_yPv.log, if you want to report the issue to the developers.
[html     ] Please also report this if it was a user error, so that a better error message can be provided next time.
[html     ] A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
Error building the documentation.

Traceback (most recent call last):

 
File "/usr/local/src/sage/local/lib/python/runpy.py", line 162, in _run_module_as_main
   
"__main__", fname, loader, pkg_name)
 
File "/usr/local/src/sage/local/lib/python/runpy.py", line 72, in _run_code
   
exec code in run_globals
 
File "/usr/local/src/sage/local/lib/python2.7/site-packages/sage_setup/docbuild/__main__.py", line 2, in <module>
    main
()
 
File "/usr/local/src/sage/local/lib/python2.7/site-packages/sage_setup/docbuild/__init__.py", line 1629, in main
    builder
()
 
File "/usr/local/src/sage/local/lib/python2.7/site-packages/sage_setup/docbuild/__init__.py", line 103, in f
    runsphinx
()
 
File "/usr/local/src/sage/local/lib/python2.7/site-packages/sage_setup/docbuild/sphinxbuild.py", line 215, in runsphinx
   
raise exception
OSError: [html     ] Exception occurred:


Note: incremental documentation builds sometimes cause spurious
error messages
. To be certain that these are real errors, run
"make doc-clean" first and try again.

The is is due to the following assert statement  from line 206 of src/sage/src/sage_setup/docbuild/ext/multidocs.py:
assert app.outdir.startswith(SAGE_DOC)
When I looked at this app.outdir points to
$HOME/.sage/docbuild/iwahori_hecke_algebra/output/html
whereas $SAGE_DOC is, of course, in the SAGE_ROOT tree. As there are some changes to sphinx in this beta these may be real problems rather than just mine.

Here are the doctests that fail when I do make testlong:

sage -t --long src/sage/dev/sagedev.py
**********************************************************************
File "src/sage/dev/sagedev.py", line 3650, in sage.dev.sagedev.SageDev.diff
Failed example:
    dev.diff("#1")
Expected:
    diff --git a/ticket3 b/ticket3
    new file mode ...
    index ...
Got:
    diff --git c/ticket3 w/ticket3
    new file mode 100644
    index 0000000..e69de29
**********************************************************************
File "src/sage/dev/sagedev.py", line 3654, in sage.dev.sagedev.SageDev.diff
Failed example:
    dev.diff("ticket/1")
Expected:
    diff --git a/ticket1 b/ticket1
    deleted file mode ...
    index ...
    diff --git a/ticket3 b/ticket3
    new file mode ...
    index ...
Got:
    diff --git c/ticket1 w/ticket1
    deleted file mode 100644
    index d06ee4e..0000000
    --- c/ticket1
    +++ /dev/null
    @@ -1 +0,0 @@
    -ticket1
    \ No newline at end of file
    diff --git c/ticket3 w/ticket3
    new file mode 100644
    index 0000000..e69de29
**********************************************************************
File "src/sage/dev/sagedev.py", line 3678, in sage.dev.sagedev.SageDev.diff
Failed example:
    dev.diff("#1")
Expected:
    diff --git a/ticket1 b/ticket1
    deleted file mode ...
    index ...
    diff --git a/ticket3 b/ticket3
    new file mode ...
    index ...
Got:
    diff --git c/ticket1 w/ticket1
    deleted file mode 100644
    index d06ee4e..0000000
    --- c/ticket1
    +++ /dev/null
    @@ -1 +0,0 @@
    -ticket1
    \ No newline at end of file
    diff --git c/ticket3 w/ticket3
    new file mode 100644
    index 0000000..e69de29
**********************************************************************
1 item had failures:
   3 of  56 in sage.dev.sagedev.SageDev.diff
    [880 tests, 3 failures, 64.25 s]


sage -t --long src/sage/dev/patch.py
**********************************************************************
File "src/sage/dev/patch.py", line 145, in sage.dev.patch.MercurialPatchMixin.?
Failed example:
    dev.import_patch(local_file=patchfile, path_format="new")
Exception raised:

    Traceback (most recent call last):
      File "/usr/local/src/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 496, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/usr/local/src/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 858, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.dev.patch.MercurialPatchMixin.?[11]>", line 1, in <module>
        dev.import_patch(local_file=patchfile, path_format="new")
      File "/usr/local/src/sage/local/lib/python2.7/site-packages/sage/dev/sagedev_wrapper.py", line 182, in wrapped
        return f(*args, **kwargs)
      File "/usr/local/src/sage/local/lib/python2.7/site-packages/sage/dev/patch.py", line 235, in import_patch
        from_path_format=path_format)
      File "/usr/local/src/sage/local/lib/python2.7/site-packages/sage/dev/patch.py", line 1119, in _rewrite_patch
        diff_format=from_diff_format),
      File "/usr/local/src/sage/local/lib/python2.7/site-packages/sage/dev/patch.py", line 1085, in _rewrite_patch_header
        sorted(self._detect_patch_modified_files(lines))))
      File "/usr/local/src/sage/local/lib/python2.7/site-packages/sage/dev/patch.py", line 918, in _detect_patch_modified_files
        diff_format = self._detect_patch_diff_format(lines)
      File "/usr/local/src/sage/local/lib/python2.7/site-packages/sage/dev/patch.py", line 592, in _detect_patch_diff_format
        raise NotImplementedError("Failed to detect diff format.")
    NotImplementedError: Failed to detect diff format.
**********************************************************************
File "src/sage/dev/patch.py", line 156, in sage.dev.patch.MercurialPatchMixin.?
Failed example:
    open("tracked").read()
Exception raised:

    Traceback (most recent call last):
      File "/usr/local/src/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 496, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/usr/local/src/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 858, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.dev.patch.MercurialPatchMixin.?[18]>", line 1, in <module>
        open("tracked").read()
    IOError: [Errno 2] No such file or directory: 'tracked'
**********************************************************************
File "src/sage/dev/patch.py", line 163, in sage.dev.patch.MercurialPatchMixin.?
Failed example:
    dev.import_patch(local_file=patchfile, path_format="new")
Expected:
    Applying: No Subject. Modified: tracked, tracked2
    Patch failed at 0001 No Subject. Modified: tracked, tracked2
    The copy of the patch that failed is found in:
       .../rebase-apply/patch
    <BLANKLINE>
    The patch does not apply cleanly. Reject files will be created for the parts
    that do not apply if you proceed.
    Apply it anyway? [yes/No] y
    The patch did not apply cleanly. Please integrate the `.rej` files that were
    created and resolve conflicts. After you do, type `resolved`. If you want to
    abort this process, type `abort`. [resolved/abort] abort
    Removing tracked.rej
Got:
    There are untracked files in your working directory:
    tracked2
    The patch cannot be imported unless these files are removed.
**********************************************************************
File "src/sage/dev/patch.py", line 176, in sage.dev.patch.MercurialPatchMixin.?
Failed example:
    open("tracked").read()
Exception raised:

    Traceback (most recent call last):
      File "/usr/local/src/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 496, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/usr/local/src/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 858, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.dev.patch.MercurialPatchMixin.?[22]>", line 1, in <module>
        open("tracked").read()
    IOError: [Errno 2] No such file or directory: 'tracked'
**********************************************************************
File "src/sage/dev/patch.py", line 181, in sage.dev.patch.MercurialPatchMixin.?
Failed example:
    dev.import_patch(local_file=patchfile, path_format="new")
Expected:
    Applying: No Subject. Modified: tracked, tracked2
    Patch failed at 0001 No Subject. Modified: tracked, tracked2
    The copy of the patch that failed is found in:
       .../rebase-apply/patch
    <BLANKLINE>
    The patch does not apply cleanly. Reject files will be created for the parts
    that do not apply if you proceed.
    Apply it anyway? [yes/No] y
    The patch did not apply cleanly. Please integrate the `.rej` files that were
    created and resolve conflicts. After you do, type `resolved`. If you want to
    abort this process, type `abort`. [resolved/abort] resolved
    Removing tracked.rej
Got:
    There are untracked files in your working directory:
    tracked2
    The patch cannot be imported unless these files are removed.
**********************************************************************
File "src/sage/dev/patch.py", line 194, in sage.dev.patch.MercurialPatchMixin.?
Failed example:
    open("tracked").read() # we did not actually incorporate the .rej files in this doctest, so nothing has changed
Exception raised:

    Traceback (most recent call last):
      File "/usr/local/src/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 496, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/usr/local/src/sage/local/lib/python2.7/site-packages/sage/doctest/forker.py", line 858, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.dev.patch.MercurialPatchMixin.?[26]>", line 1, in <module>
        open("tracked").read() # we did not actually incorporate the .rej files in this doctest, so nothing has changed
    IOError: [Errno 2] No such file or directory: 'tracked'
**********************************************************************
1 item had failures:
   6 of  34 in sage.dev.patch.MercurialPatchMixin.?
    [102 tests, 6 failures, 1.19 s]

Justin C. Walker

unread,
May 1, 2016, 6:04:26 PM5/1/16
to sage-r...@googlegroups.com

On Apr 30, 2016, at 10:27 , Justin C. Walker wrote:

>
> On Apr 28, 2016, at 15:53 , Volker Braun wrote:
>
>> As always, you can get the latest beta version from the "develop" git
>> branch. Alternatively, the self-contained source tarball is at
>> http://www.sagemath.org/download-latest.html
>
> Built on OS X 10.11.4 (Quad-core Core i7) w/o problems.
> Testing ('ptestlong') produced one failure:
>
> sage -t --long --warn-long 62.2 src/sage/schemes/elliptic_curves/ell_number_field.py # 1 doctest failed
> **********************************************************************
> File "src/sage/schemes/elliptic_curves/ell_number_field.py", line 22, in sage.schemes.elliptic_curves.ell_number_field
> Failed example:
> K.<i> = NumberField(x^2+1)
> Expected nothing
> Got:
> doctest:95: SyntaxWarning: import * only allowed at module level
> **********************************************************************

For grins, I reran the 'ptestlong' test again, trying to verify the hypothesis regarding insanity.

All tests passed. This is after several tries, both full runs and the single test above.

Does this mean I'm sane?

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income
--------
When LuteFisk is outlawed,
Only outlaws will have LuteFisk
--------



Jeroen Demeyer

unread,
May 2, 2016, 6:41:46 AM5/2/16
to sage-r...@googlegroups.com
On 2016-05-01 01:25, Andrew wrote:
> Using "make doc-clean" did not fix the problem. After trying verious
> other things without success I took the extreme action of "git clean -f
> -d -x" and rebuilt everything and this time the documentation built
> without problems.

I cannot reproduce this issue. If anybody can reproduce, let me know.

William Stein

unread,
May 2, 2016, 5:31:05 PM5/2/16
to sage-release
Hi,

I built this but "anything??" results in a traceback. This looks like
a serious bug, which doctesting might not catch. Is it just me (quite
possible, since I built 7.2.beta5 first)? Sorry for the noise if this
is just me.

~/tmp$ sage-develop
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 7.2.beta6, Release Date: 2016-04-28 │
│ Type "notebook()" for the browser-based notebook interface. │
│ Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Warning: this is a prerelease version, and it may be unstable. ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
sage: sin??
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-dafd56141c6c> in <module>()
----> 1 get_ipython().magic(u'pinfo2 sin')

/projects/sage/sage-develop/local/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc
in magic(self, arg_s)
2161 magic_name, _, magic_arg_s = arg_s.partition(' ')
2162 magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
-> 2163 return self.run_line_magic(magic_name, magic_arg_s)
2164
2165 #-------------------------------------------------------------------------

/projects/sage/sage-develop/local/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc
in run_line_magic(self, magic_name, line)
2082 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
2083 with self.builtin_trap:
-> 2084 result = fn(*args,**kwargs)
2085 return result
2086

<decorator-gen-76> in pinfo2(self, parameter_s, namespaces)

/projects/sage/sage-develop/local/lib/python2.7/site-packages/IPython/core/magic.pyc
in <lambda>(f, *a, **k)
191 # but it's overkill for just that one bit of state.
192 def magic_deco(arg):
--> 193 call = lambda f, *a, **k: f(*a, **k)
194
195 if callable(arg):

/projects/sage/sage-develop/local/lib/python2.7/site-packages/IPython/core/magics/namespace.pyc
in pinfo2(self, parameter_s, namespaces)
67 '%pinfo2 object' is just a synonym for object?? or ??object."""
68 self.shell._inspect('pinfo', parameter_s, detail_level=1,
---> 69 namespaces=namespaces)
70
71 @skip_doctest

/projects/sage/sage-develop/local/lib/python2.7/site-packages/IPython/core/interactiveshell.pyc
in _inspect(self, meth, oname, namespaces, **kw)
1549 pmethod(info.obj, oname, formatter)
1550 elif meth == 'pinfo':
-> 1551 pmethod(info.obj, oname, formatter, info, **kw)
1552 else:
1553 pmethod(info.obj, oname)

/projects/sage/sage-develop/local/lib/python2.7/site-packages/IPython/core/oinspect.pyc
in pinfo(self, obj, oname, formatter, info, detail_level)
640 - detail_level: if set to 1, more information is given.
641 """
--> 642 text = self._format_info(obj, oname, formatter, info,
detail_level)
643 if text:
644 page.page(text)

/projects/sage/sage-develop/local/lib/python2.7/site-packages/IPython/core/oinspect.pyc
in _format_info(self, obj, oname, formatter, info, detail_level)
550 """Format an info dict as text"""
551 info = self.info(obj, oname=oname, formatter=formatter,
--> 552 info=info, detail_level=detail_level)
553 displayfields = []
554 def add_fields(fields):

/projects/sage/sage-develop/local/lib/python2.7/site-packages/IPython/core/oinspect.pyc
in info(self, obj, oname, formatter, info, detail_level)
682 ds += "\nDocstring:\n" + obj.__doc__
683 else:
--> 684 ds = getdoc(obj)
685 if ds is None:
686 ds = '<no docstring>'

/projects/sage/sage-develop/src/sage/misc/lazy_import.pyx in
sage.misc.lazy_import.LazyImport.__call__
(/projects/sage/sage-develop/src/build/cythonized/sage/misc/lazy_import.c:3627)()
384 True
385 """
--> 386 return self._get_object()(*args, **kwds)
387
388 def __repr__(self):

/projects/sage/sage-develop/local/lib/python2.7/site-packages/sage/misc/sageinspect.pyc
in sage_getdoc(obj, obj_name, embedded_override)
1827 return ''
1828 r = sage_getdoc_original(obj)
-> 1829 s = sage.misc.sagedoc.format(r,
embedded=(embedded_override or EMBEDDED_MODE))
1830
1831 # Fix object naming

/projects/sage/sage-develop/local/lib/python2.7/site-packages/sage/misc/sagedoc.py
in format(s, embedded)
666 if not embedded:
667 s = process_mathtt(s)
--> 668 s = process_extlinks(s, embedded=embedded)
669 s = detex(s, embedded=embedded)
670 return s

/projects/sage/sage-develop/local/lib/python2.7/site-packages/sage/misc/sagedoc.py
in process_extlinks(s, embedded)
465 oldpath = sys.path
466 sys.path = [os.path.join(SAGE_DOC_SRC, 'common')] + oldpath
--> 467 from conf import extlinks
468 sys.path = oldpath
469 for key in extlinks:

ImportError: No module named conf
sage:
> --
> You received this message because you are subscribed to the Google Groups
> "sage-release" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-release...@googlegroups.com.
> To post to this group, send email to sage-r...@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-release.
> For more options, visit https://groups.google.com/d/optout.



--
William (http://wstein.org)

Jeroen Demeyer

unread,
May 2, 2016, 5:37:10 PM5/2/16
to sage-r...@googlegroups.com
On 2016-05-02 23:30, William Stein wrote:
> sage: sin??

Works for me...

Volker Braun

unread,
May 2, 2016, 6:32:44 PM5/2/16
to sage-release
Does it depend on the directory that you are in? We do have . in sys.path so there are a bunch of things that can go wrong. E.g. 

$ cd $SAGE_ROOT/src/sage
$ sage
sage: sin??
[...]
AttributeError: 'module' object has no attribute 'DocTestParser'

Justin C. Walker

unread,
May 2, 2016, 6:59:03 PM5/2/16
to sage-r...@googlegroups.com

> On May 2, 2016, at 15:32, Volker Braun <vbrau...@gmail.com> wrote:
>
> Does it depend on the directory that you are in? We do have . in sys.path so there are a bunch of things that can go wrong. E.g.
>
> $ cd $SAGE_ROOT/src/sage
> $ sage
> sage: sin??
> [...]
> AttributeError: 'module' object has no attribute ‘DocTestParser'

FWIW, this reproduces in this directory ( $SAGE_ROOT/src/sage), but not in other randomly chosen directories (eg., subdirectories of this one).

This is on OS X, 10.10.5.

HTH
Reply all
Reply to author
Forward
0 new messages