Re: bsddb in python 2.5.1

2007-11-04 Thread Martin v. Löwis
> I have two versions of bsddb3 installed (only one is active) this is > from /usr/lib/python2.5/site-packages: > drwxr-xr-x 3 root root 4096 2007-11-03 15:01 bsddb3 > -rw-r--r-- 1 root root905 2007-11-03 15:39 bsddb3-4.4.2.egg-info > -rw-r--r-- 1 root root905 2007-11-03 15:49 bsddb3-4

Re: bsddb in python 2.5.1

2007-11-04 Thread BjornT
On Nov 4, 1:04 am, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > I know that when you upgrade Berkeley DB you're supposed to go through > > steps solving this problem,but I wasn't expecting an upgrade. I've > > tried to use different versions bsddb3, 4.4 and 4.5, (instead of bsddb > > that comes

Re: bsddb in python 2.5.1

2007-11-04 Thread Martin v. Löwis
> I know that when you upgrade Berkeley DB you're supposed to go through > steps solving this problem,but I wasn't expecting an upgrade. I've > tried to use different versions bsddb3, 4.4 and 4.5, (instead of bsddb > that comes with python 2.5.1) with different versions of Berkeley DB > installs (4

Re: bsddb

2006-09-26 Thread skip
Marc> "DB_VERSION_MISMATCH: Database environment version mismatch -- Marc> Program version 4.4 doesn't match environment version 186187776.0" Marc> DBError: -30971 I haven't used bsddb much recently, but in the past I think this usually meant that the Sleepycat folks released a new ve

Re: bsddb version?

2005-10-23 Thread Peter Hansen
leasun wrote: > Anybody knows which version bsddb is released with py2.3 and py2.4? Is this what you wanted? Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit (Intel)] on win32 >>> import bsddb >>> bsddb.__version__ '4.3.0' I'll leave it up to you to do the work to find out what it is

Re: bsddb environment lock failure -- resolved

2005-07-10 Thread Barry
Upgrading db4 to db4-4.1.25-14.rpm seems to have take care of this. On 7/10/05, Barry <[EMAIL PROTECTED]> wrote: > I have python2.4.1 installed on two machines: > -- one is Fedora core 1, where the bsddb module works fine > -- one is Redhat ES 3.0, and I installed mysql 4.1 (and > mysql-python2

Re: bsddb support for berkeley db 4.3?

2005-03-13 Thread "Martin v. Löwis"
Andrew MacIntyre wrote: If you can, I'd suggest posting a bug report on SF against 2.4 to see whether you can encourage the installer builder to upgrade BSD DB - though do be certain to check what's in 2.4.1c1 first. It's 4.2.52, and I don't think I'm going to use anything else for 2.4.1. In fact

Re: bsddb support for berkeley db 4.3?

2005-03-12 Thread janeaustine50
Martin v. Löwis wrote: > [EMAIL PROTECTED] wrote: > > It doesn't seem like the python 2.4(and the recent 2.4.1) support > > berkeley db 4.3. > > What makes you say that? It builds fine for me. Oh, it doesn't work with 2.4(I tried this one) but with 2.4.1 seemingly. In the setup.py from 2.4 there

Re: bsddb support for berkeley db 4.3?

2005-03-12 Thread Andrew MacIntyre
[EMAIL PROTECTED] wrote: It doesn't seem like the python 2.4(and the recent 2.4.1) support berkeley db 4.3. (4.3 fixes some deadlock bugs I occasionally encounter using 4.2.) bsddb3(at pybsddb.sf.net) already supports 4.3 since last December(but doesn't explicitly support win32 -- see the assert st

Re: bsddb support for berkeley db 4.3?

2005-03-12 Thread "Martin v. Löwis"
[EMAIL PROTECTED] wrote: It doesn't seem like the python 2.4(and the recent 2.4.1) support berkeley db 4.3. What makes you say that? It builds fine for me. bsddb3(at pybsddb.sf.net) already supports 4.3 since last December(but doesn't explicitly support win32 -- see the assert statement in setup.p

Re: bsddb for k, v in db.items(): do order the numbers ?

2005-03-07 Thread Ulf Göransson
[EMAIL PROTECTED] wrote: uhm i'm trying to make a very simple but large database: Let's say I want these fields : |name|age|country| Then I can't do this because I use the same key db["name"] = 'piet' db["age"] = '20' db["country"] = 'nl' #same keys so it wil overwrite db["name"] = 'jan' db["ag

Re: bsddb for k, v in db.items(): do order the numbers ?

2005-03-07 Thread martijn
uhm i'm trying to make a very simple but large database: Let's say I want these fields : |name|age|country| Then I can't do this because I use the same key db["name"] = 'piet' db["age"] = '20' db["country"] = 'nl' #same keys so it wil overwrite db["name"] = 'jan' db["age"] = '40' db["country

Re: bsddb for k, v in db.items(): do order the numbers ?

2005-03-02 Thread Christopher De Vries
On Wed, Mar 02, 2005 at 01:31:04PM +0300, Denis S. Otkidach wrote: > You are not right, records in BTree (btopen) are certainly sorted. For > positive integers you can pack keys with struct.pack('>I', value). You're right... I missed the btopen (rather a key thing to miss I know, but when you hav

Re: bsddb for k, v in db.items(): do order the numbers ?

2005-03-02 Thread Denis S. Otkidach
On Mon, 28 Feb 2005 11:48:44 -0500 Christopher De Vries <[EMAIL PROTECTED]> wrote: > If you want your key, value pairs in a certain order you have to sort > them yourself. Dictionaries and bsddb keys are unsorted. You are not right, records in BTree (btopen) are certainly sorted. For positive in

Re: bsddb for k, v in db.items(): do order the numbers ?

2005-03-01 Thread martijn
oyea, I must convert it to numbers ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: bsddb for k, v in db.items(): do order the numbers ?

2005-02-28 Thread Steve Holden
Christopher De Vries wrote: On Mon, Feb 28, 2005 at 08:30:59AM -0800, [EMAIL PROTECTED] wrote: WHen I use the code below and printing all the results i get this: -- 0 1 10 11 2 3 4 5 6 7 8 9 -- But I want -- 0 1 2 3 4 5 6 7 8 9 10 11 -- If you want your key, value pairs in a certai

Re: bsddb for k, v in db.items(): do order the numbers ?

2005-02-28 Thread Christopher De Vries
On Mon, Feb 28, 2005 at 08:30:59AM -0800, [EMAIL PROTECTED] wrote: > WHen I use the code below and printing all the results i get this: > -- > 0 1 10 > 11 2 3 > 4 5 6 > 7 8 9 > -- > But I want > -- > 0 1 2 > 3 4 5 > 6 7 8 > 9 10 11 > -- If you want your key, value pairs in a certai