From owner-freebsd-ports@FreeBSD.ORG Fri Feb 23 22:58:23 2007 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 28A8316A401 for ; Fri, 23 Feb 2007 22:58:23 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by mx1.freebsd.org (Postfix) with ESMTP id 10FDB13C461 for ; Fri, 23 Feb 2007 22:58:23 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay8.apple.com (a17-128-113-38.apple.com [17.128.113.38]) by mail-out3.apple.com (8.13.8/8.13.8) with ESMTP id l1NMwM6G021709; Fri, 23 Feb 2007 14:58:22 -0800 (PST) Received: from relay8.apple.com (unknown [127.0.0.1]) by relay8.apple.com (Symantec Mail Security) with ESMTP id A02F94001F; Fri, 23 Feb 2007 14:58:22 -0800 (PST) X-AuditID: 11807126-9e7cbbb00000685d-7b-45df718ef8ed Received: from [17.214.13.96] (cswiger1.apple.com [17.214.13.96]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by relay8.apple.com (Apple SCV relay) with ESMTP id 880DF40012; Fri, 23 Feb 2007 14:58:22 -0800 (PST) In-Reply-To: <20070223232142.11fe263f@devil.troback.com> References: <20070223232142.11fe263f@devil.troback.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <6669CD12-8C90-4CB4-92B8-CB673B8A502E@mac.com> Content-Transfer-Encoding: 7bit From: Chuck Swiger Date: Fri, 23 Feb 2007 14:58:21 -0800 To: Anders Troback X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== Cc: FreeBSD Subject: Re: Python and gramps... X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Feb 2007 22:58:23 -0000 On Feb 23, 2007, at 2:21 PM, Anders Troback wrote: > The port builds fine but when I'm start up the program and tries to do > things in the program I've got errors. The following error occurs when > I'm trying to create a new file: > > 8<------------------------------------------------------------------- > 13416: ERROR: DbLoader.py: line 468: Failed to open database. > Traceback (most recent call last): > File "/usr/local/share/gramps/DbLoader.py", line 447, in read_file > self.dbstate.db.load(filename,self.uistate.pulse_progressbar,mode) > File "/usr/local/share/gramps/GrampsDb/_GrampsBSDDB.py", line > 347, in > load self.env.set_flags(db.DB_LOG_AUTOREMOVE,1) # clean up unused > logs > AttributeError: 'module' object has no attribute 'DB_LOG_AUTOREMOVE' > 8<------------------------------------------------------------------- > > Similar error pops up almost every were! One person in the gramps ML > are hinting to a problem with the installation of BSDDB. I don't know > mush about Python so I'm kind of lost here! I think you need to choose a particular flavor of BDB which is recent enough to support these log capabilities; try setting something like these in /etc/make.conf: WITH_BERKELEYDB=db42 WITH_BDB_VER=42 ...or choose some other recent 4.x version, and then try reinstalling /usr/ports/databases/py-bsddb. -- -Chuck