From owner-freebsd-python@freebsd.org Sat Nov 14 15:38:06 2015 Return-Path: Delivered-To: freebsd-python@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 D4E44A2FA2E for ; Sat, 14 Nov 2015 15:38:06 +0000 (UTC) (envelope-from arcade@b1t.name) Received: from limbo.b1t.name (limbo.b1t.name [78.25.32.206]) by mx1.freebsd.org (Postfix) with ESMTP id 8D0ED1FD1 for ; Sat, 14 Nov 2015 15:38:05 +0000 (UTC) (envelope-from arcade@b1t.name) Received: from limbo.b1t.name (limbo.b1t.name [78.25.32.206]) by limbo.b1t.name (Postfix) with ESMTPSA id 1BA7E62 for ; Sat, 14 Nov 2015 17:28:40 +0200 (EET) Subject: Re: Python3, ImportError: No module named '_sqlite3' To: freebsd-python@freebsd.org References: From: Volodymyr Kostyrko Message-ID: <56475325.7050601@b1t.name> Date: Sat, 14 Nov 2015 17:28:37 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Nov 2015 15:38:06 -0000 On 14.11.2015 17:18, Craig Rodrigues wrote: > Hi, > > I did the following on a FreeBSD 10.2 system: > > pkg install lang/python35 > > python3.5 -c "import sqlite3" sqlite3 is not part of the "python" package, you can install it from port: databases/py-sqlite3. As there's no specific python3 versions of that ports you need to set PYTHON_VERSION=python3.5 before building. Both 2.x and 3.x versions of package can coexist peacefully. -- Sphinx of black quartz judge my vow.