From owner-freebsd-python@freebsd.org Sat Nov 14 15:56:45 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 E6E66A2FDA4 for ; Sat, 14 Nov 2015 15:56:44 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: from mail-yk0-x234.google.com (mail-yk0-x234.google.com [IPv6:2607:f8b0:4002:c07::234]) (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 A5FA51783 for ; Sat, 14 Nov 2015 15:56:44 +0000 (UTC) (envelope-from crodr001@gmail.com) Received: by ykdv3 with SMTP id v3so187648927ykd.0 for ; Sat, 14 Nov 2015 07:56:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=ujb/G/S9O7IfiB1rroHSB8wGM70QvEikX8/Dsj/MXac=; b=ygPVKtyalLq9LAlDlyhAab8D6LU7wgwkzDVmHTQT368xq20AA7MI0HZuDSI9EKPs/k n8opJeLxvGMoEQwRce/6D8nEM1JG04ratV3uJ7hK5TJHgv7bJOQzHtRzcUJT99gedMTt nEqN5r6Ahz+XYwIhd2uAszL5jPvJGHDHDdlKxYEoufiazM1I9c0jC15gBtOMKKDdyi39 z02ZtP88IOHlByDSjm8uTuVqZZY/nqcBbnJQF5ZB0Jx0RA607gUk58nt5oG0nMkceISV RFr8J8xfzCFwI/ZFoVneKL8yTX6gDX++GZIRHyuGYXJ8P8llxKlpRkoamdOwTTEy3jeR kMuA== MIME-Version: 1.0 X-Received: by 10.13.224.3 with SMTP id j3mr28214333ywe.246.1447516603750; Sat, 14 Nov 2015 07:56:43 -0800 (PST) Sender: crodr001@gmail.com Received: by 10.37.95.9 with HTTP; Sat, 14 Nov 2015 07:56:43 -0800 (PST) In-Reply-To: <56475325.7050601@b1t.name> References: <56475325.7050601@b1t.name> Date: Sat, 14 Nov 2015 07:56:43 -0800 X-Google-Sender-Auth: OnJXJwzeTqqItBP6hYUz6VpxqTk Message-ID: Subject: Re: Python3, ImportError: No module named '_sqlite3' From: Craig Rodrigues To: Volodymyr Kostyrko Cc: freebsd-python@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.20 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:56:45 -0000 On Sat, Nov 14, 2015 at 7:28 AM, Volodymyr Kostyrko wrote: > 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. Hi, Antoine showed me how to fix it: make -C /usr/ports/databases/py-sqlite3 PYTHON_VERSION=3.5 install Thanks! -- Craig