Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Dec 2004 00:55:42 +0900
From:      Hye-Shik Chang <perky@i18n.org>
To:        Chuck Robey <chuckr@chuckr.org>
Cc:        python@FreeBSD.org
Subject:   Re: FreeBSD Port: python-2.4.a3
Message-ID:  <20041202155542.GA79436@i18n.org>
In-Reply-To: <41AE852D.8080909@chuckr.org>
References:  <41AE852D.8080909@chuckr.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Dec 02, 2004 at 02:59:57AM +0000, Chuck Robey wrote:
> Excuse me please if this mail is formatted oddly, you are my first 
> experiment with using *several* new things, mozilla as mail agent, mail 
> from my imap machine. all on my new FreeBSD box.  I hope this works.
> 
> Anyhow, down to cases.  I'm doing a freebie database for a buddy who 
> runs (owns) a video rental store.  I'm using python, and gtk+ for the 
> widgets, and that much is flawless, it's beautiful, and so I'm off 
> trying to get a fairly simple database done in python, using 
> FreeBSD-current (my amd64 box, dual processsor, lots of disk, 1G of ram).
> 
> Everytime I try doing something with bsddb, I get this error:
> 
> >>> import bsddb
> >>> db = bsddb.btopen("myfile","c")
> Traceback (most recent call last):
>  File "<stdin>", line 1, in ?
>  File "/usr/local/lib/python2.4/bsddb/__init__.py", line 303, in btopen
>    e = _openDBEnv()
>  File "/usr/local/lib/python2.4/bsddb/__init__.py", line 339, in _openDBEnv
>    e.open('.', db.DB_PRIVATE | db.DB_CREATE | db.DB_THREAD | 
> db.DB_INIT_LOCK | db.DB_INIT_MPOOL)
> bsddb._db.DBInvalidArgError: (22, 'Invalid argument -- architecture 
> lacks fast mutexes: applications cannot be threaded')
> 
> 
> I think my option here is to toss out all of the FreeBSD ported python, 
> and try instead, using one i build myself, but I would vastly rather see 
> if I can help you, and get it working that way.  My problem is, well, 
> several problems:
> 
> 1) I need this really quickly, I need my database wokring inside 48 
> hours at the latest

It's a known problem of Berkeley DB on FreeBSD/amd64 (neither
Python's nor bsddb module's).  I think you'd better to set ia32
emulation up to get it working in that short time.

> 2) I'm just out of the hospital, very quick to tire, and I take a lot of 
> time out in the next 48 hours for doctors visits (stiches coming out, 
> like that).  I have some time to help you, but not too much.

Cheer up!  And I hope you get better soon.


Regards,
Hye-Shik


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041202155542.GA79436>