Yes, gap.load_package("tomlib") works and running the
"SymmetricGroup(7).conjugacy_classes_subgroups()" command doesn't work even
tomlib is imported. I cleared the gap workspace and it doesn't help either.

Isuru

On Sun, Jun 23, 2019 at 4:39 PM Dima Pasechnik <dimp...@gmail.com> wrote:

> does
>
> sage: gap.load_package("tomlib")
>
> work?
>
> if it does, do you get the same error message if you run your command
> after this one?
>
> On Sun, 23 Jun 2019 15:25 Isuru Fernando, <isu...@gmail.com> wrote:
>
>> In the conda package for gap, we packaged almost all of the gap packages
>> (136 of 145) and sage pexpect gives an error for the following,
>>
>> sage: SymmetricGroup(7).conjugacy_classes_subgroups()
>>
>> saying,
>> RuntimeError: Gap produced error output
>> Error, sorry, the GAP Tables Of Marks Library is not installed
>>
>> I checked gap separately and tomlib imports fine and also running the
>> equivalent command on gap runs fine. When I run the command in gap with the
>> sage created workspace I get the same issue.
>>
>> I removed all gap packages except for the 18 packages that sage installs,
>> cleared the cache and it works. So, this is clearly an issue with a package
>> that sage doesn't install.
>>
>> Has anyone seen such an error before?
>>
>> Isuru
>>
>>
>>
>>
>> ---------------------------------------------------------------------------
>> RuntimeError                              Traceback (most recent call
>> last)
>> <ipython-input-1-f1931822b935> in <module>()
>> ----> 1 SymmetricGroup(Integer(7)).conjugacy_classes_subgroups()
>>
>> /projects/3ae7bec7-0b36-47fd-9e01-c1fda619cf35/conda-sagelib-tests/sagemath/local/lib/python2.7/site-packages/sage/groups/perm_gps/permgroup.pyc
>> in conjugacy_classes_subgroups(self)
>>    3372         - David Joyner (2006-10)
>>    3373         """
>> -> 3374         cl = self._gap_().ConjugacyClassesSubgroups()
>>    3375         return [self.subgroup(gap_group=sub.Representative()) for
>> sub in cl]
>>    3376
>>
>> /projects/3ae7bec7-0b36-47fd-9e01-c1fda619cf35/conda-sagelib-tests/sagemath/local/lib/python2.7/site-packages/sage/interfaces/interface.pyc
>> in __call__(self, *args, **kwds)
>>
>>
>>     661
>>     662     def __call__(self, *args, **kwds):
>> --> 663         return self._obj.parent().function_call(self._name,
>> [self._obj] + list(args), kwds)
>>     664
>>     665     def help(self):
>>
>> /projects/3ae7bec7-0b36-47fd-9e01-c1fda619cf35/conda-sagelib-tests/sagemath/local/lib/python2.7/site-packages/sage/interfaces/gap.pyc
>> in function_call(self, function, args, kwds)
>>
>>
>>     937             # We combine the two commands so we only run eval()
>> once and the
>>     938             #   only output would be from the second command
>> --> 939             res = self.eval(marker+cmd)
>>     940         else:
>>     941             self.eval(marker)
>>
>> /projects/3ae7bec7-0b36-47fd-9e01-c1fda619cf35/conda-sagelib-tests/sagemath/local/lib/python2.7/site-packages/sage/interfaces/gap.pyc
>> in eval(self, x, newlines, strip, split_lines, **kwds)
>>
>>
>>     581             if not input_line.endswith(';'):
>>     582                 input_line += ';'
>> --> 583         result = Expect.eval(self, input_line, **kwds)
>>     584         if not newlines:
>>     585             result = result.replace("\\\n","")
>>
>> /projects/3ae7bec7-0b36-47fd-9e01-c1fda619cf35/conda-sagelib-tests/sagemath/local/lib/python2.7/site-packages/sage/interfaces/expect.pyc
>> in eval(self, code, strip, synchronize, locals, allow_use_file,
>> split_lines, **kwds)
>>
>>    1350                 elif split_lines:
>>    1351                     return '\n'.join([self._eval_line(L,
>> allow_use_file=allow_use_file, **kwds)
>> -> 1352                                         for L in code.split('\n')
>> if L != ''])
>>    1353                 else:
>>    1354                     return self._eval_line(code,
>> allow_use_file=allow_use_file, **kwds)
>>
>> /projects/3ae7bec7-0b36-47fd-9e01-c1fda619cf35/conda-sagelib-tests/sagemath/local/lib/python2.7/site-packages/sage/interfaces/gap.pyc
>> in _eval_line(self, line, allow_use_file, wait_for_prompt,
>> restart_if_needed)
>>
>>     788                     return ''
>>     789             else:
>> --> 790                 raise RuntimeError(message)
>>     791
>>     792         except KeyboardInterrupt:
>>
>> RuntimeError: Gap produced error output
>> Error, sorry, the GAP Tables Of Marks Library is not installed
>>
>>    executing
>> __SAGE_LAST__:="__SAGE_LAST__";;ConjugacyClassesSubgroups(\$sage1);;
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "sage-devel" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to sage-devel+unsubscr...@googlegroups.com.
>> To post to this group, send email to sage-devel@googlegroups.com.
>> Visit this group at https://groups.google.com/group/sage-devel.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/sage-devel/CA%2B01voOFt2NxM%3DHoRWNfORifmOqX%2B_ULHe-BNY6PK-rEZ6JheQ%40mail.gmail.com
>> <https://groups.google.com/d/msgid/sage-devel/CA%2B01voOFt2NxM%3DHoRWNfORifmOqX%2B_ULHe-BNY6PK-rEZ6JheQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to sage-devel+unsubscr...@googlegroups.com.
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at https://groups.google.com/group/sage-devel.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-devel/CAAWYfq1%3DjdZ5Emm4Eorm5Y4e1BFPQ1DwuxUdE00Z6aCfoANqqQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/sage-devel/CAAWYfq1%3DjdZ5Emm4Eorm5Y4e1BFPQ1DwuxUdE00Z6aCfoANqqQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-devel.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-devel/CA%2B01voNdo67M5%3DiBNeq5ut-iZvzGwjKRafO-%3D5j2j5Pe0WKkig%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to