#20525: gap_packages badly broken
--------------------------------------+------------------------
Reporter: vdelecroix | Owner:
Type: defect | Status: new
Priority: blocker | Milestone: sage-7.2
Component: packages: optional | Resolution:
Keywords: | Merged in:
Authors: | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
Dependencies: | Stopgaps:
--------------------------------------+------------------------
Description changed by jdemeyer:
Old description:
> With Sage 7.2.beta6:
>
> {{{
> $ ./sage --gap
> gap> LoadPackage("HAPcryst");
> #I polymake command not found. Please set POLYMAKE_COMMAND by hand
> ----------------------------------------------------------------
> Loading polymaking 0.8.1
> (A package for using polymake in GAP)
> by Marc Roeder
> ----------------------------------------------------------------
> ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
> Loading Cryst 4.1.12 (Computing with crystallographic groups)
> by Bettina Eick (http://www.icm.tu-bs.de/~beick/),
> Franz Gähler (http://www.math.uni-bielefeld.de/~gaehler/), and
> Werner Nickel (http://www.mathematik.tu-darmstadt.de/~nickel/).
> Homepage: http://www.math.uni-bielefeld.de/~gaehler/gap45/packages.php
> ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
> ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
> Loading CrystCat 1.1.6 (The crystallographic groups catalog)
> by Volkmar Felsch (http://www.math.rwth-aachen.de/~Volkmar.Felsch/) and
> Franz Gähler (http://www.math.uni-bielefeld.de/~gaehler/).
> Homepage: http://www.math.uni-bielefeld.de/~gaehler/gap45/packages.php
> ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
> ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
> Loading AClib 1.2 (Almost Crystallographic Groups - A Library and
> Algorithms)
> by Karel Dekimpe (http://www.kulak.ac.be/~dekimpe) and
> Bettina Eick (http://www.icm.tu-bs.de/~beick).
> Homepage: http://www.icm.tu-bs.de/~beick/so.html
> ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
> #I HAP warning: Set POLYMAKE_PATH manually if needed.
> #I HAP warning: Set NEATO_PATH manually if needed.
> #I HAP warning: Set DISPLAY_PATH manually if needed.
> Error, <opr> is not an operation called from
> <compiled or corrupted statement> called from
> <function "local function">( <arguments> )
> called from read-eval loop at line 162 of /usr/local/src/sage-
> git/local/gap/latest/pkg/Hap1.11/lib/HapCocyclic/gap/ccgroup.gi
> you can 'quit;' to quit to outer loop, or
> you can 'return;' to continue
> }}}
>
> A second issue is a mis-installation of guava:
>
> {{{
> gap> DirectoriesPackagePrograms("guava")[1];
> dir("/usr/local/src/sage-git/local/gap/latest/pkg/guava-3.13/bin/x86_64
> -unknown-linux-gnu-gcc-default64/")
> }}}
>
> but this directory does not exist:
> {{{
> $ ls -l /usr/local/src/sage-git/local/gap/latest/pkg/guava-3.13
> total 168
> -rw-r--r-- 1 jdemeyer jdemeyer 11775 Mar 19 23:17 CHANGES.guava
> -rwxr-xr-x 1 jdemeyer jdemeyer 1918 Mar 19 23:17 configure
> -rw-r--r-- 1 jdemeyer jdemeyer 51189 Mar 19 23:17 COPYING.guava
> drwxr-xr-x 2 jdemeyer jdemeyer 4096 Mar 30 00:32 doc
> -rw-r--r-- 1 jdemeyer jdemeyer 368 Mar 19 23:17 gapdoc.g
> -rw-r--r-- 1 jdemeyer jdemeyer 2059 Mar 19 23:17 HISTORY.guava
> -rw-r--r-- 1 jdemeyer jdemeyer 1364 Mar 19 23:17 init.g
> drwxr-xr-x 2 jdemeyer jdemeyer 4096 Mar 30 00:32 lib
> -rw-r--r-- 1 jdemeyer jdemeyer 35120 Mar 19 23:17 LICENSE
> -rw-r--r-- 1 jdemeyer jdemeyer 2858 Mar 19 23:17 Makefile.in
> -rw-r--r-- 1 jdemeyer jdemeyer 11638 Mar 19 23:17 PackageInfo.g
> -rw-r--r-- 1 jdemeyer jdemeyer 1420 Mar 19 23:17 read.g
> -rw-r--r-- 1 jdemeyer jdemeyer 4882 Mar 19 23:17 README.guava
> -rw-r--r-- 1 jdemeyer jdemeyer 98 Mar 19 23:17 README.md
> drwxr-xr-x 4 jdemeyer jdemeyer 4096 Mar 30 00:32 src
> drwxr-xr-x 2 jdemeyer jdemeyer 4096 Mar 30 00:32 tbl
> drwxr-xr-x 2 jdemeyer jdemeyer 4096 Mar 30 00:32 tst
> }}}
>
> -------------------
>
> {{{
> sage -t --long src/sage/tests/gap_packages.py
> **********************************************************************
> File "src/sage/tests/gap_packages.py", line 8, in sage.tests.gap_packages
> Failed example:
> test_packages(pkgs, only_failures=True) # optional - gap_packages
> Exception raised:
> Traceback (most recent call last):
> File "/usr/local/src/sage-git/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-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 858, in compile_and_execute
> exec(compiled, globs)
> File "<doctest sage.tests.gap_packages[2]>", line 1, in <module>
> test_packages(pkgs, only_failures=True) # optional -
> gap_packages
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/tests/gap_packages.py", line 77, in test_packages
> output = libgap.eval('LoadPackage("{0}")'.format(pkg))
> File "sage/libs/gap/libgap.pyx", line 431, in
> sage.libs.gap.libgap.Gap.eval
> (build/cythonized/sage/libs/gap/libgap.c:4183)
> return make_any_gap_element(self, gap_eval(gap_command))
> File "sage/libs/gap/util.pyx", line 288, in
> sage.libs.gap.util.gap_eval (build/cythonized/sage/libs/gap/util.c:4947)
> raise ValueError('libGAP: '+str(msg).strip())
> ValueError: libGAP: Error, <opr> is not an operation
> **********************************************************************
> File "src/sage/tests/gap_packages.py", line 47, in
> sage.tests.gap_packages.test_packages
> Failed example:
> test_packages(['GAPDoc'])
> Exception raised:
> Traceback (most recent call last):
> File "/usr/local/src/sage-git/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-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 858, in compile_and_execute
> exec(compiled, globs)
> File "<doctest sage.tests.gap_packages.test_packages[1]>", line 1,
> in <module>
> test_packages(['GAPDoc'])
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/tests/gap_packages.py", line 77, in test_packages
> output = libgap.eval('LoadPackage("{0}")'.format(pkg))
> File "sage/libs/gap/libgap.pyx", line 431, in
> sage.libs.gap.libgap.Gap.eval
> (build/cythonized/sage/libs/gap/libgap.c:4183)
> return make_any_gap_element(self, gap_eval(gap_command))
> File "sage/libs/gap/util.pyx", line 288, in
> sage.libs.gap.util.gap_eval (build/cythonized/sage/libs/gap/util.c:4947)
> raise ValueError('libGAP: '+str(msg).strip())
> ValueError: libGAP:
> **********************************************************************
> File "src/sage/tests/gap_packages.py", line 54, in
> sage.tests.gap_packages.test_packages
> Failed example:
> pkgs = all_installed_packages()
> Exception raised:
> Traceback (most recent call last):
> File "/usr/local/src/sage-git/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-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 858, in compile_and_execute
> exec(compiled, globs)
> File "<doctest sage.tests.gap_packages.test_packages[2]>", line 1,
> in <module>
> pkgs = all_installed_packages()
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/tests/gap_packages.py", line 109, in all_installed_packages
> for path in libgap.eval('GAP_ROOT_PATHS').sage():
> File "sage/libs/gap/libgap.pyx", line 431, in
> sage.libs.gap.libgap.Gap.eval
> (build/cythonized/sage/libs/gap/libgap.c:4183)
> return make_any_gap_element(self, gap_eval(gap_command))
> File "sage/libs/gap/util.pyx", line 288, in
> sage.libs.gap.util.gap_eval (build/cythonized/sage/libs/gap/util.c:4947)
> raise ValueError('libGAP: '+str(msg).strip())
> ValueError: libGAP:
> **********************************************************************
> File "src/sage/tests/gap_packages.py", line 55, in
> sage.tests.gap_packages.test_packages
> Failed example:
> test_packages(pkgs) # random output
> Exception raised:
> Traceback (most recent call last):
> File "/usr/local/src/sage-git/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-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 858, in compile_and_execute
> exec(compiled, globs)
> File "<doctest sage.tests.gap_packages.test_packages[3]>", line 1,
> in <module>
> test_packages(pkgs) # random output
> NameError: name 'pkgs' is not defined
> **********************************************************************
> File "src/sage/tests/gap_packages.py", line 105, in
> sage.tests.gap_packages.all_installed_packages
> Failed example:
> all_installed_packages()
> Exception raised:
> Traceback (most recent call last):
> File "/usr/local/src/sage-git/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-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 858, in compile_and_execute
> exec(compiled, globs)
> File "<doctest sage.tests.gap_packages.all_installed_packages[1]>",
> line 1, in <module>
> all_installed_packages()
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/tests/gap_packages.py", line 109, in all_installed_packages
> for path in libgap.eval('GAP_ROOT_PATHS').sage():
> File "sage/libs/gap/libgap.pyx", line 431, in
> sage.libs.gap.libgap.Gap.eval
> (build/cythonized/sage/libs/gap/libgap.c:4183)
> return make_any_gap_element(self, gap_eval(gap_command))
> File "sage/libs/gap/util.pyx", line 288, in
> sage.libs.gap.util.gap_eval (build/cythonized/sage/libs/gap/util.c:4947)
> raise ValueError('libGAP: '+str(msg).strip())
> ValueError: libGAP:
> **********************************************************************
> 3 items had failures:
> 1 of 4 in sage.tests.gap_packages
> 1 of 3 in sage.tests.gap_packages.all_installed_packages
> 3 of 5 in sage.tests.gap_packages.test_packages
> [9 tests, 5 failures, 4.49 s]
> sage -t --long src/sage/coding/linear_code.py
> **********************************************************************
> File "src/sage/coding/linear_code.py", line 3284, in
> sage.coding.linear_code.AbstractLinearCode.spectrum
> Failed example:
> C.spectrum(algorithm="leon") # optional - gap_packages (Guava
> package)
> Exception raised:
> Traceback (most recent call last):
> File "/usr/local/src/sage-git/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-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 858, in compile_and_execute
> exec(compiled, globs)
> File "<doctest
> sage.coding.linear_code.AbstractLinearCode.spectrum[8]>", line 1, in
> <module>
> C.spectrum(algorithm="leon") # optional - gap_packages (Guava
> package)
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/coding/linear_code.py", line 3328, in spectrum
> lines = subprocess.check_output([os.path.join(guava_bin_dir,
> 'wtdist'), input])
> File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
> 566, in check_output
> process = Popen(stdout=PIPE, *popenargs, **kwargs)
> File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
> 710, in __init__
> errread, errwrite)
> File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
> 1335, in _execute_child
> raise child_exception
> OSError: [Errno 2] No such file or directory
> **********************************************************************
> File "src/sage/coding/linear_code.py", line 3292, in
> sage.coding.linear_code.AbstractLinearCode.spectrum
> Failed example:
> C.spectrum() == C.spectrum(algorithm="leon") # optional -
> gap_packages (Guava package)
> Exception raised:
> Traceback (most recent call last):
> File "/usr/local/src/sage-git/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-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 858, in compile_and_execute
> exec(compiled, globs)
> File "<doctest
> sage.coding.linear_code.AbstractLinearCode.spectrum[12]>", line 1, in
> <module>
> C.spectrum() == C.spectrum(algorithm="leon") # optional -
> gap_packages (Guava package)
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/coding/linear_code.py", line 3328, in spectrum
> lines = subprocess.check_output([os.path.join(guava_bin_dir,
> 'wtdist'), input])
> File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
> 566, in check_output
> process = Popen(stdout=PIPE, *popenargs, **kwargs)
> File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
> 710, in __init__
> errread, errwrite)
> File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
> 1335, in _execute_child
> raise child_exception
> OSError: [Errno 2] No such file or directory
> **********************************************************************
> File "src/sage/coding/linear_code.py", line 3296, in
> sage.coding.linear_code.AbstractLinearCode.spectrum
> Failed example:
> C.spectrum() == C.spectrum(algorithm="leon") # optional -
> gap_packages (Guava package)
> Exception raised:
> Traceback (most recent call last):
> File "/usr/local/src/sage-git/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-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 858, in compile_and_execute
> exec(compiled, globs)
> File "<doctest
> sage.coding.linear_code.AbstractLinearCode.spectrum[14]>", line 1, in
> <module>
> C.spectrum() == C.spectrum(algorithm="leon") # optional -
> gap_packages (Guava package)
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/coding/linear_code.py", line 3328, in spectrum
> lines = subprocess.check_output([os.path.join(guava_bin_dir,
> 'wtdist'), input])
> File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
> 566, in check_output
> process = Popen(stdout=PIPE, *popenargs, **kwargs)
> File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
> 710, in __init__
> errread, errwrite)
> File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
> 1335, in _execute_child
> raise child_exception
> OSError: [Errno 2] No such file or directory
> **********************************************************************
> File "src/sage/coding/linear_code.py", line 3300, in
> sage.coding.linear_code.AbstractLinearCode.spectrum
> Failed example:
> C.spectrum() == C.spectrum(algorithm="leon") # optional -
> gap_packages (Guava package)
> Exception raised:
> Traceback (most recent call last):
> File "/usr/local/src/sage-git/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-git/local/lib/python2.7/site-
> packages/sage/doctest/forker.py", line 858, in compile_and_execute
> exec(compiled, globs)
> File "<doctest
> sage.coding.linear_code.AbstractLinearCode.spectrum[16]>", line 1, in
> <module>
> C.spectrum() == C.spectrum(algorithm="leon") # optional -
> gap_packages (Guava package)
> File "/usr/local/src/sage-git/local/lib/python2.7/site-
> packages/sage/coding/linear_code.py", line 3328, in spectrum
> lines = subprocess.check_output([os.path.join(guava_bin_dir,
> 'wtdist'), input])
> File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
> 566, in check_output
> process = Popen(stdout=PIPE, *popenargs, **kwargs)
> File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
> 710, in __init__
> errread, errwrite)
> File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
> 1335, in _execute_child
> raise child_exception
> OSError: [Errno 2] No such file or directory
> **********************************************************************
> 1 item had failures:
> 4 of 18 in sage.coding.linear_code.AbstractLinearCode.spectrum
> [634 tests, 4 failures, 26.04 s]
> ----------------------------------------------------------------------
> sage -t --long src/sage/tests/gap_packages.py # 5 doctests failed
> sage -t --long src/sage/coding/linear_code.py # 4 doctests failed
> ----------------------------------------------------------------------
> }}}
New description:
With Sage 7.2.beta6:
{{{
$ ./sage --gap
gap> LoadPackage("HAPcryst");
#I polymake command not found. Please set POLYMAKE_COMMAND by hand
----------------------------------------------------------------
Loading polymaking 0.8.1
(A package for using polymake in GAP)
by Marc Roeder
----------------------------------------------------------------
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Loading Cryst 4.1.12 (Computing with crystallographic groups)
by Bettina Eick (http://www.icm.tu-bs.de/~beick/),
Franz Gähler (http://www.math.uni-bielefeld.de/~gaehler/), and
Werner Nickel (http://www.mathematik.tu-darmstadt.de/~nickel/).
Homepage: http://www.math.uni-bielefeld.de/~gaehler/gap45/packages.php
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Loading CrystCat 1.1.6 (The crystallographic groups catalog)
by Volkmar Felsch (http://www.math.rwth-aachen.de/~Volkmar.Felsch/) and
Franz Gähler (http://www.math.uni-bielefeld.de/~gaehler/).
Homepage: http://www.math.uni-bielefeld.de/~gaehler/gap45/packages.php
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Loading AClib 1.2 (Almost Crystallographic Groups - A Library and
Algorithms)
by Karel Dekimpe (http://www.kulak.ac.be/~dekimpe) and
Bettina Eick (http://www.icm.tu-bs.de/~beick).
Homepage: http://www.icm.tu-bs.de/~beick/so.html
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
#I HAP warning: Set POLYMAKE_PATH manually if needed.
#I HAP warning: Set NEATO_PATH manually if needed.
#I HAP warning: Set DISPLAY_PATH manually if needed.
Error, <opr> is not an operation called from
<compiled or corrupted statement> called from
<function "local function">( <arguments> )
called from read-eval loop at line 162 of /usr/local/src/sage-
git/local/gap/latest/pkg/Hap1.11/lib/HapCocyclic/gap/ccgroup.gi
you can 'quit;' to quit to outer loop, or
you can 'return;' to continue
}}}
A second issue is a mis-installation of guava:
{{{
gap> DirectoriesPackagePrograms("guava")[1];
dir("/usr/local/src/sage-git/local/gap/latest/pkg/guava-3.13/bin/x86_64
-unknown-linux-gnu-gcc-default64/")
}}}
but this directory does not exist, `bin` is missing below:
{{{
$ ls -l /usr/local/src/sage-git/local/gap/latest/pkg/guava-3.13
total 168
-rw-r--r-- 1 jdemeyer jdemeyer 11775 Mar 19 23:17 CHANGES.guava
-rwxr-xr-x 1 jdemeyer jdemeyer 1918 Mar 19 23:17 configure
-rw-r--r-- 1 jdemeyer jdemeyer 51189 Mar 19 23:17 COPYING.guava
drwxr-xr-x 2 jdemeyer jdemeyer 4096 Mar 30 00:32 doc
-rw-r--r-- 1 jdemeyer jdemeyer 368 Mar 19 23:17 gapdoc.g
-rw-r--r-- 1 jdemeyer jdemeyer 2059 Mar 19 23:17 HISTORY.guava
-rw-r--r-- 1 jdemeyer jdemeyer 1364 Mar 19 23:17 init.g
drwxr-xr-x 2 jdemeyer jdemeyer 4096 Mar 30 00:32 lib
-rw-r--r-- 1 jdemeyer jdemeyer 35120 Mar 19 23:17 LICENSE
-rw-r--r-- 1 jdemeyer jdemeyer 2858 Mar 19 23:17 Makefile.in
-rw-r--r-- 1 jdemeyer jdemeyer 11638 Mar 19 23:17 PackageInfo.g
-rw-r--r-- 1 jdemeyer jdemeyer 1420 Mar 19 23:17 read.g
-rw-r--r-- 1 jdemeyer jdemeyer 4882 Mar 19 23:17 README.guava
-rw-r--r-- 1 jdemeyer jdemeyer 98 Mar 19 23:17 README.md
drwxr-xr-x 4 jdemeyer jdemeyer 4096 Mar 30 00:32 src
drwxr-xr-x 2 jdemeyer jdemeyer 4096 Mar 30 00:32 tbl
drwxr-xr-x 2 jdemeyer jdemeyer 4096 Mar 30 00:32 tst
}}}
-------------------
{{{
sage -t --long src/sage/tests/gap_packages.py
**********************************************************************
File "src/sage/tests/gap_packages.py", line 8, in sage.tests.gap_packages
Failed example:
test_packages(pkgs, only_failures=True) # optional - gap_packages
Exception raised:
Traceback (most recent call last):
File "/usr/local/src/sage-git/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-git/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 858, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.tests.gap_packages[2]>", line 1, in <module>
test_packages(pkgs, only_failures=True) # optional -
gap_packages
File "/usr/local/src/sage-git/local/lib/python2.7/site-
packages/sage/tests/gap_packages.py", line 77, in test_packages
output = libgap.eval('LoadPackage("{0}")'.format(pkg))
File "sage/libs/gap/libgap.pyx", line 431, in
sage.libs.gap.libgap.Gap.eval
(build/cythonized/sage/libs/gap/libgap.c:4183)
return make_any_gap_element(self, gap_eval(gap_command))
File "sage/libs/gap/util.pyx", line 288, in
sage.libs.gap.util.gap_eval (build/cythonized/sage/libs/gap/util.c:4947)
raise ValueError('libGAP: '+str(msg).strip())
ValueError: libGAP: Error, <opr> is not an operation
**********************************************************************
File "src/sage/tests/gap_packages.py", line 47, in
sage.tests.gap_packages.test_packages
Failed example:
test_packages(['GAPDoc'])
Exception raised:
Traceback (most recent call last):
File "/usr/local/src/sage-git/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-git/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 858, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.tests.gap_packages.test_packages[1]>", line 1,
in <module>
test_packages(['GAPDoc'])
File "/usr/local/src/sage-git/local/lib/python2.7/site-
packages/sage/tests/gap_packages.py", line 77, in test_packages
output = libgap.eval('LoadPackage("{0}")'.format(pkg))
File "sage/libs/gap/libgap.pyx", line 431, in
sage.libs.gap.libgap.Gap.eval
(build/cythonized/sage/libs/gap/libgap.c:4183)
return make_any_gap_element(self, gap_eval(gap_command))
File "sage/libs/gap/util.pyx", line 288, in
sage.libs.gap.util.gap_eval (build/cythonized/sage/libs/gap/util.c:4947)
raise ValueError('libGAP: '+str(msg).strip())
ValueError: libGAP:
**********************************************************************
File "src/sage/tests/gap_packages.py", line 54, in
sage.tests.gap_packages.test_packages
Failed example:
pkgs = all_installed_packages()
Exception raised:
Traceback (most recent call last):
File "/usr/local/src/sage-git/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-git/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 858, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.tests.gap_packages.test_packages[2]>", line 1,
in <module>
pkgs = all_installed_packages()
File "/usr/local/src/sage-git/local/lib/python2.7/site-
packages/sage/tests/gap_packages.py", line 109, in all_installed_packages
for path in libgap.eval('GAP_ROOT_PATHS').sage():
File "sage/libs/gap/libgap.pyx", line 431, in
sage.libs.gap.libgap.Gap.eval
(build/cythonized/sage/libs/gap/libgap.c:4183)
return make_any_gap_element(self, gap_eval(gap_command))
File "sage/libs/gap/util.pyx", line 288, in
sage.libs.gap.util.gap_eval (build/cythonized/sage/libs/gap/util.c:4947)
raise ValueError('libGAP: '+str(msg).strip())
ValueError: libGAP:
**********************************************************************
File "src/sage/tests/gap_packages.py", line 55, in
sage.tests.gap_packages.test_packages
Failed example:
test_packages(pkgs) # random output
Exception raised:
Traceback (most recent call last):
File "/usr/local/src/sage-git/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-git/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 858, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.tests.gap_packages.test_packages[3]>", line 1,
in <module>
test_packages(pkgs) # random output
NameError: name 'pkgs' is not defined
**********************************************************************
File "src/sage/tests/gap_packages.py", line 105, in
sage.tests.gap_packages.all_installed_packages
Failed example:
all_installed_packages()
Exception raised:
Traceback (most recent call last):
File "/usr/local/src/sage-git/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-git/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 858, in compile_and_execute
exec(compiled, globs)
File "<doctest sage.tests.gap_packages.all_installed_packages[1]>",
line 1, in <module>
all_installed_packages()
File "/usr/local/src/sage-git/local/lib/python2.7/site-
packages/sage/tests/gap_packages.py", line 109, in all_installed_packages
for path in libgap.eval('GAP_ROOT_PATHS').sage():
File "sage/libs/gap/libgap.pyx", line 431, in
sage.libs.gap.libgap.Gap.eval
(build/cythonized/sage/libs/gap/libgap.c:4183)
return make_any_gap_element(self, gap_eval(gap_command))
File "sage/libs/gap/util.pyx", line 288, in
sage.libs.gap.util.gap_eval (build/cythonized/sage/libs/gap/util.c:4947)
raise ValueError('libGAP: '+str(msg).strip())
ValueError: libGAP:
**********************************************************************
3 items had failures:
1 of 4 in sage.tests.gap_packages
1 of 3 in sage.tests.gap_packages.all_installed_packages
3 of 5 in sage.tests.gap_packages.test_packages
[9 tests, 5 failures, 4.49 s]
sage -t --long src/sage/coding/linear_code.py
**********************************************************************
File "src/sage/coding/linear_code.py", line 3284, in
sage.coding.linear_code.AbstractLinearCode.spectrum
Failed example:
C.spectrum(algorithm="leon") # optional - gap_packages (Guava
package)
Exception raised:
Traceback (most recent call last):
File "/usr/local/src/sage-git/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-git/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 858, in compile_and_execute
exec(compiled, globs)
File "<doctest
sage.coding.linear_code.AbstractLinearCode.spectrum[8]>", line 1, in
<module>
C.spectrum(algorithm="leon") # optional - gap_packages (Guava
package)
File "/usr/local/src/sage-git/local/lib/python2.7/site-
packages/sage/coding/linear_code.py", line 3328, in spectrum
lines = subprocess.check_output([os.path.join(guava_bin_dir,
'wtdist'), input])
File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
566, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
710, in __init__
errread, errwrite)
File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
**********************************************************************
File "src/sage/coding/linear_code.py", line 3292, in
sage.coding.linear_code.AbstractLinearCode.spectrum
Failed example:
C.spectrum() == C.spectrum(algorithm="leon") # optional -
gap_packages (Guava package)
Exception raised:
Traceback (most recent call last):
File "/usr/local/src/sage-git/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-git/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 858, in compile_and_execute
exec(compiled, globs)
File "<doctest
sage.coding.linear_code.AbstractLinearCode.spectrum[12]>", line 1, in
<module>
C.spectrum() == C.spectrum(algorithm="leon") # optional -
gap_packages (Guava package)
File "/usr/local/src/sage-git/local/lib/python2.7/site-
packages/sage/coding/linear_code.py", line 3328, in spectrum
lines = subprocess.check_output([os.path.join(guava_bin_dir,
'wtdist'), input])
File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
566, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
710, in __init__
errread, errwrite)
File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
**********************************************************************
File "src/sage/coding/linear_code.py", line 3296, in
sage.coding.linear_code.AbstractLinearCode.spectrum
Failed example:
C.spectrum() == C.spectrum(algorithm="leon") # optional -
gap_packages (Guava package)
Exception raised:
Traceback (most recent call last):
File "/usr/local/src/sage-git/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-git/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 858, in compile_and_execute
exec(compiled, globs)
File "<doctest
sage.coding.linear_code.AbstractLinearCode.spectrum[14]>", line 1, in
<module>
C.spectrum() == C.spectrum(algorithm="leon") # optional -
gap_packages (Guava package)
File "/usr/local/src/sage-git/local/lib/python2.7/site-
packages/sage/coding/linear_code.py", line 3328, in spectrum
lines = subprocess.check_output([os.path.join(guava_bin_dir,
'wtdist'), input])
File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
566, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
710, in __init__
errread, errwrite)
File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
**********************************************************************
File "src/sage/coding/linear_code.py", line 3300, in
sage.coding.linear_code.AbstractLinearCode.spectrum
Failed example:
C.spectrum() == C.spectrum(algorithm="leon") # optional -
gap_packages (Guava package)
Exception raised:
Traceback (most recent call last):
File "/usr/local/src/sage-git/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-git/local/lib/python2.7/site-
packages/sage/doctest/forker.py", line 858, in compile_and_execute
exec(compiled, globs)
File "<doctest
sage.coding.linear_code.AbstractLinearCode.spectrum[16]>", line 1, in
<module>
C.spectrum() == C.spectrum(algorithm="leon") # optional -
gap_packages (Guava package)
File "/usr/local/src/sage-git/local/lib/python2.7/site-
packages/sage/coding/linear_code.py", line 3328, in spectrum
lines = subprocess.check_output([os.path.join(guava_bin_dir,
'wtdist'), input])
File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
566, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)
File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
710, in __init__
errread, errwrite)
File "/usr/local/src/sage-git/local/lib/python/subprocess.py", line
1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
**********************************************************************
1 item had failures:
4 of 18 in sage.coding.linear_code.AbstractLinearCode.spectrum
[634 tests, 4 failures, 26.04 s]
----------------------------------------------------------------------
sage -t --long src/sage/tests/gap_packages.py # 5 doctests failed
sage -t --long src/sage/coding/linear_code.py # 4 doctests failed
----------------------------------------------------------------------
}}}
--
--
Ticket URL: <http://trac.sagemath.org/ticket/20525#comment:23>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.