FormAlchemy / formalchemy

MIT License
81 stars 29 forks source link

sqlalchemy.exceptions ImportError for SqlAlchemy 7.1 #6

Closed samuelchen closed 13 years ago

samuelchen commented 13 years ago

In fields.py

from sqlalchemy.exceptions import InvalidRequestError # 0.4 support

raises excpetion

File "E:\eXchange\Python27\lib\site-packages\formalchemy-1.3.9-py2.7.egg\formalchemy\fields.py", line 18, in <module>
    from sqlalchemy.exceptions import InvalidRequestError # 0.4 support
ImportError: No module named exceptions

It worked for SqlAlchemy 6.7.

If I change it to from sqlalchemy.exc import InvalidRequestError # 0.4 support , it works.

formalchemy version is 1.39

samuelchen commented 13 years ago

See Pull Request 7 the fix.