#13868: Deal with hooked tp_* functions when using a debug build of Python
--------------------------------+-------------------------------------------
       Reporter:  jpflori       |         Owner:  GeorgSWeber 
           Type:  enhancement   |        Status:  needs_review
       Priority:  major         |     Milestone:  sage-5.6    
      Component:  build         |    Resolution:              
       Keywords:  hook debug    |   Work issues:              
Report Upstream:  N/A           |     Reviewers:              
        Authors:  Volker Braun  |     Merged in:              
   Dependencies:                |      Stopgaps:              
--------------------------------+-------------------------------------------

Comment (by SimonKing):

 With the patches listed at #13877, I get:
 {{{
 /home/simon/SAGE/debug/sage-5.5.rc0/local/lib/python2.7/site-
 packages/sage/all.py:76: RuntimeWarning: tp_compare didn't return -1 or -2
 for exception
   import sage.symbolic.pynac
 ---------------------------------------------------------------------------
 SystemError                               Traceback (most recent call
 last)

 /home/simon/SAGE/debug/sage-5.5.rc0/local/lib/python2.7/site-
 packages/IPython/ipmaker.py in force_import(modname, force_reload)
      61         reload(sys.modules[modname])
      62     else:
 ---> 63         __import__(modname)
      64
      65

 /home/simon/SAGE/debug/sage-5.5.rc0/local/bin/ipy_profile_sage.py in
 <module>()
       5     preparser(True)
       6
 ----> 7     import sage.all_cmdline
       8     sage.all_cmdline._init_cmdline(globals())
       9

 /home/simon/SAGE/debug/sage-5.5.rc0/local/lib/python2.7/site-
 packages/sage/all_cmdline.py in <module>()
      12 try:
      13
 ---> 14     from sage.all import *
      15     from sage.calculus.predefined import x
      16     preparser(on=True)

 /home/simon/SAGE/debug/sage-5.5.rc0/local/lib/python2.7/site-
 packages/sage/all.py in <module>()
      74
      75 # This must come before Calculus -- it initializes the Pynac
 library.
 ---> 76 import sage.symbolic.pynac
      77
      78 from sage.modules.all    import *

 SystemError: Objects/object.c:854: bad argument to internal function
 Error importing ipy_profile_sage - perhaps you should run %upgrade?
 WARNING: Loading of ipy_profile_sage failed.
 }}}
 So, tp_compare does something unexpected here.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13868#comment:8>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to