From owner-freebsd-python@FreeBSD.ORG Thu May 30 08:22:15 2013 Return-Path: Delivered-To: freebsd-python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id ABA8AA50 for ; Thu, 30 May 2013 08:22:15 +0000 (UTC) (envelope-from daemon@dx.burplex.com) Received: from dx.burplex.com (dx.burplex.com [50.197.134.185]) by mx1.freebsd.org (Postfix) with ESMTP id 9A9A1AC6 for ; Thu, 30 May 2013 08:22:15 +0000 (UTC) Received: by dx.burplex.com (Postfix, from userid 1) id 2B7F036F4FC6; Thu, 30 May 2013 01:22:09 -0700 (PDT) To: freebsd-python@freebsd.org Subject: Re: issues with update databases/py-sqlite3 From: Waitman Gobble X-UUID-HOR: 13cc08a1-c8f1-11e2-821a-902b34a86bc3 Message-Id: <20130530082209.2B7F036F4FC6@dx.burplex.com> Date: Thu, 30 May 2013 01:22:09 -0700 (PDT) X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 May 2013 08:22:15 -0000 On Wed, 29 May 2013 23:20:37 -0700 (PDT), Waitman Gobble wrote: > > I think I have the issue narrowed down to to the capture exception line: in the port - files/setup.py ... try: import ctypes ctypes.CDLL('libsqlite3.so').sqlite3_load_extension except AttributeError: macros.append(('SQLITE_OMIT_LOAD_EXTENSION', '1')) ... Since i do not have extensions enabled in sqlite3 config, it will do the macros.append line. Appending the item is not causing the Bus Error, also the 'import ctypes' and ctypes.CDLL('libsqlite3.so').sqlite3_load_extension are not causing the bus error. For some reason the except AttributeError: seems to be causing the Bus Error. ??? I'm absolutely not a Python expert, hopefully somebody here has a good idea of what the problem is.*** My temporary fix is to replace those lines with: macros.append(('SQLITE_OMIT_LOAD_EXTENSION', '1')) ...since i know i built sqlite3 without extensions.. (if i want to use extensions, i can remove that line altogether, don't need to 'omit') anyhow, I was able to get the port properly installed and registered, so I can move on to the next thing. Thanks, -- Waitman Gobble San Jose California USA +1.5108307875