On Thu, Sep 26, 2013 at 11:09 AM,  <mew...@gmail.com> wrote:
> windows 7 64bit, flask, sqlalchemy 0.8.2, postgresql latest
>
> Traceback (most recent call last):
>   File "E:/code/python/sqlalchemy-test/sql-test.py", line 30, in <module>
>     db.session.add(admin)
>   File "build\bdist.win-amd64\egg\sqlalchemy\orm\scoping.py", line 149, in
> do
>   File "build\bdist.win-amd64\egg\sqlalchemy\util\_collections.py", line
> 852, in __call__
>   File
> "D:\Python27\lib\site-packages\flask_sqlalchemy-1.0-py2.7.egg\flask_sqlalchemy\__init__.py",
> line 139, in __init__
>     bind=db.engine,
>   File
> "D:\Python27\lib\site-packages\flask_sqlalchemy-1.0-py2.7.egg\flask_sqlalchemy\__init__.py",
> line 780, in engine
>     return self.get_engine(self.get_app())
>   File
> "D:\Python27\lib\site-packages\flask_sqlalchemy-1.0-py2.7.egg\flask_sqlalchemy\__init__.py",
> line 797, in get_engine
>     return connector.get_engine()
>   File
> "D:\Python27\lib\site-packages\flask_sqlalchemy-1.0-py2.7.egg\flask_sqlalchemy\__init__.py",
> line 473, in get_engine
>     self._engine = rv = sqlalchemy.create_engine(info, **options)
>   File "build\bdist.win-amd64\egg\sqlalchemy\engine\__init__.py", line 332,
> in create_engine
>   File "build\bdist.win-amd64\egg\sqlalchemy\engine\strategies.py", line 64,
> in create
>   File
> "build\bdist.win-amd64\egg\sqlalchemy\dialects\postgresql\psycopg2.py", line
> 368, in dbapi
> ImportError: No module named psycopg2
>
> Process finished with exit code 1
>
>
>
> somebody help me ??????
>

I hope this isn't a silly question, but have you installed the
psycopg2 package (https://pypi.python.org/pypi/psycopg2)?

SQLAlchemy doesn't include the low-level database drivers - you have
to install the appropriate driver for the database you are using.

Hope that helps,

Simon

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to