Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 May 2011 18:53:46 +0300
From:      Odhiambo Washington <odhiambo@gmail.com>
To:        Maxim Khitrov <max@mxcrypt.com>
Cc:        questions <questions@freebsd.org>
Subject:   Re: Enable Sqlite3 module in python
Message-ID:  <BANLkTik5dAO61mzyp_mF11o0dN%2Bsvir_Vw@mail.gmail.com>
In-Reply-To: <BANLkTi=iT-6v6Bi4umpd844Dyp-Vq7ka6w@mail.gmail.com>
References:  <BANLkTi=wNA9b2dj%2BCbuX1BUk2e1NVjTK4A@mail.gmail.com> <BANLkTi=iT-6v6Bi4umpd844Dyp-Vq7ka6w@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--bcaec52162233a99b904a4079aeb
Content-Type: text/plain; charset=ISO-8859-1

On Tue, May 24, 2011 at 13:41, Maxim Khitrov <max@mxcrypt.com> wrote:

> On Tue, May 24, 2011 at 4:21 AM, Odhiambo Washington <odhiambo@gmail.com>
> 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
>


Thanks, Max!



-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
I can't hear you -- I'm using the scrambler.
Please consider the environment before printing this email.

--bcaec52162233a99b904a4079aeb--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BANLkTik5dAO61mzyp_mF11o0dN%2Bsvir_Vw>