From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Q0Xoq-0003RG-6C for garchives@archives.gentoo.org; Fri, 18 Mar 2011 11:26:13 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 46B9AE04AB; Fri, 18 Mar 2011 11:25:36 +0000 (UTC) Received: from homiemail-a1.g.dreamhost.com (mailbigip.dreamhost.com [208.97.132.5]) by pigeon.gentoo.org (Postfix) with ESMTP id 16C5BE04AB for ; Fri, 18 Mar 2011 11:25:35 +0000 (UTC) Received: from homiemail-a1.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a1.g.dreamhost.com (Postfix) with ESMTP id 0E1E534806B for ; Fri, 18 Mar 2011 04:25:34 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=velodius.com; h=date:from:to :subject:message-id:in-reply-to:references:mime-version: content-type; q=dns; s=velodius.com; b=Tkg4TzbN2xGFXRvl8URrepXBE ZCSa4TPyYgsWrLqQZxbgWMDf8yAhh6GK8qEF8K8zhEoOfPWUBgGEj0BRNqO3YuBc jbgG+UFyyVfCwYt1qUQU/u18m5CCm0z6ECt7uUUG5Cbz9IRIZ5cZ1SXaQ1w8IGOc kmx9TJoqKijG4hoeK0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=velodius.com; h=date:from :to:subject:message-id:in-reply-to:references:mime-version: content-type; s=velodius.com; bh=EYR44ON0iaMmnhaTEchusylcNos=; b=ZKgxu628tl2H1QoctyCLk6j3ktkYyz1ykOE8VfwBJBooFL8Y3BpiZ9ryh4l18 zBNdVddHSM9Zro9S+lmxcQo8r1ouwDilxmJiqcW8vox7XpMMkNhLc++9Q1Yo4KR/ Pwn2gdT3Acdoy/tMO8E8kQG2cMSuNgSPh5/HLpt3oCHma4= Received: from pcbox-marc (cisne-cs25.upc.es [147.83.182.25]) (Authenticated sender: timer@velodius.com) by homiemail-a1.g.dreamhost.com (Postfix) with ESMTPA id 5854534806A for ; Fri, 18 Mar 2011 04:25:33 -0700 (PDT) Date: Fri, 18 Mar 2011 12:25:30 +0100 From: Marc Vinyals To: gentoo-science@lists.gentoo.org Subject: Re: [gentoo-science] [sage-on-gentoo] sage-notebook is missing default imports Message-ID: <20110318122530.3d50b668@pcbox-marc> In-Reply-To: <201103181645.01377.fbissey@slingshot.co.nz> References: <20110316165715.5e6d16c9@pcbox-marc> <201103180938.22776.fbissey@slingshot.co.nz> <201103181645.01377.fbissey@slingshot.co.nz> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-science@lists.gentoo.org Reply-to: gentoo-science@lists.gentoo.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/XyLRdCzF1gEbnjRc6fnyBag"; protocol="application/pgp-signature" X-Archives-Salt: X-Archives-Hash: d8506cf0130d558417fdbf5eb129da86 --Sig_/XyLRdCzF1gEbnjRc6fnyBag Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable EL Fri, 18 Mar 2011 16:45:01 +1300 Francois Bissey escrigu=C3=A9: > > > Hi, > > >=20 > > > 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: > > >=20 > > > If I run sage-notebook, login and try to run a command as simple > > > as > > >=20 > > > 3; > > >=20 > > > I get a "NameError: name 'Integer' is not defined" error. If I run > > >=20 > > > from sage.rings.integer import Integer; > > > 3; > > >=20 > > > everything works as expected. Also if I run sage -notebook > > > (notice the space) then executing the comand > > >=20 > > > 3; > > >=20 > > > 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? > >=20 > 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. >=20 > Francois >=20 Hi Fran=C3=A7ois, Your fix solved my problems and didn't break anything big for me. Best, Marc. --Sig_/XyLRdCzF1gEbnjRc6fnyBag Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) iEYEARECAAYFAk2DQSoACgkQu4rFT+k3kmSZFACfRaFwZWuc7l+7lpItP2TozLpL I5UAnjgJj5tKho1EqKfTzDqWEDEmUuBg =l1iO -----END PGP SIGNATURE----- --Sig_/XyLRdCzF1gEbnjRc6fnyBag--