Ask Your Question

Revision history [back]

It might be a circular dependency. Instead of importing at the top of the file, try importing within the class or method or function where you actually use it; that might help. That is, instead of

from sage.rings.polynomial.multi_polynomial_sequence import algebraic_dependence
def f(x,y):
    ...

try

def f(x,y):
    from sage.rings.polynomial.multi_polynomial_sequence import algebraic_dependence
    ...