Opened 10 years ago

Closed 10 years ago

Last modified 4 years ago

#6314 closed defect (fixed)

[with patch, positive review] optional doctest failure -- many failures in linear_codes related to wtdist

Reported by: was Owned by: tbd
Priority: major Milestone: sage-4.1
Component: packages: optional Keywords:
Cc: Merged in: sage-4.1.alpha0
Authors: David Joyner Reviewers: Robert Miller
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Description (last modified by chapoton)

sage -t -long --optional devel/sage/sage/coding/linear_code.py
sh: /scratch/wstein/build/sage-4.0.2.alpha3/local/lib/gap-4.4.10/pkg/guava3.6/bin/leon/wtdist: not found
sh: /scratch/wstein/build/sage-4.0.2.alpha3/local/lib/gap-4.4.10/pkg/guava3.6/bin/leon/wtdist: not found
sh: /scratch/wstein/build/sage-4.0.2.alpha3/local/lib/gap-4.4.10/pkg/guava3.6/bin/leon/wtdist: not found
**********************************************************************
File "/scratch/wstein/build/sage-4.0.2.alpha3/devel/sage-main/sage/coding/linear_code.py", line 2188:
    sage: C.spectrum(method="leon")   # requires optional GAP package Guava
Exception raised:
    Traceback (most recent call last):
      File "/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_44[10]>", line 1, in <module>
        C.spectrum(method="leon")   # requires optional GAP package Guava###line 2188:
    sage: C.spectrum(method="leon")   # requires optional GAP package Guava
      File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5/site-packages/sage/coding/linear_code.py", line 2236, in spectrum
        raise RuntimeError("Problem calling Leon's wtdist program.")
    RuntimeError: Problem calling Leon's wtdist program.
**********************************************************************
File "/scratch/wstein/build/sage-4.0.2.alpha3/devel/sage-main/sage/coding/linear_code.py", line 2196:
    sage: C.spectrum() == C.spectrum(method="leon")   # requires optional GAP package Guava
Exception raised:
    Traceback (most recent call last):
      File "/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_44[14]>", line 1, in <module>
        C.spectrum() == C.spectrum(method="leon")   # requires optional GAP package Guava###line 2196:
    sage: C.spectrum() == C.spectrum(method="leon")   # requires optional GAP package Guava
      File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5/site-packages/sage/coding/linear_code.py", line 2236, in spectrum
        raise RuntimeError("Problem calling Leon's wtdist program.")
    RuntimeError: Problem calling Leon's wtdist program.
**********************************************************************
File "/scratch/wstein/build/sage-4.0.2.alpha3/devel/sage-main/sage/coding/linear_code.py", line 2200:
    sage: C.spectrum() == C.spectrum(method="leon")   # requires optional GAP package Guava
Exception raised:
    Traceback (most recent call last):
      File "/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_44[16]>", line 1, in <module>
        C.spectrum() == C.spectrum(method="leon")   # requires optional GAP package Guava###line 2200sh: /scratch/wstein/build/sage-4.0.2.alpha3/local/lib/gap-4.4.10/pkg/guava3.6/bin/leon/wtdist: not found
:
    sage: C.spectrum() == C.spectrum(method="leon")   # requires optional GAP package Guava
      File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5/site-packages/sage/coding/linear_code.py", line 2236, in spectrum
        raise RuntimeError("Problem calling Leon's wtdist program.")
    RuntimeError: Problem calling Leon's wtdist program.
**********************************************************************
File "/scratch/wstein/build/sage-4.0.2.alpha3/devel/sage-main/sage/coding/linear_code.py", line 2204:
    sage: C.spectrum() == C.spectrum(method="leon")   # requires optional GAP package Guava
Exception raised:
    Traceback (most recent call last):
      File "/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line 1231, in run_one_test
        self.run_one_example(test, example, filename, compileflags)
      File "/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/sagedoctest.py", line 38, in run_one_example
        OrigDocTestRunner.run_one_example(self, test, example, filename, compileflags)
      File "/scratch/wstein/build/sage-4.0.2.alpha3/local/bin/ncadoctest.py", line 1172, in run_one_example
        compileflags, 1) in test.globs
      File "<doctest __main__.example_44[18]>", line 1, in <module>
        C.spectrum() == C.spectrum(method="leon")   # requires optional GAP package Guava###line 2204:
    sage: C.spectrum() == C.spectrum(method="leon")   # requires optional GAP package Guava
      File "/scratch/wstein/build/sage-4.0.2.alpha3/local/lib/python2.5/site-packages/sage/coding/linear_code.py", line 2236, in spectrum
        raise RuntimeError("Problem calling Leon's wtdist program.")
    RuntimeError: Problem calling Leon's wtdist program.
**********************************************************************
1 items had failures:
   4 of  19 in __main__.example_44
***Test Failed*** 4 failures.
For whitespace errors, see the file /home/wstein/build/sage-4.0.2.alpha3/tmp/.doctest_linear_code.py
 [22.0 s]

Attachments (1)

trac_6314.patch (1.1 KB) - added by wdj 10 years ago.
applies to 4.0.2.rc1

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by wdj

applies to 4.0.2.rc1

comment:1 Changed 10 years ago by wdj

  • Summary changed from optional doctest failure -- many failures in linear_codes related to wtdist to [with patch, needs review] optional doctest failure -- many failures in linear_codes related to wtdist

Patch applies fine to 4.0.2.rc1 and passes sage -tp 1 SAGE_ROOT/devel/sage/doc/en/constructions/. Also the builds sage -docbuild constructions html (resp., pdf) went fine and sage -t -long --optional devel/sage/sage/coding/linear_code.py passes.

comment:2 Changed 10 years ago by wdj

From an email:

You should make a ticket for fixing that problem too and put a link to it from 6314. - William

The guava binaries are now currently being compiled properly due to a problem in the "newest-version gap" script (in the gap_packages*.spkg spkg-install script). This is fixed in http://trac.sagemath.org/sage_trac/ticket/6352.

comment:3 Changed 10 years ago by rlm

  • Summary changed from [with patch, needs review] optional doctest failure -- many failures in linear_codes related to wtdist to [with patch, positive review] optional doctest failure -- many failures in linear_codes related to wtdist

This is an easy review- the patch is simple, applies, and tests pass with or without the optional flag.

comment:4 Changed 10 years ago by rlm

  • Authors set to David Joyner
  • Merged in set to sage-4.1.alpha0
  • Resolution set to fixed
  • Reviewers set to Robert Miller
  • Status changed from new to closed

comment:5 Changed 4 years ago by chapoton

  • Description modified (diff)
  • Report Upstream set to N/A
Note: See TracTickets for help on using tickets.