Gentoo Archives: gentoo-science

From: Marc Vinyals <marcvinyals@××××××××.com>
To: gentoo-science@l.g.o
Subject: Re: [gentoo-science] [sage-on-gentoo] sage-notebook is missing default imports
Date: Fri, 18 Mar 2011 11:26:13
Message-Id: 20110318122530.3d50b668@pcbox-marc
In Reply to: Re: [gentoo-science] [sage-on-gentoo] sage-notebook is missing default imports by Francois Bissey
EL Fri, 18 Mar 2011 16:45:01 +1300
Francois Bissey <fbissey@××××××××××××.nz> escrigué:

> > > Hi, > > > > > > After updating from sage 4.6.1 to 4.6.2 I had trouble working with > > > sage-notebook because default imports were missing. This is what I > > > tried: > > > > > > If I run sage-notebook, login and try to run a command as simple > > > as > > > > > > 3; > > > > > > I get a "NameError: name 'Integer' is not defined" error. If I run > > > > > > from sage.rings.integer import Integer; > > > 3; > > > > > > everything works as expected. Also if I run sage -notebook > > > (notice the space) then executing the comand > > > > > > 3; > > > > > > works. It's not a huge problem, but it kept me rebuilding sage and > > > python for a week. Any idea about why is this happening? > > > I committed a "fix". Tell me if that solve your problems. I hope it > doesn't break other stuff in the process. If it does I will have to > get really invasive one way or another. Not that I mind. > > Francois >
Hi François, Your fix solved my problems and didn't break anything big for me. Best, Marc.

Attachments

File name MIME type
signature.asc application/pgp-signature