Skip to content

rubik.solve doesn't work (sage -t --long groups/perm_gps/cubegroup.py fails.) #570

Description

@williamstein
sage -t --long groups/perm_gps/cubegroup.py                 **********************************************************************
File "cubegroup.py", line 979:
    sage: rubik.solve(state)  # long time; *computationally intensive* even for simple moves
Exception raised:
    Traceback (most recent call last):
      File "/home/was/s/local/lib/python2.5/doctest.py", line 1212, in __run
        compileflags, 1) in test.globs
      File "<doctest __main__.example_15[2]>", line 1, in <module>
        rubik.solve(state)  # long time; *computationally intensive* even for simple moves###line 979:
    sage: rubik.solve(state)  # long time; *computationally intensive* even for simple moves
      File "/home/was/s/local/lib/python2.5/site-packages/sage/groups/perm_gps/cubegroup.py", line 999, in solve
        soln = hom.PreImagesRepresentative(gap(str(g)))
      File "/home/was/s/local/lib/python2.5/site-packages/sage/interfaces/expect.py", line 674, in __call__
        return cls(self, x)
      File "/home/was/s/local/lib/python2.5/site-packages/sage/interfaces/expect.py", line 904, in __init__
        raise TypeError, x
    TypeError: Gap produced error output
    Syntax error: literal expected in /home/was/.sage//temp/ubuntu/13323//interfac\
    e//tmp line 1
    $sage14:={'right': [[19, 29, 32], [18, 0, 31], [17, 28, 30]], 'up': [[3, 5, 38\
    ], [2, 0, 36], [1, 4, 25]], 'back': [[48, 26, 27], [45, 0, 37], [43, 39, 40]],\
     'down': [[41, 42, 11], [44, 0, 21], [46, 47, 24]], 'front': [[9, 10, 8], [20,\
     0, 7], [22, 23, 6]], 'left': [[33, 34, 35], [12, 0, 13], [14, 15, 16]]};;
             ^

       executing Read("/home/was/.sage//temp/ubuntu/13323//interface//tmp");
**********************************************************************
1 items had failures:
   1 of   3 in __main__.example_15
***Test Failed*** 1 failures.
For whitespace errors, see the file .doctest_cubegroup.py
         [13.5 s]

Component: combinatorics

Issue created by migration from https://trac.sagemath.org/ticket/570

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions