#5625: group cohomology -- bad error messages; should indicate an optional 
package
is needed
--------------------------+-------------------------------------------------
 Reporter:  was           |       Owner:  joyner    
     Type:  defect        |      Status:  new       
 Priority:  major         |   Milestone:  sage-3.4.1
Component:  group_theory  |    Keywords:            
--------------------------+-------------------------------------------------
 The following fails because I don't have the optional  gap_packages-*
 package installed:

 {{{
 sage: G = PermutationGroup([[(1,2,3),(4,5)],[(3,4)]])
 sage: G.cohomology(1,3)
 Traceback (most recent call last):
   File "<stdin>", line 1, in <module>
   File
 "/Users/wstein/.sage/sage_notebook/worksheets/admin/59/code/369.py", line
 8, in <module>
     G.cohomology(_sage_const_1 ,_sage_const_3 )
   File "/Users/wstein/build/sage-3.4/local/lib/python2.5/site-
 packages/SQLAlchemy-0.4.6-py2.5.egg/", line 1, in <module>

   File "/Users/wstein/build/sage-3.4/local/lib/python2.5/site-
 packages/sage/groups/perm_gps/permgroup.py", line 1132, in cohomology
     L = eval(gap.eval("GroupCohomology(%s,%s,%s)"%(GG,n,p)))
   File "/Users/wstein/build/sage-3.4/local/lib/python2.5/site-
 packages/sage/interfaces/gap.py", line 479, in eval
     result = Expect.eval(self, input_line, **kwds)
   File "/Users/wstein/build/sage-3.4/local/lib/python2.5/site-
 packages/sage/interfaces/expect.py", line 974, in eval
     return '\n'.join([self._eval_line(L, **kwds) for L in code.split('\n')
 if L != ''])
   File "/Users/wstein/build/sage-3.4/local/lib/python2.5/site-
 packages/sage/interfaces/gap.py", line 723, in _eval_line
     raise RuntimeError, message
 RuntimeError: Gap produced error output
 Variable: 'GroupCohomology' must have a value


    executing GroupCohomology(Group([(3,4), (1,2,3)(4,5)]),1,3);
 }}}

 The error message should say that I have to install that package.

 Incidentally, installing the package doesn't work right now since Sage
 ships gap-4.12 (though I guess we're downgrading to 4.10 soon):

 {{{
 $ sage -i gap_packages-4.4.10_6
 ...
 boom
 mkdir: /Users/wstein/build/sage-3.4/local/lib/gap-4.4.10: No such file or
 directory
 cp: directory /Users/wstein/build/sage-3.4/local/lib/gap-4.4.10/pkg does
 not exist
 Error copying SPKG.txt

 real    0m0.078s
 user    0m0.007s
 sys     0m0.019s
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5625>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to