On 7/31/06, Pierre Vaudrey <[EMAIL PROTECTED]> wrote:
Before I use SQLAlchemy with Turbogears, I'm playing with SQLAlchemy
tutorial.
I'm on mac os x 10.4.7, have installed SQLite version 3.2.2. But I
run firststeps.py with the following error :

$ python firststeps.py
Traceback (most recent call last):
   File "firststeps.py", line 3, in ?
     db = create_engine('sqlite:///tutorial.db')
   File "/Library/Frameworks/Python.framework/Versions/2.4/lib/
python2.4 /site-packages/PIL/__init__.py", line 92, in create_engine

   File "build/bdist.darwin-8.7.0-Power_Macintosh/egg/sqlalchemy/
engine/strategies.py", line 34, in create
   File "build/bdist.darwin- 8.7.0-Power_Macintosh/egg/sqlalchemy/
databases/sqlite.py", line 136, in __init__
AttributeError: 'module' object has no attribute 'sqlite_version'

Something is screwed up with your sqlite install...  Try this in a standalone script;

from pysqlite2 import dbapi2 as sqlite

My guess is this won't work for whatever reason, so SA is trying to use sqlite 1 instead and running into problems. 

--
Jonathan Ellis
http://spyced.blogspot.com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to