#9828: Upgrade to Cython 0.13
---------------------------+------------------------------------------------
   Reporter:  mpatel       |       Owner:  tbd       
       Type:  enhancement  |      Status:  needs_work
   Priority:  major        |   Milestone:            
  Component:  packages     |    Keywords:            
     Author:               |    Upstream:  N/A       
   Reviewer:               |      Merged:            
Work_issues:               |  
---------------------------+------------------------------------------------
Changes (by leif):

  * status:  needs_review => needs_work


Comment:

 Hmmm, patches still apply (without rejects) to Sage 4.6.alpha2[pre2], spkg
 installs ok, and {{{./sage -b}}} also works.

 But after that, Sage doesn't start (Sphinx raises the same exception):
 {{{
 ...
 Testing that Sage starts...
 Traceback (most recent call last):
   File "/home/leif/Sage/sage-4.6.alpha2pre2/local/bin/sage-eval", line 4,
 in <module>
     from sage.all import *
   File "/home/leif/Sage/sage-4.6.alpha2pre2/local/lib/python2.6/site-
 packages/sage/all.py", line 64, in <module>
     from sage.misc.all       import *         # takes a while
   File "/home/leif/Sage/sage-4.6.alpha2pre2/local/lib/python2.6/site-
 packages/sage/misc/all.py", line 67, in <module>
     from sage_input import sage_input
   File "/home/leif/Sage/sage-4.6.alpha2pre2/local/lib/python2.6/site-
 packages/sage/misc/sage_input.py", line 163, in <module>
     from sage.misc.functional import parent
   File "/home/leif/Sage/sage-4.6.alpha2pre2/local/lib/python2.6/site-
 packages/sage/misc/functional.py", line 34, in <module>
     import sage.interfaces.expect
   File "/home/leif/Sage/sage-4.6.alpha2pre2/local/lib/python2.6/site-
 packages/sage/interfaces/expect.py", line 52, in <module>
     from sage.structure.parent_base import ParentWithBase
   File "parent_base.pyx", line 1, in init sage.structure.parent_base
 (sage/structure/parent_base.c:1934)
   File "parent_old.pyx", line 1, in init sage.structure.parent_old
 (sage/structure/parent_old.c:7031)
   File "parent.pyx", line 383, in init sage.structure.parent
 (sage/structure/parent.c:20048)
 AttributeError: type object 'sage.structure.parent.Parent' has no
 attribute '__getattr__'
 Sage failed to startup.
 make: *** [ptestlong] Error 1
 }}}

 {{{./sage -ba}}} (tried after that) doesn't work either, due to newly
 merged Cython code:
 {{{
 *** TOUCHING ALL CYTHON (.pyx) FILES ***
 scons: `install' is up to date.

 ----------------------------------------------------------
 sage: Building and installing modified Sage library files.


 Installing c_lib
 scons: `install' is up to date.
 Updating Cython code....
 Building modified file
 sage/algebras/quatalg/quaternion_algebra_element.pyx.
 Building modified file
 sage/algebras/quatalg/quaternion_algebra_cython.pyx.
 Building modified file sage/calculus/var.pyx.
 ...
 Building modified file sage/ext/interpreters/wrapper_rr.pyx.
 Building modified file sage/ext/interpreters/wrapper_py.pyx.
 Building modified file sage/ext/interpreters/wrapper_el.pyx.
 Execute 271 commands (using 8 threads)

 Error converting Pyrex file to C:
 ------------------------------------------------------------
 ...
     cdef int *vertices
     cdef int **line_h_out
     cdef int **line_h_in
     cdef list g_vertices
     cdef int i
     cdef bool directed
         ^
 ------------------------------------------------------------

 
/home/leif/Sage/sage-4.6.alpha2pre2/devel/sage-9828-cython/sage/graphs/generic_graph_pyx.pxd:26:9:
 'bool' is not a type identifier
 ...
 python `which cython` --embed-positions --directive
 cdivision=True,autotestdict=False
 -I/home/leif/Sage/sage-4.6.alpha2pre2/devel/sage-9828-cython -o
 sage/gsl/callback.c sage/gsl/callback.pyx
 sage/gsl/callback.pyx -->
 /home/leif/Sage/sage-4.6.alpha2pre2/local//lib/python/site-
 packages//sage/gsl/callback.pyx
 python `which cython` --embed-positions --directive
 cdivision=True,autotestdictwarning:
 
/home/leif/Sage/sage-4.6.alpha2pre2/devel/sage-9828-cython/sage/gsl/gsl_array.pyx:1:0:
 __getslice__, __setslice__, and __delslice__ are not supported by Python
 3, use __getitem__, __setitem__, and __delitem__ instead
 warning:
 
/home/leif/Sage/sage-4.6.alpha2pre2/devel/sage-9828-cython/sage/gsl/fft.pyx:1:0:
 __getslice__, __setslice__, and __delslice__ are not supported by Python
 3, use __getitem__, __setitem__, and __delitem__ instead
 Error running command, failed with status 256.
 sage: There was an error installing modified sage library code.
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9828#comment:22>
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