Hello,

Sage version: 9.0, Release Date 2020-01-01
installed through arch linux package manager

I tried to run the code below in Jupyter

%%cython
include "sage/data_structures/bitset.pxi"

but then it returns a long list of error and I believe the most relevant 
one is as below.  
(If necessary, I can provide the full error message.)

Could someone help and give me some advice?  

PS I have checked that the bitset.pxi on my machine is the same as the 
lastest version on the develop branch.
https://github.com/sagemath/sage/blob/develop/src/sage/data_structures/bitset.pxi


RuntimeError: Error compiling Cython file:
------------------------------------------------------------
...
    """
    if size <= 0:
        raise ValueError("bitset capacity must be greater than 0")

    bits.size = size
    bits.limbs = (size - 1) / (8 * sizeof(mp_limb_t)) + 1
                                                     ^
------------------------------------------------------------

/usr/lib/python3.8/site-packages/sage/data_structures/bitset.pxi:84:54: 
Cannot assign type 'double' to 'mp_size_t'

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/736279d7-fa28-4d8c-9ead-69ff7b84a0e5%40googlegroups.com.

Reply via email to