juxj / sqlautocode

Automatically exported from code.google.com/p/sqlautocode
Other
0 stars 0 forks source link

sqlautocode with sqlalchemy 0.7.4 ImportError: No module named. Patch required #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In a context composed by:
1. sqlautocode 0.6b1
2. sqlalchemy 0.7.4

When I import the maps from the output of sqlautocode I get this error:

ImportError: No module named mysql

To resolve this issue we must change the line 65 in file main.py in this way:

       dialect = 'from sqlalchemy.databases import %s\n' % db.name

Original issue reported on code.google.com by emaildigiuseppe@gmail.com on 3 Jan 2012 at 9:31

GoogleCodeExporter commented 9 years ago
Try:

from sqlalchemy.dialects.mysql import *

Original comment by bigras.b...@gmail.com on 23 Feb 2012 at 7:07

GoogleCodeExporter commented 9 years ago
Fixed in revision 08a7912b8a09.

Original comment by ghet...@gmail.com on 24 Sep 2012 at 10:44