Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Nov 2015 07:56:43 -0800
From:      Craig Rodrigues <rodrigc@crodrigues.org>
To:        Volodymyr Kostyrko <arcade@b1t.name>
Cc:        freebsd-python@freebsd.org
Subject:   Re: Python3, ImportError: No module named '_sqlite3'
Message-ID:  <CAG=rPVd1w3V=1L9JPHQn3OCchQfT6dE5ZOXG-2HuJqE40NnSNQ@mail.gmail.com>
In-Reply-To: <56475325.7050601@b1t.name>
References:  <CAG=rPVe5fL82=VCsjL7=tqCyaLY7VoJYv46=intqYS0CJ0sOMA@mail.gmail.com> <56475325.7050601@b1t.name>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Nov 14, 2015 at 7:28 AM, Volodymyr Kostyrko <arcade@b1t.name> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG=rPVd1w3V=1L9JPHQn3OCchQfT6dE5ZOXG-2HuJqE40NnSNQ>