On 9/9/08, rihad <[EMAIL PROTECTED]> wrote:
>
>
>
>  On Sep 9, 12:16 pm, "Florent Aide" <[EMAIL PROTECTED]> wrote:
>
> > On 9/9/08, rihad <[EMAIL PROTECTED]> wrote:
>  >
>
>  > I looked into the sqlite.py of SA (0.4.6 here) and found this code:
>  >
>  > http://paste.turbogears.org/paste/6129
>  >
>  > could you try both imports they are trying in a simple python shell
>  > and then see if one of them works ?
>  >
>
> importing from sqlite3 does work:
>  $ python
>  Python 2.5.2 (r252:60911, Sep  8 2008, 19:49:32)
>  [GCC 3.4.6 [FreeBSD] 20060305] on freebsd6
>  Type "help", "copyright", "credits" or "license" for more information.
>  >>> from pysqlite2 import dbapi2 as sqlite
>  Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>
> ImportError: No module named pysqlite2
>
> >>> from sqlite3 import dbapi2 as sqlite
>  >>>
>
>  but if I source bin/activate before running Python shell neither
>  import works: http://paste.turbogears.org/paste/6136

Ok you got it. I think your BSD packaging installed the sqlite module
in site-packages and since you (certainly) created your virtual-env
using --no-site-package option the sqlite module was not copied over
from site package.

You will have to install sqlite inside your env (either by copying the
relevant files or any other method you see fit).

Cheers,
Florent.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to