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 1Q0QdC-0002CP-Vo for garchives@archives.gentoo.org; Fri, 18 Mar 2011 03:45:43 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8AB091C00E; Fri, 18 Mar 2011 03:45:04 +0000 (UTC) Received: from mxi2.callplus.net.nz (mx194.callplus.net.nz [202.180.66.194]) by pigeon.gentoo.org (Postfix) with ESMTP id 042D11C00E for ; Fri, 18 Mar 2011 03:45:03 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjAHAFZygk134Ac+/2dsb2JhbACYb4xxeIhNuhyDFgGCTAQ X-IronPort-AV: E=Sophos;i="4.63,203,1299409200"; d="scan'208";a="178368931" Received: from 119-224-7-62.callplus.net.nz (HELO vrooom.localnet) ([119.224.7.62]) by ismtp02.callplus.net.nz with ESMTP; 18 Mar 2011 16:45:02 +1300 From: Francois Bissey To: gentoo-science@lists.gentoo.org Subject: Re: [gentoo-science] [sage-on-gentoo] sage-notebook is missing default imports Date: Fri, 18 Mar 2011 16:45:01 +1300 User-Agent: KMail/1.13.5 (Linux/2.6.36-gentoo-r5; KDE/4.4.5; i686; ; ) References: <20110316165715.5e6d16c9@pcbox-marc> <201103180938.22776.fbissey@slingshot.co.nz> In-Reply-To: <201103180938.22776.fbissey@slingshot.co.nz> 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: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <201103181645.01377.fbissey@slingshot.co.nz> X-Archives-Salt: X-Archives-Hash: 4d5e2e1540c4cfe15609cd390bbe8dc5 > > 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