Open
Description
What steps will reproduce the problem?
1. Run the program. See transcript below.
What is the expected output? What do you see instead?
$ sqlautocode sqlite:///tutorial.db -o models.py
Traceback (most recent call last):
File "/usr/local/bin/sqlautocode", line 9, in <module>
load_entry_point('sqlautocode==0.7', 'console_scripts', 'sqlautocode')()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 318, in load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2221, in load_entry_point
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 1954, in load
*possible* to create pathological version coding schemes that will fool
File "/Library/Python/2.7/site-packages/sqlautocode/main.py", line 4, in <module>
from declarative import ModelFactory
File "/Library/Python/2.7/site-packages/sqlautocode/declarative.py", line 17, in <module>
from sqlalchemy.ext.declarative import _deferred_relation as _deferred_relationship
ImportError: cannot import name _deferred_relation
What version of the product are you using? On what operating system?
SQLAlchemy (0.8.0)
sqlautocode (0.7)
(both freshly updated from PyPI)
On Mac OS X 10.7.5, using Python 2.7.1
Please provide any additional information below.
Original issue reported on code.google.com by jonathan...@gmail.com
on 5 Apr 2013 at 5:16