From owner-freebsd-questions@freebsd.org Wed Jun 15 12:13:12 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id AB0C4A1D0AA for ; Wed, 15 Jun 2016 12:13:12 +0000 (UTC) (envelope-from eirnym@gmail.com) Received: from mail-wm0-x236.google.com (mail-wm0-x236.google.com [IPv6:2a00:1450:400c:c09::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3F525188C for ; Wed, 15 Jun 2016 12:13:12 +0000 (UTC) (envelope-from eirnym@gmail.com) Received: by mail-wm0-x236.google.com with SMTP id f126so19025046wma.1 for ; Wed, 15 Jun 2016 05:13:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ucVI9WS4F1zFuBqnOpQyFzAzTuvmUuFwHMqsyV60tC8=; b=PayRtgr18afI0cadWqWUTZC1vWUAvSpfHJX9hqT8w6VS0vKuh0tI6ClJelXrojfljY arY8DJl7Qpjfh0pltmLzvW0rYfG6hO6aHHWrrSFl0jdvewNkvHBnUM6Gvn9ZiF2xOCGE ylelsrF9KjdpJ6/Jnh4bB/RNw+VxyrGUoyZ1HkBmUECvIQeIY+kAgbVDUD9Neski6Y8m 0XgZVsUiZl52COlBKu13dzD9AuwlTh+iSJNcrewL6wryJ2Yp8f5OlMbvb8PnP2HyB5fn ezv6Rwy/hXTe8HTusjUMmlAimDK1syN3O15ztIK/g/MNp4fv6CFprF/FtO2o/7hnRsLu Bn0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ucVI9WS4F1zFuBqnOpQyFzAzTuvmUuFwHMqsyV60tC8=; b=GVt5SKHBjq95HkFretgMoVZ0/ncOAiukJlBUfkvR6y7odl2umxijVdBLFC9oZo3UfJ xVMRiIT41p/noxNwCBiHXqOJ36LyLeZ0kgE/aNcqLsvXXpOQD4OPupkiwTQ4vWbaoGJD 5OQ1FBGYPZ4/Drs01nF5K2CJMjbEdZ0XKOIi3XofS+OiBoH/Vs1kh4zY6nS9CwObYg0g eXijPwY9OBtSvAekEQAC+xg9KGB/eTh796wzpSIR0bx4hVhNDcNp40PNnElkusFhaIj+ 2rIPagkhY/K5KEinGFlkQIk7YALzrM67+3/KvlOOF0Nzv3VrTXds3VQyfVewETZpxYNR Gdng== X-Gm-Message-State: ALyK8tLv0l8biOCH1qonm3j1w2B4/xXvhauBE3k0gBbtUtlUGVeXzsxkmw+NhqJbYpe3cg== X-Received: by 10.194.164.200 with SMTP id ys8mr11001206wjb.79.1465992790236; Wed, 15 Jun 2016 05:13:10 -0700 (PDT) Received: from [192.168.154.191] ([74.125.57.22]) by smtp.gmail.com with ESMTPSA id c9sm38209031wjh.49.2016.06.15.05.13.09 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 15 Jun 2016 05:13:09 -0700 (PDT) Subject: Re: How to use sqlite3 in python on FreeBSD 10.3? Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=utf-8 From: Eir Nym X-Priority: 3 In-Reply-To: <2016061518322497404919@chinadtrace.org> Date: Wed, 15 Jun 2016 14:13:08 +0200 Cc: freebsd-questions Content-Transfer-Encoding: quoted-printable Message-Id: References: <2016061518322497404919@chinadtrace.org> To: Nan Xiao X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2016 12:13:12 -0000 Hi, Nan, > On 15 Jun 2016, at 12:32, Nan Xiao wrote: >=20 > Hi all, >=20 > Greetings from me! I am a newbie of FreeBSD, and want to use sqlite3 = in python on my FreeBSD 10.3. After installing python, it prompts I = should install the following additional packages: >=20 > ...... > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > Note that some standard Python modules are provided as separate ports > as they require additional dependencies. They are available as: > bsddb databases/py-bsddb > gdbm databases/py-gdbm > sqlite3 databases/py-sqlite3 > tkinter x11-toolkits/py-tkinter > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= > =46rom this post, it seems after installing above 4 packages, the = sqlite3 should be able to work. But "impore sqlite3" still reports = following errors: >=20 >>>> import sqlite3 > Traceback (most recent call last): > File "", line 1, in > File "/usr/local/lib/python2.7/sqlite3/__init__.py", line 24, in = > from dbapi2 import * > File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 28, in = > from _sqlite3 import * > ImportError: No module named _sqlite3 >=20 > Could anyone help on this issue? Thanks very much in advance! >=20 You should install databases/py-sqlite3 port for your system. This port = as any other python library depends on python versions installed. You = can read about specifying python version to build this library for in = Handbook. > Have a nice day! >=20 > P.S., I also submit this issue on SO, but unfortunately, I can't get = any help from there, so I repost the question here, thanks!=20 >=20 >=20 >=20 > Best Regards > Nan Xiao (=E8=82=96=E6=A5=A0) > Skype: xiaonan19830818 > Jabber/XMPP: nanxiao@xmpp.ru.net=20 > Telegram: nanxiao > Personal website (Chinese): http://nanxiao.me/=20 > Personal website (English): http://nanxiao.me/en=20 > Chinese DTrace website: http://chinadtrace.org/=20 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to = "freebsd-questions-unsubscribe@freebsd.org"