On Thursday, June 20, 2013 9:28:29 AM UTC-5, Smitty Horne wrote:
> I have installed the Sage program and, as far as I can tell, installed the 
> matroids portion (including patches). But when I try to run the command 'from 
> sage.matroids.all import *', I get an error that says "No module named 
> matroids.all". Do any of you have an idea on what I am missing? Thank you 
> very much.

The command I used which caused the error was from sage.matroids.all import *. 
I added the matroids (I think this one worked) by using 'sage -hg clone 
https://bitbucket.org/matroid/sage_matroids' and '../sage setup.py install' 
from the shell prompt, but got the following errors on the second command:

Error compiling Cython file:
------------------------------------------------------------
...
        versionB = 0
        size = 0
        limbs = 0
        longsize = 0
        for i from 0 <= i < self.nrows():
            versionB, size, limbs, longsize, data = bitset_pickle(self._M[i])
                                                                ^
------------------------------------------------------------

sage/matroids/lean_matrix.pyx:1366:65: undeclared name not builtin: 
bitset_pickle

Error compiling Cython file:
------------------------------------------------------------
...
        versionB = 0
        size = 0
        limbs = 0
        longsize = 0
        for i from 0 <= i < self.nrows():
            versionB, size, limbs, longsize, data = bitset_pickle(self._M[i])
                                                                        ^
------------------------------------------------------------

sage/matroids/lean_matrix.pyx:1366:73: Cannot convert 'bitset_t' to Python 
object

Error compiling Cython file:
------------------------------------------------------------
...
    if version != 0:
        raise TypeError("object was created with newer version of Sage. Please 
upgrade.")
    nrows, ncols, versionB, size, limbs, longsize, M = data
    A = BinaryMatrix(nrows, ncols)
    for i from 0 <= i < nrows:
        bitset_unpickle(A._M[i], (versionB, size, limbs, longsize, M[i]))
                      ^
------------------------------------------------------------

sage/matroids/lean_matrix.pyx:1397:23: undeclared name not builtin: 
bitset_unpickle

Error compiling Cython file:
------------------------------------------------------------
...
    if version != 0:
        raise TypeError("object was created with newer version of Sage. Please 
upgrade.")
    nrows, ncols, versionB, size, limbs, longsize, M = data
    A = BinaryMatrix(nrows, ncols)
    for i from 0 <= i < nrows:
        bitset_unpickle(A._M[i], (versionB, size, limbs, longsize, M[i]))
                           ^
------------------------------------------------------------

sage/matroids/lean_matrix.pyx:1397:28: Cannot convert 'bitset_t' to Python 
object

Error compiling Cython file:
------------------------------------------------------------
...
        versionB = 0
        size = 0
        limbs = 0
        longsize = 0
        for i from 0 <= i < self.nrows():
            versionB, size, limbs, longsize, data = bitset_pickle(self._M0[i])
                                                                         ^
------------------------------------------------------------

sage/matroids/lean_matrix.pyx:1885:74: Cannot convert 'bitset_t' to Python 
object

Error compiling Cython file:
------------------------------------------------------------
...
        limbs = 0
        longsize = 0
        for i from 0 <= i < self.nrows():
            versionB, size, limbs, longsize, data = bitset_pickle(self._M0[i])
            M0.append(data)
            versionB, size, limbs, longsize, data = bitset_pickle(self._M1[i])
                                                                         ^
------------------------------------------------------------

sage/matroids/lean_matrix.pyx:1887:74: Cannot convert 'bitset_t' to Python 
object

Error compiling Cython file:
------------------------------------------------------------
...
    if version != 0:
        raise TypeError("object was created with newer version of Sage. Please 
upgrade.")
    nrows, ncols, versionB, size, limbs, longsize, M0, M1 = data
    A = TernaryMatrix(nrows, ncols)
    for i from 0 <= i < nrows:
        bitset_unpickle(A._M0[i], (versionB, size, limbs, longsize, M0[i]))
                            ^
------------------------------------------------------------

sage/matroids/lean_matrix.pyx:1918:29: Cannot convert 'bitset_t' to Python 
object

Error compiling Cython file:
------------------------------------------------------------
...
        raise TypeError("object was created with newer version of Sage. Please 
upgrade.")
    nrows, ncols, versionB, size, limbs, longsize, M0, M1 = data
    A = TernaryMatrix(nrows, ncols)
    for i from 0 <= i < nrows:
        bitset_unpickle(A._M0[i], (versionB, size, limbs, longsize, M0[i]))
        bitset_unpickle(A._M1[i], (versionB, size, limbs, longsize, M1[i]))
                            ^
------------------------------------------------------------

sage/matroids/lean_matrix.pyx:1919:29: Cannot convert 'bitset_t' to Python 
object

Error compiling Cython file:
------------------------------------------------------------
...
        size = 0
        limbs = 0
        longsize = 0
        ring = self._gf4
        for i from 0 <= i < self.nrows():
            versionB, size, limbs, longsize, data = bitset_pickle(self._M0[i])
                                                                         ^
------------------------------------------------------------

sage/matroids/lean_matrix.pyx:2450:74: Cannot convert 'bitset_t' to Python 
object

Error compiling Cython file:
------------------------------------------------------------
...
        longsize = 0
        ring = self._gf4
        for i from 0 <= i < self.nrows():
            versionB, size, limbs, longsize, data = bitset_pickle(self._M0[i])
            M0.append(data)
            versionB, size, limbs, longsize, data = bitset_pickle(self._M1[i])
                                                                         ^
------------------------------------------------------------

sage/matroids/lean_matrix.pyx:2452:74: Cannot convert 'bitset_t' to Python 
object

Error compiling Cython file:
------------------------------------------------------------
...
    if version != 0:
        raise TypeError("object was created with newer version of Sage. Please 
upgrade.")
    nrows, ncols, ring, versionB, size, limbs, longsize, M0, M1 = data
    A = QuaternaryMatrix(nrows, ncols, ring=ring)
    for i from 0 <= i < nrows:
        bitset_unpickle(A._M0[i], (versionB, size, limbs, longsize, M0[i]))
                            ^
------------------------------------------------------------

sage/matroids/lean_matrix.pyx:2483:29: Cannot convert 'bitset_t' to Python 
object

Error compiling Cython file:
------------------------------------------------------------
...
        raise TypeError("object was created with newer version of Sage. Please 
upgrade.")
    nrows, ncols, ring, versionB, size, limbs, longsize, M0, M1 = data
    A = QuaternaryMatrix(nrows, ncols, ring=ring)
    for i from 0 <= i < nrows:
        bitset_unpickle(A._M0[i], (versionB, size, limbs, longsize, M0[i]))
        bitset_unpickle(A._M1[i], (versionB, size, limbs, longsize, M1[i]))
                            ^
------------------------------------------------------------

sage/matroids/lean_matrix.pyx:2484:29: Cannot convert 'bitset_t' to Python 
object
Error running command, failed with status 256.

When I installed the patches, I used 
'hg_sage.apply("trac_7477_setup_doc_load.patch")'; similar for the other patch. 
I did rebuild after running these two commands.

I am using Sage version 5.9, released 2013-04-30.

Thank you.

-- 
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 post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to