Re: shelve seg error
OK, Thanks On Tue, 06 Dec 2005 15:41:08 +0100, Fredrik Lundh wrote: > Philippe C. Martin wrote: > >> Can I ask anydb which db it's using ? > > the page says > > If the database file already exists, the whichdb module is used to > determine its > type and the appropriate module is used; if it does not exist, the first > module > listed above that can be imported is used > > where "above" refers to the list > > dbhash (requires bsddb), gdbm, or dbm. If none of these modules is > installed, > the slow-but-simple implementation in module dumbdbm will be used. > > so the culprit in your case is either whichdb itself, or dbhash/bsddb... > > -- http://mail.python.org/mailman/listinfo/python-list
Re: shelve seg error
Philippe C. Martin wrote: > Can I ask anydb which db it's using ? the page says If the database file already exists, the whichdb module is used to determine its type and the appropriate module is used; if it does not exist, the first module listed above that can be imported is used where "above" refers to the list dbhash (requires bsddb), gdbm, or dbm. If none of these modules is installed, the slow-but-simple implementation in module dumbdbm will be used. so the culprit in your case is either whichdb itself, or dbhash/bsddb... -- http://mail.python.org/mailman/listinfo/python-list
Re: shelve seg error
Can I ask anydb which db it's using ? Regards, Philippe On Tue, 06 Dec 2005 15:07:19 +0100, Fredrik Lundh wrote: > Philippe C. Martin wrote: > >> This code however works, which seems to me means the problem is with the >> default database used by shelve ... which one is it ? > > http://docs.python.org/lib/module-anydbm.html > > -- http://mail.python.org/mailman/listinfo/python-list
Re: shelve seg error
Philippe C. Martin wrote: > This code however works, which seems to me means the problem is with the > default database used by shelve ... which one is it ? http://docs.python.org/lib/module-anydbm.html -- http://mail.python.org/mailman/listinfo/python-list
Re: shelve seg error
PS: This code however works, which seems to me means the problem is with the default database used by shelve ... which one is it ? import shelve import gdbm def gdbm_shelve(filename, flag="c"): return shelve.Shelf(gdbm.open(filename, flag)) db = gdbm_shelve("dbfile") Regards, Philippe On Tue, 06 Dec 2005 05:53:22 -0600, Philippe C. Martin wrote: > Hi, > > I just installed (compiled) Python 2.4.2 under Suse 10. > > The following code generates a seg error: > > import shelve > print shelve.open ('test') > > I assume this has to do with the db behind shelve. > > How do I go about tracing/fixing the problem ? > > Regards, > > Philippe -- http://mail.python.org/mailman/listinfo/python-list