From owner-freebsd-python@FreeBSD.ORG Thu Dec 2 15:55:44 2004 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E0AA716A4CE; Thu, 2 Dec 2004 15:55:44 +0000 (GMT) Received: from miffy.openlook.org (openlook.org [211.236.182.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1627343D2D; Thu, 2 Dec 2004 15:55:44 +0000 (GMT) (envelope-from perky@miffy.openlook.org) Received: by miffy.openlook.org (Postfix, from userid 1000) id EA860A977; Fri, 3 Dec 2004 00:55:42 +0900 (KST) Date: Fri, 3 Dec 2004 00:55:42 +0900 From: Hye-Shik Chang To: Chuck Robey Message-ID: <20041202155542.GA79436@i18n.org> References: <41AE852D.8080909@chuckr.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41AE852D.8080909@chuckr.org> X-Accept-Language: ko, en User-Agent: Mutt/1.5.6i cc: ports@FreeBSD.org cc: python@FreeBSD.org Subject: Re: FreeBSD Port: python-2.4.a3 X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Dec 2004 15:55:45 -0000 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 "", 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