On Fri, Apr 11, 2008 at 6:25 PM, alex clemesha <[EMAIL PROTECTED]> wrote: > > Hi Hector, > > Sage ships with Python2.5, which has sqlite builtin, > so this should not be a problem. > > -Alex
Yes, but it *is* a problem. Probably something went wrong with his Sage install or something. That is puzzling. It might be an OSX 10.4 versus 10.5 problem, since I tested on 10.5 without any trouble. Very puzzling. Anybody else who has problems should please report them. -- William > > > > On Fri, Apr 11, 2008 at 6:22 PM, Hector Villafuerte <[EMAIL PROTECTED]> > wrote: > > > > On Fri, Apr 11, 2008 at 7:09 PM, William Stein <[EMAIL PROTECTED]> wrote: > > > > > > Hi, > > > > > > I just made a Knoboo optional spkg (http://www.knoboo.com/). Knoboo is > > > similar to the Sage notebook but looks more likey Mathematica and uses > > > xmlrpc. > > > > > > To try it out: > > > > > > 1. Type sage -optional to see what the package name is. > > > > > > 2. Type sage -i knoboo-20080411 to install (or whatever the latest > name is). > > > > > > 3. Type > > > > > > sage: !knoboo > > > > > > to try it out. Be sure to not have something running on port > > > 8000 when you do this. > > > > > > Note: Knoboo in this spkg lets you work only with pure Python right > > > now. It'll have support for > > > Sage's libraries itself in the near future. (i.e., from sage.all > > > import * doesn't work yet). > > > > > > It seems like pysqlite2 could be a show stopper... this happened on > > 'SAGE Version sage-2.11, Release Date: 2008-03-30' > > Mac OS X 10.4 > > > > > > sage: !knoboo > > ************************************************************** > > * Make sure that nothing is already serving up a service * > > * on port 8000. If so, Knoboo won't work. * > > * Now connect to http://localhost:8000 * > > * NOTE: Only Python currently works in Knoboo; none of the * > > * Sage library is available yet. * > > ************************************************************** > > 2008/04/11 19:16 -0600 [-] Log opened. > > 2008/04/11 19:16 -0600 [-] twistd 2.5.0 > > (/Users/hector/sage/local/bin/python 2.5.1) starting up > > 2008/04/11 19:16 -0600 [-] reactor class: <class > > 'twisted.internet.selectreactor.SelectReactor'> > > 2008/04/11 19:16 -0600 [-] Loading > /Users/hector/sage/local/lib/knoboo.tac... > > 2008/04/11 19:16 -0600 [-] Traceback (most recent call last): > > 2008/04/11 19:16 -0600 [-] File > > > "/Users/hector/sage/local/lib/python2.5/site-packages/twisted/application/app.py", > > line 218, in getApplication > > 2008/04/11 19:16 -0600 [-] application = > > service.loadApplication(filename, style, passphrase) > > 2008/04/11 19:16 -0600 [-] File > > > "/Users/hector/sage/local/lib/python2.5/site-packages/twisted/application/service.py", > > line 341, in loadApplication > > 2008/04/11 19:16 -0600 [-] application = > > sob.loadValueFromFile(filename, 'application', passphrase) > > 2008/04/11 19:16 -0600 [-] File > > > "/Users/hector/sage/local/lib/python2.5/site-packages/twisted/persisted/sob.py", > > line 215, in loadValueFromFile > > 2008/04/11 19:16 -0600 [-] exec fileObj in d, d > > 2008/04/11 19:16 -0600 [-] File > > "/Users/hector/sage/local/lib/knoboo.tac", line 9, in <module> > > 2008/04/11 19:16 -0600 [-] CONFIG = kbconfig.read_config() > > 2008/04/11 19:16 -0600 [-] File > > "/Users/hector/sage/local/lib/python2.5/site-packages/knoboo/config.py", > > line 27, in read_config > > 2008/04/11 19:16 -0600 [-] self.check() > > 2008/04/11 19:16 -0600 [-] File > > "/Users/hector/sage/local/lib/python2.5/site-packages/knoboo/config.py", > > line 34, in check > > 2008/04/11 19:16 -0600 [-] self.check_for_db() > > 2008/04/11 19:16 -0600 [-] File > > "/Users/hector/sage/local/lib/python2.5/site-packages/knoboo/config.py", > > line 82, in check_for_db > > 2008/04/11 19:16 -0600 [-] self.make_default_db() > > 2008/04/11 19:16 -0600 [-] File > > "/Users/hector/sage/local/lib/python2.5/site-packages/knoboo/config.py", > > line 67, in make_default_db > > 2008/04/11 19:16 -0600 [-] from pysqlite2 import dbapi2 as sqlite > > 2008/04/11 19:16 -0600 [-] ImportError: No module named pysqlite2 > > 2008/04/11 19:16 -0600 [-] Failed to load application: No module named > pysqlite2 > > 2008/04/11 19:16 -0600 [-] Unhandled Error > > Traceback (most recent call last): > > File > "/Users/hector/sage/local/lib/python2.5/site-packages/twisted/application/app.py", > > line 379, in run > > runApp(config) > > File > "/Users/hector/sage/local/lib/python2.5/site-packages/twisted/scripts/twistd.py", > > line 23, in runApp > > _SomeApplicationRunner(config).run() > > File > "/Users/hector/sage/local/lib/python2.5/site-packages/twisted/application/app.py", > > line 157, in run > > self.application = self.createOrGetApplication() > > File > "/Users/hector/sage/local/lib/python2.5/site-packages/twisted/application/app.py", > > line 207, in createOrGetApplication > > application = getApplication(self.config, passphrase) > > --- <exception caught here> --- > > File > "/Users/hector/sage/local/lib/python2.5/site-packages/twisted/application/app.py", > > line 218, in getApplication > > application = service.loadApplication(filename, style, > passphrase) > > File > "/Users/hector/sage/local/lib/python2.5/site-packages/twisted/application/service.py", > > line 341, in loadApplication > > application = sob.loadValueFromFile(filename, > > 'application', passphrase) > > File > "/Users/hector/sage/local/lib/python2.5/site-packages/twisted/persisted/sob.py", > > line 215, in loadValueFromFile > > exec fileObj in d, d > > File "/Users/hector/sage/local/lib/knoboo.tac", line 9, in > <module> > > CONFIG = kbconfig.read_config() > > File > "/Users/hector/sage/local/lib/python2.5/site-packages/knoboo/config.py", > > line 27, in read_config > > self.check() > > File > "/Users/hector/sage/local/lib/python2.5/site-packages/knoboo/config.py", > > line 34, in check > > self.check_for_db() > > File > "/Users/hector/sage/local/lib/python2.5/site-packages/knoboo/config.py", > > line 82, in check_for_db > > self.make_default_db() > > File > "/Users/hector/sage/local/lib/python2.5/site-packages/knoboo/config.py", > > line 67, in make_default_db > > from pysqlite2 import dbapi2 as sqlite > > exceptions.ImportError: No module named pysqlite2 > > > > > > Failed to load application: No module named pysqlite2 > > 2008/04/11 19:16 -0600 [-] > > sage: > > > > > > > > > > > -- William > > > > > > -- > > > William Stein > > > Associate Professor of Mathematics > > > University of Washington > > > http://wstein.org > > > > > > > > > > > > > > > > > > -- > > Hector > > > > > > > > > > > -- William Stein Associate Professor of Mathematics University of Washington http://wstein.org --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---