From owner-freebsd-questions@FreeBSD.ORG Tue May 24 11:12:17 2011 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99E5C106566B for ; Tue, 24 May 2011 11:12:17 +0000 (UTC) (envelope-from max@mxcrypt.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 38B1B8FC13 for ; Tue, 24 May 2011 11:12:16 +0000 (UTC) Received: by wwc33 with SMTP id 33so6876082wwc.31 for ; Tue, 24 May 2011 04:12:16 -0700 (PDT) Received: by 10.216.255.73 with SMTP id i51mr3192049wes.88.1306233715167; Tue, 24 May 2011 03:41:55 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.85.67 with HTTP; Tue, 24 May 2011 03:41:25 -0700 (PDT) In-Reply-To: References: From: Maxim Khitrov Date: Tue, 24 May 2011 06:41:25 -0400 Message-ID: To: Odhiambo Washington Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: questions Subject: Re: Enable Sqlite3 module in python X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2011 11:12:17 -0000 On Tue, May 24, 2011 at 4:21 AM, Odhiambo Washington w= rote: > Hello members, > > I am on FreeBSD 8.2-STABLE and I am running with python2.7. However I hav= e a > problem: > > mail# python2.7 -c 'import sqlite3' > > Traceback (most recent call last): > =C2=A0File "", line 1, in > =C2=A0File "/usr/local/lib/python2.7/ > sqlite3/__init__.py", line 24, in > =C2=A0 =C2=A0from dbapi2 import * > =C2=A0File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 27, in > =C2=A0 =C2=A0from _sqlite3 import * > ImportError: No module named _sqlite3 > > > How do I enable the sqlite3 module in python2.7 Install databases/py-sqlite3. The python installation shows the following message when it is finished: =3D=3D=3D=3D Note that some of the standard modules are provided as separate ports since they require extra dependencies: bsddb databases/py-bsddb gdbm databases/py-gdbm sqlite3 databases/py-sqlite3 tkinter x11-toolkits/py-tkinter Install them as needed. =3D=3D=3D=3D - Max