#9865: Unable to start singular because the command 'Singular -t --ticks-per-sec
1000' failed
-----------------------+----------------------------------------------------
Reporter: mpatel | Owner: mvngu
Type: defect | Status: new
Priority: major | Milestone:
Component: doctest | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------+----------------------------------------------------
Description changed by mpatel:
Old description:
> Reported by Dan Drake on [http://groups.google.com/group/sage-
> devel/browse_thread/thread/23fd468a4d406389/56ad02c448380af9?#56ad02c448380af9
> sage-devel] and [http://groups.google.com/group/sage-
> release/browse_thread/thread/a865f2fa728335c0/2fbf4ba1859e76bb#2fbf4ba1859e76bb
> sage-release]:
> {{{
> Two builds of 4.3.4 are not doctesting properly for me; both are failing
> the doctest for free_module.py because Singular won't start. The
> failures always end with "TypeError: Unable to start singular because
> the command 'Singular -t --ticks-per-sec 1000' failed."
>
> This happens on two virtual machines: one running Ubuntu Hardy, the
> other running Ubuntu Lucid. I've tried rebuilding Singular, but it
> didn't work in either case. I tried a couple of the doctests manually,
> and they seemed to work, and I can start Singular using the above
> command with no troubles.
>
> I've built 4.3.4 on two different machines (not virtual machines) and
> everything works fine. I'm attaching a log of the failed doctest. Any
> ideas?
> }}}
> Tracebacks:
> {{{
> #!python
> sage -t "devel/sage/sage/modules/free_module.py"
> **********************************************************************
> File "/home/alex/sage-4.3.4/devel/sage/sage/modules/free_module.py", line
> 2533:
> sage: W = M.submodule([x*B[0], 2*B[1]- x*B[2]]); W
> Exception raised:
> Traceback (most recent call last):
> File "/home/alex/sage-4.3.4/local/bin/ncadoctest.py", line 1231, in
> run_one_test
> self.run_one_example(test, example, filename, compileflags)
> File "/home/alex/sage-4.3.4/local/bin/sagedoctest.py", line 38, in
> run_one_example
> OrigDocTestRunner.run_one_example(self, test, example, filename,
> compileflags)
> File "/home/alex/sage-4.3.4/local/bin/ncadoctest.py", line 1172, in
> run_one_example
> compileflags, 1) in test.globs
> File "<doctest __main__.example_69[11]>", line 1, in <module>
> W = M.submodule([x*B[Integer(0)], Integer(2)*B[Integer(1)]-
> x*B[Integer(2)]]); W###line 2533:
> sage: W = M.submodule([x*B[0], 2*B[1]- x*B[2]]); W
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/modules/free_module.py", line 2545, in submodule
> V = self.span(gens, check=check,
> already_echelonized=already_echelonized)
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/modules/free_module.py", line 2461, in span
> self.ambient_module(), gens, check=check,
> already_echelonized=already_echelonized)
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/modules/free_module.py", line 5446, in __init__
> echelonize=True, already_echelonized=already_echelonized)
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/modules/free_module.py", line 4553, in __init__
> basis = self._echelonized_basis(ambient, basis)
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/modules/free_module.py", line 4666, in _echelonized_basis
> d = self._denominator(basis)
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/modules/free_module.py", line 4774, in _denominator
> d = sage.rings.integer.Integer(B[0].denominator())
> File "free_module_element.pyx", line 958, in
> sage.modules.free_module_element.FreeModuleElement.denominator
> (sage/modules/free_module_element.c:8071)
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/rings/polynomial/polynomial_singular_interface.py", line
> 343, in lcm
> return lcm_func(self, singular, have_ring)
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/rings/polynomial/polynomial_singular_interface.py", line
> 451, in lcm_func
> lcm =
> self._singular_(have_ring=have_ring).lcm(right._singular_(have_ring=have_ring))
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/rings/polynomial/polynomial_singular_interface.py", line
> 339, in _singular_
> return _singular_func(self, singular, have_ring)
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/rings/polynomial/polynomial_singular_interface.py", line
> 383, in _singular_func
> self.parent()._singular_(singular).set_ring() #this is expensive
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/rings/polynomial/polynomial_singular_interface.py", line
> 196, in _singular_
> return self._singular_init_(singular)
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/rings/polynomial/polynomial_singular_interface.py", line
> 241, in _singular_init_
> self.__singular = singular.ring(self.characteristic(), _vars,
> order=order, check=False)
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/interfaces/singular.py", line 897, in ring
> R = self('%s,%s,%s'%(char, vars, order), 'ring')
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/interfaces/singular.py", line 660, in __call__
> return SingularElement(self, type, x, False)
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/interfaces/singular.py", line 1109, in __init__
> raise TypeError, x
> TypeError: Unable to start singular because the command 'Singular -t
> --ticks-per-sec 1000' failed.
>
> **********************************************************************
> File "/home/alex/sage-4.3.4/devel/sage/sage/modules/free_module.py", line
> 2538:
> sage: W.ambient_module()
> Expected:
> Ambient free module of rank 3 over the principal ideal domain
> Univariate Polynomial Ring in x over Rational Field
> Got:
> Ambient free module of rank 3 over the principal ideal domain Integer
> Ring
> **********************************************************************
> File "/home/alex/sage-4.3.4/devel/sage/sage/modules/free_module.py", line
> 2681:
> sage: W = M.submodule_with_basis([x*B[0], 2*B[0]- x*B[2]]); W
> Exception raised:
> Traceback (most recent call last):
> File "/home/alex/sage-4.3.4/local/bin/ncadoctest.py", line 1231, in
> run_one_test
> self.run_one_example(test, example, filename, compileflags)
> File "/home/alex/sage-4.3.4/local/bin/sagedoctest.py", line 38, in
> run_one_example
> OrigDocTestRunner.run_one_example(self, test, example, filename,
> compileflags)
> File "/home/alex/sage-4.3.4/local/bin/ncadoctest.py", line 1172, in
> run_one_example
> compileflags, 1) in test.globs
> File "<doctest __main__.example_71[15]>", line 1, in <module>
> W = M.submodule_with_basis([x*B[Integer(0)],
> Integer(2)*B[Integer(0)]- x*B[Integer(2)]]); W###line 2681:
> sage: W = M.submodule_with_basis([x*B[0], 2*B[0]- x*B[2]]); W
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/modules/free_module.py", line 2687, in submodule_with_basis
> V = self.span_of_basis(basis=basis, check=check,
> already_echelonized=already_echelonized)
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/modules/free_module.py", line 2602, in span_of_basis
> already_echelonized=already_echelonized)
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/modules/free_module.py", line 4577, in __init__
> w = self._echelonized_basis(ambient, basis)
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/modules/free_module.py", line 4666, in _echelonized_basis
> d = self._denominator(basis)
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/modules/free_module.py", line 4774, in _denominator
> d = sage.rings.integer.Integer(B[0].denominator())
> File "free_module_element.pyx", line 958, in
> sage.modules.free_module_element.FreeModuleElement.denominator
> (sage/modules/free_module_element.c:8071)
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/rings/polynomial/polynomial_singular_interface.py", line
> 343, in lcm
> return lcm_func(self, singular, have_ring)
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/rings/polynomial/polynomial_singular_interface.py", line
> 451, in lcm_func
> lcm =
> self._singular_(have_ring=have_ring).lcm(right._singular_(have_ring=have_ring))
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/rings/polynomial/polynomial_singular_interface.py", line
> 339, in _singular_
> return _singular_func(self, singular, have_ring)
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/rings/polynomial/polynomial_singular_interface.py", line
> 383, in _singular_func
> self.parent()._singular_(singular).set_ring() #this is expensive
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/rings/polynomial/polynomial_singular_interface.py", line
> 196, in _singular_
> return self._singular_init_(singular)
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/rings/polynomial/polynomial_singular_interface.py", line
> 241, in _singular_init_
> self.__singular = singular.ring(self.characteristic(), _vars,
> order=order, check=False)
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/interfaces/singular.py", line 897, in ring
> R = self('%s,%s,%s'%(char, vars, order), 'ring')
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/interfaces/singular.py", line 660, in __call__
> return SingularElement(self, type, x, False)
> File "/home/alex/sage-4.3.4/local/lib/python/site-
> packages/sage/interfaces/singular.py", line 1109, in __init__
> raise TypeError, x
> TypeError: Unable to start singular because the command 'Singular -t
> --ticks-per-sec 1000' failed.
>
> **********************************************************************
> 2 items had failures:
> 2 of 13 in __main__.example_69
> 1 of 16 in __main__.example_71
> ***Test Failed*** 3 failures.
> For whitespace errors, see the file
> /home/alex/.sage//tmp/.doctest_free_module.py
> [13.0 s]
> }}}
>
> Minh Nguyen reports seeing the same error a Debian 5.0 machine
> (gcc100.fsffrance.org, AMD Opteron(tm) Processor 252 @ 2647.708 MHz) with
> a trial "final" 4.5.3 (essentially the same as 4.5.3.rc0).
> [http://wiki.sagemath.org/devel/BuildFarm/sage-4.5.3?action=AttachFile&do=get&target=gcc100.fsffrance.log.bz2
> Here] is the test log.
New description:
Reported by Dan Drake on [http://groups.google.com/group/sage-
devel/browse_thread/thread/23fd468a4d406389/56ad02c448380af9?#56ad02c448380af9
sage-devel] and [http://groups.google.com/group/sage-
release/browse_thread/thread/a865f2fa728335c0/2fbf4ba1859e76bb#2fbf4ba1859e76bb
sage-release]:
{{{
Two builds of 4.3.4 are not doctesting properly for me; both are failing
the doctest for free_module.py because Singular won't start. The
failures always end with "TypeError: Unable to start singular because
the command 'Singular -t --ticks-per-sec 1000' failed."
This happens on two virtual machines: one running Ubuntu Hardy, the
other running Ubuntu Lucid. I've tried rebuilding Singular, but it
didn't work in either case. I tried a couple of the doctests manually,
and they seemed to work, and I can start Singular using the above
command with no troubles.
I've built 4.3.4 on two different machines (not virtual machines) and
everything works fine. I'm attaching a log of the failed doctest. Any
ideas?
}}}
Tracebacks:
{{{
#!python
sage -t "devel/sage/sage/modules/free_module.py"
**********************************************************************
File "/home/alex/sage-4.3.4/devel/sage/sage/modules/free_module.py", line
2533:
sage: W = M.submodule([x*B[0], 2*B[1]- x*B[2]]); W
Exception raised:
Traceback (most recent call last):
File "/home/alex/sage-4.3.4/local/bin/ncadoctest.py", line 1231, in
run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/home/alex/sage-4.3.4/local/bin/sagedoctest.py", line 38, in
run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/home/alex/sage-4.3.4/local/bin/ncadoctest.py", line 1172, in
run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_69[11]>", line 1, in <module>
W = M.submodule([x*B[Integer(0)], Integer(2)*B[Integer(1)]-
x*B[Integer(2)]]); W###line 2533:
sage: W = M.submodule([x*B[0], 2*B[1]- x*B[2]]); W
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/modules/free_module.py", line 2545, in submodule
V = self.span(gens, check=check,
already_echelonized=already_echelonized)
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/modules/free_module.py", line 2461, in span
self.ambient_module(), gens, check=check,
already_echelonized=already_echelonized)
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/modules/free_module.py", line 5446, in __init__
echelonize=True, already_echelonized=already_echelonized)
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/modules/free_module.py", line 4553, in __init__
basis = self._echelonized_basis(ambient, basis)
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/modules/free_module.py", line 4666, in _echelonized_basis
d = self._denominator(basis)
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/modules/free_module.py", line 4774, in _denominator
d = sage.rings.integer.Integer(B[0].denominator())
File "free_module_element.pyx", line 958, in
sage.modules.free_module_element.FreeModuleElement.denominator
(sage/modules/free_module_element.c:8071)
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/rings/polynomial/polynomial_singular_interface.py", line
343, in lcm
return lcm_func(self, singular, have_ring)
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/rings/polynomial/polynomial_singular_interface.py", line
451, in lcm_func
lcm =
self._singular_(have_ring=have_ring).lcm(right._singular_(have_ring=have_ring))
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/rings/polynomial/polynomial_singular_interface.py", line
339, in _singular_
return _singular_func(self, singular, have_ring)
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/rings/polynomial/polynomial_singular_interface.py", line
383, in _singular_func
self.parent()._singular_(singular).set_ring() #this is expensive
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/rings/polynomial/polynomial_singular_interface.py", line
196, in _singular_
return self._singular_init_(singular)
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/rings/polynomial/polynomial_singular_interface.py", line
241, in _singular_init_
self.__singular = singular.ring(self.characteristic(), _vars,
order=order, check=False)
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/interfaces/singular.py", line 897, in ring
R = self('%s,%s,%s'%(char, vars, order), 'ring')
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/interfaces/singular.py", line 660, in __call__
return SingularElement(self, type, x, False)
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/interfaces/singular.py", line 1109, in __init__
raise TypeError, x
TypeError: Unable to start singular because the command 'Singular -t
--ticks-per-sec 1000' failed.
**********************************************************************
File "/home/alex/sage-4.3.4/devel/sage/sage/modules/free_module.py", line
2538:
sage: W.ambient_module()
Expected:
Ambient free module of rank 3 over the principal ideal domain
Univariate Polynomial Ring in x over Rational Field
Got:
Ambient free module of rank 3 over the principal ideal domain Integer
Ring
**********************************************************************
File "/home/alex/sage-4.3.4/devel/sage/sage/modules/free_module.py", line
2681:
sage: W = M.submodule_with_basis([x*B[0], 2*B[0]- x*B[2]]); W
Exception raised:
Traceback (most recent call last):
File "/home/alex/sage-4.3.4/local/bin/ncadoctest.py", line 1231, in
run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/home/alex/sage-4.3.4/local/bin/sagedoctest.py", line 38, in
run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/home/alex/sage-4.3.4/local/bin/ncadoctest.py", line 1172, in
run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_71[15]>", line 1, in <module>
W = M.submodule_with_basis([x*B[Integer(0)],
Integer(2)*B[Integer(0)]- x*B[Integer(2)]]); W###line 2681:
sage: W = M.submodule_with_basis([x*B[0], 2*B[0]- x*B[2]]); W
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/modules/free_module.py", line 2687, in submodule_with_basis
V = self.span_of_basis(basis=basis, check=check,
already_echelonized=already_echelonized)
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/modules/free_module.py", line 2602, in span_of_basis
already_echelonized=already_echelonized)
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/modules/free_module.py", line 4577, in __init__
w = self._echelonized_basis(ambient, basis)
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/modules/free_module.py", line 4666, in _echelonized_basis
d = self._denominator(basis)
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/modules/free_module.py", line 4774, in _denominator
d = sage.rings.integer.Integer(B[0].denominator())
File "free_module_element.pyx", line 958, in
sage.modules.free_module_element.FreeModuleElement.denominator
(sage/modules/free_module_element.c:8071)
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/rings/polynomial/polynomial_singular_interface.py", line
343, in lcm
return lcm_func(self, singular, have_ring)
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/rings/polynomial/polynomial_singular_interface.py", line
451, in lcm_func
lcm =
self._singular_(have_ring=have_ring).lcm(right._singular_(have_ring=have_ring))
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/rings/polynomial/polynomial_singular_interface.py", line
339, in _singular_
return _singular_func(self, singular, have_ring)
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/rings/polynomial/polynomial_singular_interface.py", line
383, in _singular_func
self.parent()._singular_(singular).set_ring() #this is expensive
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/rings/polynomial/polynomial_singular_interface.py", line
196, in _singular_
return self._singular_init_(singular)
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/rings/polynomial/polynomial_singular_interface.py", line
241, in _singular_init_
self.__singular = singular.ring(self.characteristic(), _vars,
order=order, check=False)
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/interfaces/singular.py", line 897, in ring
R = self('%s,%s,%s'%(char, vars, order), 'ring')
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/interfaces/singular.py", line 660, in __call__
return SingularElement(self, type, x, False)
File "/home/alex/sage-4.3.4/local/lib/python/site-
packages/sage/interfaces/singular.py", line 1109, in __init__
raise TypeError, x
TypeError: Unable to start singular because the command 'Singular -t
--ticks-per-sec 1000' failed.
**********************************************************************
2 items had failures:
2 of 13 in __main__.example_69
1 of 16 in __main__.example_71
***Test Failed*** 3 failures.
For whitespace errors, see the file
/home/alex/.sage//tmp/.doctest_free_module.py
[13.0 s]
}}}
Minh Nguyen reports seeing the same error a
[http://gcc.gnu.org/wiki/CompileFarm GCC compile farm] Debian 5.0 machine
(gcc100.fsffrance.org, AMD Opteron(tm) Processor 252 @ 2647.708 MHz) with
a trial "final" 4.5.3 (essentially the same as 4.5.3.rc0).
[http://wiki.sagemath.org/devel/BuildFarm/sage-4.5.3?action=AttachFile&do=get&target=gcc100.fsffrance.log.bz2
Here] is the test log.
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9865#comment:3>
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.