Below is the example extracted from my code. After a few seconds it prints
Traceback (most recent call last):
File "/home/vdbergh/TEX/ANYA/anya/scripts/p1xp1/test_case.py", line 17, in <module>
w = W(w)
^^^^
File "sage/structure/parent.pyx", line 901, in sage.structure.parent.Parent.__call__
File "sage/structure/coerce_maps.pyx", line 164, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_
File "sage/structure/coerce_maps.pyx", line 159, in sage.structure.coerce_maps.DefaultConvertMap_unique._call_
File "/home/vdbergh/sage/src/sage/groups/perm_gps/permgroup.py", line 912, in _element_constructor_
return self.element_class(x, self, check=check)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "sage/groups/perm_gps/permgroup_element.pyx", line 518, in sage.groups.perm_gps.permgroup_element.PermutationGroupElement.__init__
ValueError: invalid data to initialize a permutation
from sage.all import libgap, WeylGroup
elts = ["(1,9)(3,123)(4,11)(10,17)(12,19)(18,25)(20,27)(26,33)(28,35)(34,41)(36,43)(37,44)(42,50)(45,51)(52,57)(53,58)(59,64)(60,65)(66,71)(67,72)(73,78)(79,84)(89,93)(94,98)(99,102)(103,105)(106,108)(111,114)(113,115)(121,129)(124,131)(130,137)(132,139)(138,145)(140,147)(146,153)(148,155)(154,161)(156,163)(157,164)(162,170)(165,171)(172,177)(173,178)(179,184)(180,185)(186,191)(187,192)(193,198)(199,204)(209,213)(214,218)(219,222)(223,225)(226,228)(231,234)(233,235)",
"(1,28)(2,41)(3,159)(4,16)(7,147)(8,43)(9,129)(10,58)(11,141)(12,24)(14,139)(18,64)(19,134)(20,31)(21,131)(23,49)(26,71)(27,127)(30,55)(32,44)(34,46)(35,155)(36,47)(37,70)(38,61)(39,123)(40,51)(42,84)(45,76)(48,57)(52,82)(54,74)(56,65)(60,88)(62,72)(67,92)(68,78)(69,93)(73,96)(81,102)(86,105)(89,97)(90,108)(94,114)(99,104)(101,110)(103,107)(106,109)(112,115)(113,119)(121,148)(122,161)(124,136)(128,163)(130,178)(132,144)(138,184)(140,151)(143,169)(146,191)(150,175)(152,164)(154,166)(156,167)(157,190)(158,181)(160,171)(162,204)(165,196)(168,177)(172,202)(174,194)(176,185)(180,208)(182,192)(187,212)(188,198)(189,213)(193,216)(201,222)(206,225)(209,217)(210,228)(214,234)(219,224)(221,230)(223,227)(226,229)(232,235)(233,239)",
"(1,131)(2,23)(4,129)(5,24)(9,124)(11,121)(13,31)(16,136)(18,37)(21,39)(25,44)(26,45)(29,47)(33,51)(34,53)(41,58)(42,60)(48,63)(50,65)(55,70)(61,76)(62,77)(68,83)(74,88)(85,97)(90,101)(95,104)(100,107)(106,111)(108,114)(112,116)(122,143)(125,144)(133,151)(138,157)(141,159)(145,164)(146,165)(149,167)(153,171)(154,173)(161,178)(162,180)(168,183)(170,185)(175,190)(181,196)(182,197)(188,203)(194,208)(205,217)(210,221)(215,224)(220,227)(226,231)(228,234)(232,236)",
"(1,4)(2,17)(3,136)(5,19)(9,129)(10,23)(11,131)(12,24)(13,27)(16,123)(18,44)(20,31)(21,35)(26,51)(28,39)(29,43)(30,32)(34,58)(36,47)(38,40)(42,65)(46,49)(48,57)(52,63)(54,56)(55,64)(59,70)(61,71)(62,72)(66,76)(67,77)(68,78)(73,83)(74,84)(79,88)(85,93)(89,97)(90,98)(94,101)(95,102)(99,104)(100,105)(103,107)(106,114)(109,110)(112,115)(113,116)(121,124)(122,137)(125,139)(130,143)(132,144)(133,147)(138,164)(140,151)(141,155)(146,171)(148,159)(149,163)(150,152)(154,178)(156,167)(158,160)(162,185)(166,169)(168,177)(172,183)(174,176)(175,184)(179,190)(181,191)(182,192)(186,196)(187,197)(188,198)(193,203)(194,204)(199,208)(205,213)(209,217)(210,218)(214,221)(215,222)(219,224)(220,225)(223,227)(226,234)(229,230)(232,235)(233,236)",
"(2,18)(3,19)(4,125)(5,124)(6,20)(9,24)(12,132)(14,28)(17,32)(22,36)(23,37)(33,48)(38,52)(41,55)(46,59)(50,62)(51,63)(54,67)(58,70)(65,77)(71,82)(78,87)(80,89)(84,92)(86,94)(91,99)(100,106)(105,110)(107,111)(115,117)(122,138)(123,139)(126,140)(129,144)(134,148)(137,152)(142,156)(143,157)(153,168)(158,172)(161,175)(166,179)(170,182)(171,183)(174,187)(178,190)(185,197)(191,202)(198,207)(200,209)(204,212)(206,214)(211,219)(220,226)(225,230)(227,231)(235,237)",
"(5,13)(6,126)(7,14)(12,20)(15,22)(18,26)(19,27)(24,31)(25,33)(30,38)(32,40)(37,45)(44,51)(55,61)(59,66)(62,68)(64,71)(67,73)(70,76)(72,78)(75,80)(77,83)(81,86)(92,96)(95,100)(99,103)(102,105)(104,107)(117,118)(125,133)(127,134)(132,140)(135,142)(138,146)(139,147)(144,151)(145,153)(150,158)(152,160)(157,165)(164,171)(175,181)(179,186)(182,188)(184,191)(187,193)(190,196)(192,198)(195,200)(197,203)(201,206)(212,216)(215,220)(219,223)(222,225)(224,227)(237,238)",
"(2,10)(3,11)(4,124)(5,12)(9,16)(13,20)(21,28)(25,32)(29,36)(30,37)(33,40)(38,45)(41,49)(46,53)(50,56)(54,60)(57,63)(64,70)(71,76)(72,77)(78,83)(84,88)(85,89)(90,94)(95,99)(100,103)(108,110)(109,111)(115,116)(122,130)(123,131)(125,132)(129,136)(133,140)(141,148)(145,152)(149,156)(150,157)(153,160)(158,165)(161,169)(166,173)(170,176)(174,180)(177,183)(184,190)(191,196)(192,197)(198,203)(204,208)(205,209)(210,214)(215,219)(220,223)(228,230)(229,231)(235,236)"]
W=WeylGroup("E8", implementation='permutation')
G = W.subgroup(elts)
for w in libgap.RightTransversal(W, G):
w = W(w)