* [gentoo-science] [sage-on-gentoo] sage-notebook is missing default imports
@ 2011-03-16 15:57 Marc Vinyals
2011-03-17 20:38 ` Francois Bissey
0 siblings, 1 reply; 4+ messages in thread
From: Marc Vinyals @ 2011-03-16 15:57 UTC (permalink / raw
To: gentoo-science
[-- Attachment #1: Type: text/plain, Size: 603 bytes --]
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?
Best,
Marc.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-science] [sage-on-gentoo] sage-notebook is missing default imports
2011-03-16 15:57 [gentoo-science] [sage-on-gentoo] sage-notebook is missing default imports Marc Vinyals
@ 2011-03-17 20:38 ` Francois Bissey
2011-03-18 3:45 ` Francois Bissey
0 siblings, 1 reply; 4+ messages in thread
From: Francois Bissey @ 2011-03-17 20:38 UTC (permalink / raw
To: gentoo-science
> 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?
>
Hi,
I seem to have goofed in my email settings. Anyway I am looking at it.
There are a few oddities when you use sage-notebook - in fact a lot of
notebook related stuff is a bit messy. Hopefully I will sort it out quickly.
Cheers,
Francois
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-science] [sage-on-gentoo] sage-notebook is missing default imports
2011-03-17 20:38 ` Francois Bissey
@ 2011-03-18 3:45 ` Francois Bissey
2011-03-18 11:25 ` Marc Vinyals
0 siblings, 1 reply; 4+ messages in thread
From: Francois Bissey @ 2011-03-18 3:45 UTC (permalink / raw
To: gentoo-science
> > 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-science] [sage-on-gentoo] sage-notebook is missing default imports
2011-03-18 3:45 ` Francois Bissey
@ 2011-03-18 11:25 ` Marc Vinyals
0 siblings, 0 replies; 4+ messages in thread
From: Marc Vinyals @ 2011-03-18 11:25 UTC (permalink / raw
To: gentoo-science
[-- Attachment #1: Type: text/plain, Size: 1148 bytes --]
EL Fri, 18 Mar 2011 16:45:01 +1300
Francois Bissey <fbissey@slingshot.co.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.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-03-18 11:26 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-16 15:57 [gentoo-science] [sage-on-gentoo] sage-notebook is missing default imports Marc Vinyals
2011-03-17 20:38 ` Francois Bissey
2011-03-18 3:45 ` Francois Bissey
2011-03-18 11:25 ` Marc Vinyals
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox