On Apr 25, 2008, at 3:16 PM, Timothy G Abbott wrote: > > Hello, > > I'm working on building SAGE 3.0 for Debian, but ran into a cython > problem > (error message below): > > I'm guessing the problem is Debian has cython 0.9.6.12 and I need > running > 0.9.6.13.1. Confirmation of this would be useful.
That is correct. > > -Tim Abbott > > > Building sage/misc/cython_c.c because it depends on > sage/misc/cython_c.pyx. > python2.5 `which cython` --embed-positions --incref-local-binop -I > Error converting Pyrex file to C: > ------------------------------------------------------------ > ... > cdef bitset_t a, b, r > > bitset_from_str(a, py_a) > bitset_from_str(b, py_b) > > if a.size != b.size: > ^ > ------------------------------------------------------------ > > /build/sagebuild/sagemath-3.0.alpha6/devel/sage-main/sage/misc/ > misc_c.pyx:360:8: > Object of type 'sage.misc.misc_c.bitset_t' has no attribute 'size' > > Error converting Pyrex file to C: > ------------------------------------------------------------ > ... > cdef bitset_t a, b, r > > bitset_from_str(a, py_a) > bitset_from_str(b, py_b) > > if a.size != b.size: > ^ > ------------------------------------------------------------ > > /build/sagebuild/sagemath-3.0.alpha6/devel/sage-main/sage/misc/ > misc_c.pyx:360:18: > Object of type 'sage.misc.misc_c.bitset_t' has no attribute 'size' > > Error converting Pyrex file to C: > ------------------------------------------------------------ > ... > > if a.size != b.size: > raise ValueError, "inputs must have same size" > > print "a", bitset_string(a) > print "a.size", a.size > ^ > ------------------------------------------------------------ > > /build/sagebuild/sagemath-3.0.alpha6/devel/sage-main/sage/misc/ > misc_c.pyx:364:21: > Object of type 'sage.misc.misc_c.bitset_t' has no attribute 'size' > > Error converting Pyrex file to C: > ------------------------------------------------------------ > ... > if a.size != b.size: > raise ValueError, "inputs must have same size" > > print "a", bitset_string(a) > print "a.size", a.size > print "a.limbs", a.limbs > ^ > ------------------------------------------------------------ > > /build/sagebuild/sagemath-3.0.alpha6/devel/sage-main/sage/misc/ > misc_c.pyx:365:22: > Object of type 'sage.misc.misc_c.bitset_t' has no attribute 'limbs' > > Error converting Pyrex file to C: > ------------------------------------------------------------ > ... > print "a.cmp(b) ", bitset_cmp(a, b) > > bitset_from_str(a, py_a) > bitset_from_str(b, py_b) > > bitset_init(r, a.size) > ^ > ------------------------------------------------------------ > > /build/sagebuild/sagemath-3.0.alpha6/devel/sage-main/sage/misc/ > misc_c.pyx:389:20: > Object of type 'sage.misc.misc_c.bitset_t' has no attribute 'size' > > Error converting Pyrex file to C: > ------------------------------------------------------------ > ... > > print "a.hamming_weight() ", bitset_hamming_weight(a) > print "a.hamming_weight_sparse() ", > bitset_hamming_weight_sparse(a) > > cdef bitset_t s > bitset_init(s, a.size) > ^ > ------------------------------------------------------------ > > /build/sagebuild/sagemath-3.0.alpha6/devel/sage-main/sage/misc/ > misc_c.pyx:418:20: > Object of type 'sage.misc.misc_c.bitset_t' has no attribute 'size' > > Error converting Pyrex file to C: > ------------------------------------------------------------ > ... > print "a.hamming_weight_sparse() ", > bitset_hamming_weight_sparse(a) > > cdef bitset_t s > bitset_init(s, a.size) > > if a.size > 100: > ^ > ------------------------------------------------------------ > > > > --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---