#15575: Remove deprecated functions from symmetric functions
-------------------------------------+-------------------------------------
       Reporter:  zabrocki           |        Owner:
           Type:  task               |       Status:  new
       Priority:  minor              |    Milestone:  sage-6.1
      Component:  combinatorics      |   Resolution:
       Keywords:  deprecate, sf      |    Merged in:
        Authors:  Anne Schilling,    |    Reviewers:  Travis Scrimshaw
  Mike Zabrocki                      |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  cebf1d45e63f0d82877414d39704596483c477c0
  public/combinat/sf/fixes-15575     |     Stopgaps:
   Dependencies:  #15473             |
-------------------------------------+-------------------------------------

Comment (by aschilling):

 Hi Volker,

 Ok, I can reproduce the error now. But how are we supposed to fix it? Here
 are three scenarios and none of them work:
 {{{
 sage: from sage.combinat.sf.new_kschur import kSchur
 sage:
 
sage.structure.sage_object.register_unpickle_override('sage.combinat.sf.kschur',
 'kSchurFunctions_t', kSchur)
 sage: sage.structure.sage_object.unpickle_all()
  * unpickle failure:
 
load('/Users/anne/.sage/temp/d163.math.ucdavis.edu/20631/dir_f3_sBB//pickle_jar/_class__sage_combinat_sf_kschur_kSchurFunctions_t__.sobj')
 /Applications/sage/src/bin/sage-ipython:1: DeprecationWarning:
 OrderedAlphabet is deprecated; use Alphabet instead.
 See http://trac.sagemath.org/8920 for details.
   #!/usr/bin/env python
 /Applications/sage/local/lib/python2.7/site-
 packages/IPython/core/interactiveshell.py:2731: DeprecationWarning: This
 class is replaced by Matrix_modn_dense_float/Matrix_modn_dense_double.
 See http://trac.sagemath.org/4260 for details.
   exec code_obj in self.user_global_ns, self.user_ns
 Failed:
 _class__sage_combinat_sf_kschur_kSchurFunctions_t__.sobj
 ----------------------------------------------------------------------
 ** This error is probably due to an old pickle failing to unpickle.
 ** See sage.structure.sage_object.register_unpickle_override for
 ** how to override the default unpickling methods for (old) pickles.
 ** NOTE: pickles should never be removed from the pickle_jar!
 ----------------------------------------------------------------------
 Successfully unpickled 586 objects.
 Failed to unpickle 1 objects.
 }}}

 {{{
 sage: from sage.combinat.sf.new_kschur import kSchur
 sage:
 
sage.structure.sage_object.register_unpickle_override('sage.combinat.sf.kschur',
 'kSchurFunctions_t', kSchur.Element)
 sage: sage.structure.sage_object.unpickle_all()
  * unpickle failure:
 
load('/Users/anne/.sage/temp/d163.math.ucdavis.edu/20755/dir_Z77uXi//pickle_jar/_class__sage_combinat_sf_kschur_kSchurFunctions_t__.sobj')
 /Applications/sage/src/bin/sage-ipython:1: DeprecationWarning:
 OrderedAlphabet is deprecated; use Alphabet instead.
 See http://trac.sagemath.org/8920 for details.
   #!/usr/bin/env python
 /Applications/sage/local/lib/python2.7/site-
 packages/IPython/core/interactiveshell.py:2731: DeprecationWarning: This
 class is replaced by Matrix_modn_dense_float/Matrix_modn_dense_double.
 See http://trac.sagemath.org/4260 for details.
   exec code_obj in self.user_global_ns, self.user_ns
 Failed:
 _class__sage_combinat_sf_kschur_kSchurFunctions_t__.sobj
 ----------------------------------------------------------------------
 ** This error is probably due to an old pickle failing to unpickle.
 ** See sage.structure.sage_object.register_unpickle_override for
 ** how to override the default unpickling methods for (old) pickles.
 ** NOTE: pickles should never be removed from the pickle_jar!
 ----------------------------------------------------------------------
 Successfully unpickled 586 objects.
 Failed to unpickle 1 objects.
 }}}

 or the next even crashes Sage:

 {{{
 sage: from sage.combinat.sf.new_kschur import kSchur
 sage:
 
sage.structure.sage_object.register_unpickle_override('sage.combinat.sf.kschur',
 ....: 'kSchurFunctions_t', kSchur.Element)
 sage:
 
sage.structure.sage_object.register_unpickle_override('sage.combinat.sf.kschur',
 'kSchurFunctions_t', kSchur)
 sage: sage.structure.sage_object.unpickle_all()
  * unpickle failure:
 
load('/Users/anne/.sage/temp/d163.math.ucdavis.edu/20491/dir_wDLedh//pickle_jar/_class__sage_combinat_sf_kschur_kSchurFunctions_t__.sobj')
 sig_error() without sig_on()
 ------------------------------------------------------------------------
 Unhandled SIGABRT: An abort() occurred in Sage.
 This probably occurred because a *compiled* component of Sage has a bug
 in it and is not properly wrapped with sig_on(), sig_off().
 Sage will now terminate.
 ------------------------------------------------------------------------
 /Applications/sage/sage: line 134: 20491 Abort trap
 "$SAGE_ROOT/src/bin/sage" "$@"
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/15575#comment:38>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to