On Tue, May 24, 2011 at 4:21 AM, Odhiambo Washington <[email protected]> wrote:
> Hello members,
>
> I am on FreeBSD 8.2-STABLE and I am running with python2.7. However I have a
> problem:
>
> mail# python2.7 -c 'import sqlite3'
>
> Traceback (most recent call last):
>  File "<string>", 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 27, in <module>
>    from _sqlite3 import *
> ImportError: No module named _sqlite3
>
>
> How do I enable the sqlite3 module in python2.7

Install databases/py-sqlite3. The python installation shows the
following message when it is finished:

====
Note that some of the standard modules are provided as separate
ports since they require extra dependencies:

bsddb           databases/py-bsddb
gdbm            databases/py-gdbm
sqlite3         databases/py-sqlite3
tkinter         x11-toolkits/py-tkinter

Install them as needed.
====

- Max
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"

Reply via email to