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

I have SQLAlchemy-0.5.0beta3-py2.5.egg (attainable through
http://turbogears.org/2.0/docs/main/DownloadInstall.html)
--~--~---------~--~----~------------~-------~--~----~
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