On Wednesday, February 17, 2016 at 7:26:18 AM UTC, Daniel Krenn wrote: > > On 2016-02-17 08:05, Jeroen Demeyer wrote: > > On 2016-02-17 07:33, Daniel Krenn wrote: > >> Calling this in my working directory with > >> sage problem.spyx > >> fails with > >> Traceback (most recent call last): > >> ... > >> ImportError: cannot import name ZZ > >> > >> What can I do to make it work? > > > > import sage.all first. > > problem.spyx > ------------ > import sage.all > from sage.rings.real_interval_field import RealIntervalField # fails > RealIntervalField(100)(4.2) > ------------ > > does not work either (same error as before; in line 2) >
this does not work at sage: prompt either, for the simple reason that there is no such thing! Here is what you can import (at sage prompt after import you hit tab to get this) sage: from sage.rings.real_interval_field import RealIntervalFieldElement __reduce__RealIntervalFieldElement RealIntervalField_class is_RealIntervalField __reduce__RealIntervalField is_RealIntervalFieldElement -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
