Hi all, is there a way of saving (a list of) GAP objects so that they can be recovered in a different session?
This is a minimal example of what we get right now. In my particular situation, the group(s) are obtained from the Small Group Library (contained in the database-gap optional package) so they cannot be easily converted to sage groups: sage: G = gap.SymmetricGroup(4) sage: save(G, "Ggap") sage: exit And after opening sage again: sage: H = load("Ggap") sage: H --------------------------------------------------------------------------- ValueError Traceback (most recent call last) /Users/javier/code/<ipython console> in <module>() /Applications/sage/local/lib/python2.7/site-packages/IPython/ Prompts.pyc in __call__(self, arg) 550 551 # and now call a possibly user-defined print mechanism --> 552 manipulated_val = self.display(arg) 553 554 # user display hooks can change the variable to be stored in /Applications/sage/local/lib/python2.7/site-packages/IPython/ Prompts.pyc in _display(self, arg) 576 return IPython.generics.result_display(arg) 577 except TryNext: --> 578 return self.shell.hooks.result_display(arg) 579 580 # Assign the default display method: /Applications/sage/local/lib/python2.7/site-packages/IPython/hooks.pyc in __call__(self, *args, **kw) 139 #print "prio",prio,"cmd",cmd #dbg 140 try: --> 141 ret = cmd(*args, **kw) 142 return ret 143 except ipapi.TryNext, exc: /Applications/sage/local/lib/python2.7/site-packages/sage/misc/ displayhook.pyc in result_display(ip_self, obj) 148 # IPython's default result_display() uses the IPython.genutils.Term.cout stream. 149 # See also local/lib/python2.6/site-packages/IPython/ hooks.py. --> 150 print_obj(IPython.genutils.Term.cout, obj) 151 152 def displayhook(obj): /Applications/sage/local/lib/python2.7/site-packages/sage/misc/ displayhook.pyc in print_obj(out_stream, obj) 140 if _check_tall_list_and_print(out_stream, obj): 141 return --> 142 print >>out_stream, `obj` 143 144 def result_display(ip_self, obj): /Applications/sage/local/lib/python2.7/site-packages/sage/interfaces/ gap.pyc in __repr__(self) 714 2 715 """ --> 716 s = ExpectElement.__repr__(self) 717 if s.find('must have a value') != -1: 718 raise RuntimeError, "An error occurred creating an object in %s from:\n'%s'\n%s"%(self.parent().name(), self._create, s) /Applications/sage/local/lib/python2.7/site-packages/sage/interfaces/ interface.pyc in __repr__(self) 869 870 def __repr__(self): --> 871 self._check_valid() 872 try: 873 if self._get_using_file: /Applications/sage/local/lib/python2.7/site-packages/sage/interfaces/ expect.pyc in _check_valid(self) 1157 raise ValueError, "The %s session in which this object was defined is no longer running."%P.name() 1158 except AttributeError: -> 1159 raise ValueError, "The session in which this object was defined is no longer running." 1160 return P 1161 ValueError: The session in which this object was defined is no longer running. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org