sage: SmallGroup = libgap.SmallGroup
sage: g1 = SmallGroup(8,1)
sage: g2 = gap.SmallGroup(8,1)
....:
sage: g1==g2
---------------------------------------------------------------------------
GAPError Traceback (most recent call last)
Cell In [18], line 1
----> 1 g1==g2
File ~/Public/repo/
github.com/sagemath/sage.git/src/sage/structure/element.pyx:1111, in sage.structure.element.Element.__richcmp__()
1109 return (<Element>self)._richcmp_(other, op)
1110 else:
-> 1111 return coercion_model.richcmp(self, other, op)
1112
1113 cpdef _richcmp_(left, right, int op):
File ~/Public/repo/
github.com/sagemath/sage.git/src/sage/structure/coerce.pyx:1973, in sage.structure.coerce.CoercionModel.richcmp()
1971 # Coerce to a common parent
1972 try:
-> 1973 x, y = self.canonical_coercion(x, y)
1974 except (TypeError, NotImplementedError):
1975 pass
File ~/Public/repo/
github.com/sagemath/sage.git/src/sage/structure/coerce.pyx:1315, in sage.structure.coerce.CoercionModel.canonical_coercion()
1313 x_elt = x
1314 if y_map is not None:
-> 1315 y_elt = (<Map>y_map)._call_(y)
1316 else:
1317 y_elt = y
File ~/Public/repo/
github.com/sagemath/sage.git/src/sage/structure/coerce_maps.pyx:161, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_()
159 print(type(C), C)
160 print(type(C._element_constructor), C._element_constructor)
--> 161 raise
162
163 cpdef Element _call_with_args(self, x, args=(), kwds={}):
File ~/Public/repo/
github.com/sagemath/sage.git/src/sage/structure/coerce_maps.pyx:156, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_()
154 cdef Parent C = self._codomain
155 try:
--> 156 return C._element_constructor(x)
157 except Exception:
158 if print_warnings:
File ~/Public/repo/
github.com/sagemath/sage.git/src/sage/libs/gap/libgap.pyx:318, in sage.libs.gap.libgap.Gap._element_constructor_()
316 else:
317 try:
--> 318 return x._libgap_()
319 except AttributeError:
320 pass
File ~/Public/repo/
github.com/sagemath/sage.git/src/sage/structure/sage_object.pyx:731, in sage.structure.sage_object.SageObject._libgap_()
729 def _libgap_(self):
730 from sage.libs.gap.libgap import libgap
--> 731 return libgap.eval(self._libgap_init_())
732
733 def _libgap_init_(self):
File ~/Public/repo/
github.com/sagemath/sage.git/src/sage/libs/gap/libgap.pyx:404, in sage.libs.gap.libgap.Gap.eval()
402
403 initialize()
--> 404 elem = make_any_gap_element(self, gap_eval(gap_command))
405
406 # If the element is NULL just return None instead
File ~/Public/repo/
github.com/sagemath/sage.git/src/sage/libs/gap/util.pyx:367, in sage.libs.gap.util.gap_eval()
365 try:
366 GAP_Enter()
--> 367 result = GAP_EvalString(cmd)
368 # We can assume that the result object is a GAP PList (plain list)
369 # and we should use functions for PLists directly for now; see
GAPError: Error, Variable: 'f1' must have a value