I'm trying to install Python2.7 with sqlite support in FreeBSD 10. I've installed the ports for both lang/python27, databases/sqlite3 and databases/py-sqlite3, but when trying to import the module inside python, it gives me the following error:
Any idea how to get sqlite support in python 2.7? Do I need any other package?
Code:
Python 2.7.8 (default, Oct 10 2014, 09:11:28)
[GCC 4.2.1 Compatible FreeBSD Clang 3.3 (tags/RELEASE_33/final 183502)] on freebsd10
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/sqlite3/__init__.py", line 24, in <module>
from dbapi2 import *
File "/usr/local/lib/python2.7/sqlite3/dbapi2.py", line 28, in <module>
from _sqlite3 import *
ImportError: No module named _sqlite3
Any idea how to get sqlite support in python 2.7? Do I need any other package?