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 1Q0JzA-0005wO-L7 for garchives@archives.gentoo.org; Thu, 17 Mar 2011 20:39:56 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9936B1C003; Thu, 17 Mar 2011 20:38:43 +0000 (UTC) Received: from mxi2.callplus.net.nz (mx194.callplus.net.nz [202.180.66.194]) by pigeon.gentoo.org (Postfix) with ESMTP id 14B041C003 for ; Thu, 17 Mar 2011 20:38:42 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArkGALoOgk134Ac+/2dsb2JhbACYX4xxeMNXgxYBgkwE X-IronPort-AV: E=Sophos;i="4.63,201,1299409200"; d="scan'208";a="178264587" 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 09:38:23 +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 09:38:22 +1300 User-Agent: KMail/1.13.5 (Linux/2.6.36-gentoo-r5; KDE/4.4.5; i686; ; ) References: <20110316165715.5e6d16c9@pcbox-marc> In-Reply-To: <20110316165715.5e6d16c9@pcbox-marc> 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: <201103180938.22776.fbissey@slingshot.co.nz> X-Archives-Salt: X-Archives-Hash: de676017c3980ad517a1398334f4ce35 > 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