On Nov 10, 2007 7:55 PM, John Voight <[EMAIL PROTECTED]> wrote:
>
> When I add
>
> from sage.matrix.constructor import matrix
>
> then I get the error:
>
> /home/jvoight/sage/local/lib/python2.5/site-packages/sage/matrix/
> constructor.py in <module>()
>      19
> #*****************************************************************************
>      20
> ---> 21 import sage.rings.all as rings
>      22 import sage.matrix.matrix_space as matrix_space
>      23 from sage.structure.sequence import Sequence
>
> <type 'exceptions.AttributeError'>: 'module' object has no attribute
> 'all'

That's because you've made a circular import.  In rings you import constructor,
and in constructor you import rings!  So it's impossible to resolve.
What you have to do is import from constructor *right* before you
actually use it
(in the body of your function).


>
> If I change this line to
>
> import sage.rings as rings
>
> then Sage gives me a Unhandled SIGSEGV.
>
> Help, JV
>
>
>
> >
>



-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~---------~--~----~------------~-------~--~----~
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://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to