#7079: parallel doctest broken in Sage 4.1.2.alpha4 if HOME/.sage/tmp doesn't
exist
----------------------+-----------------------------------------------------
Reporter: mvngu | Owner: tbd
Type: defect | Status: new
Priority: critical | Milestone: sage-4.1.3
Component: doctest | Keywords:
Reviewer: | Author:
Merged: |
----------------------+-----------------------------------------------------
Description changed by mvngu:
Old description:
> With a freshly compiled Sage 4.1.2.alpha4, or take the sage.math binary
> for Sage 4.1.2.alpha4, follow these steps and watch the carnage:
>
> 1. Delete the directory HOME/.sage, yes that directory and everything
> under it. Or you could just make sure that HOME/.sage/tmp doesn't exist.
> Yes, it's "tmp", not "temp".
> 1. Go to SAGE_ROOT.
> 1. Open SAGE_ROOT/makefile and give the variable NUM_THREADS a positive
> integer such as 2, or say anything positive integer from 2 to 10 on
> sage.math.
> 1. From SAGE_ROOT, do "make ptestlong" and watch Sage give a bunch of
> file not found errors:
> {{{
> sage -t -long devel/sage/doc/en/tutorial/distributed.rst
> [0.1Traceback (most recent call last):
> File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
> line 754, in <module>
> test_file(argv[1], library_code = library_code)
> File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
> line 587, in test_file
> open(f,"w").write(s)
> IOError: [Errno 2] No such file or directory:
> '/home/mvngu/.sage//tmp/.doctest_tour_algebra.py'
> Traceback (most recent call last):
> File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
> line 754, in <module>
> test_file(argv[1], library_code = library_code)
> File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
> line 587, in test_file
> open(f,"w").write(s)
> IOError: [Errno 2] No such file or directory:
> '/home/mvngu/.sage//tmp/.doctest_tour_help.py'
> Traceback (most recent call last):
> File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
> line 754, in <module>
> test_file(argv[1], library_code = library_code)
> File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
> line 587, in test_file
> open(f,"w").write(s)
> IOError: [Errno 2] No such file or directory:
> '/home/mvngu/.sage//tmp/.doctest_programming.py'
> Traceback (most recent call last):
> File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
> line 754, in <module>
> test_file(argv[1], library_code = library_code)
> File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
> line 587, in test_file
> open(f,"w").write(s)
> IOError: [Errno 2] No such file or directory:
> '/home/mvngu/.sage//tmp/.doctest_tour_polynomial.py'
> Traceback (most recent call last):
> File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
> line 754, in <module>
> test_file(argv[1], library_code = library_code)
> File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
> line 587, in test_file
> open(f,"w").write(s)
> IOError: [Errno 2] No such file or directory:
> '/home/mvngu/.sage//tmp/.doctest_tour_groups.py'
> Traceback (most recent call last):
> File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
> line 754, in <module>
> test_file(argv[1], library_code = library_code)
> File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
> line 587, in test_file
> open(f,"w").write(s)
> IOError: [Errno 2] No such file or directory:
> '/home/mvngu/.sage//tmp/.doctest_tour_plotting.py'
> Traceback (most recent call last):
> File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
> line 754, in <module>
> test_file(argv[1], library_code = library_code)
> File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
> line 587, in test_file
> open(f,"w").write(s)
> IOError: [Errno 2] No such file or directory:
> '/home/mvngu/.sage//tmp/.doctest_introduction.py'
> s]
> }}}
> This defect was introduced by #6861.
New description:
With a freshly compiled Sage 4.1.2.alpha4, or take the sage.math binary
for Sage 4.1.2.alpha4, follow these steps and watch the carnage:
1. Delete the directory HOME/.sage, yes that directory and everything
under it. Or you could just make sure that HOME/.sage/tmp doesn't exist.
Yes, it's "tmp", not "temp".
1. Go to SAGE_ROOT.
1. Open SAGE_ROOT/makefile and give the variable NUM_THREADS a positive
integer such as 2, or say anything positive integer from 2 to 10 on
sage.math.
1. From SAGE_ROOT, do "make ptestlong" and watch Sage give a bunch of
file not found errors:
{{{
sage -t -long devel/sage/doc/en/tutorial/distributed.rst
[0.1Traceback (most recent call last):
File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
line 754, in <module>
test_file(argv[1], library_code = library_code)
File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
line 587, in test_file
open(f,"w").write(s)
IOError: [Errno 2] No such file or directory:
'/home/mvngu/.sage//tmp/.doctest_tour_algebra.py'
Traceback (most recent call last):
File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
line 754, in <module>
test_file(argv[1], library_code = library_code)
File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
line 587, in test_file
open(f,"w").write(s)
IOError: [Errno 2] No such file or directory:
'/home/mvngu/.sage//tmp/.doctest_tour_help.py'
Traceback (most recent call last):
File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
line 754, in <module>
test_file(argv[1], library_code = library_code)
File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
line 587, in test_file
open(f,"w").write(s)
IOError: [Errno 2] No such file or directory:
'/home/mvngu/.sage//tmp/.doctest_programming.py'
Traceback (most recent call last):
File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
line 754, in <module>
test_file(argv[1], library_code = library_code)
File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
line 587, in test_file
open(f,"w").write(s)
IOError: [Errno 2] No such file or directory:
'/home/mvngu/.sage//tmp/.doctest_tour_polynomial.py'
Traceback (most recent call last):
File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
line 754, in <module>
test_file(argv[1], library_code = library_code)
File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
line 587, in test_file
open(f,"w").write(s)
IOError: [Errno 2] No such file or directory:
'/home/mvngu/.sage//tmp/.doctest_tour_groups.py'
Traceback (most recent call last):
File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
line 754, in <module>
test_file(argv[1], library_code = library_code)
File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
line 587, in test_file
open(f,"w").write(s)
IOError: [Errno 2] No such file or directory:
'/home/mvngu/.sage//tmp/.doctest_tour_plotting.py'
Traceback (most recent call last):
File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
line 754, in <module>
test_file(argv[1], library_code = library_code)
File "/scratch/mvngu/release/sage-4.1.2.alpha4/local/bin/sage-doctest",
line 587, in test_file
open(f,"w").write(s)
IOError: [Errno 2] No such file or directory:
'/home/mvngu/.sage//tmp/.doctest_introduction.py'
s]
}}}
This defect was introduced by #6861. The problem has been reported to
[http://groups.google.com/group/sage-
devel/browse_thread/thread/554facc04244da7e sage-devel].
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7079#comment:2>
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
-~----------~----~----~----~------~----~------~--~---