On Jun 1, 2:46 pm, Emanuele Gesuato <emanuele.gesu...@gmail.com> wrote: > > I'm trying to port an application from sqlalchemy 0.5 to 0.6 but i got > a strange error when i try to run the program in windows xp. The log > is the following: > > Traceback (most recent call last): > File "database.pyc", line 20, in <module> > File "sqlalchemy\engine\__init__.pyc", line 237, in create_engine > File "sqlalchemy\engine\strategies.pyc", line 46, in create > File "sqlalchemy\engine\url.pyc", line 99, in get_dialect > ImportError: No module named postgresql
I ran into the same error trying to build a Windows executable with py2exe. I fixed it by explicitly importing the postgresql dialect and psycopg2: from psycopg2 import * from sqlalchemy.dialects.postgresql import * -Marc -- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To post to this group, send email to sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.