I have developed a model and I get the error below when I launch
tg-admin sql create.
Any idea where it could come from?
Thanks,
Francois
[EMAIL PROTECTED]:~/examples/account1$ tg-admin sql create
...detected
Creating tables at postgres://tgadmin:[EMAIL PROTECTED]/tgtest
Traceback (most recent call last):
File "/usr/local/bin/tg-admin", line 8, in <module>
load_entry_point('TurboGears==1.0.4b1', 'console_scripts', 'tg-admin')()
File
"/usr/lib/python2.5/site-packages/TurboGears-1.0.4b1-py2.5.egg/turbogears/command/base.py",
line 371, in main
command.run()
File
"/usr/lib/python2.5/site-packages/TurboGears-1.0.4b1-py2.5.egg/turbogears/command/base.py",
line 97, in run
sacommand(command, sys.argv)
File "<string>", line 5, in sacommand
File
"/usr/lib/python2.5/site-packages/TurboGears-1.0.4b1-py2.5.egg/turbogears/command/sacommand.py",
line 33, in create
metadata.create_all()
File
"/usr/lib/python2.5/site-packages/SQLAlchemy-0.3.10-py2.5.egg/sqlalchemy/schema.py",
line 1239, in create_all
bind.create(self, checkfirst=checkfirst, tables=tables)
File
"/usr/lib/python2.5/site-packages/SQLAlchemy-0.3.10-py2.5.egg/sqlalchemy/engine/base.py",
line 699, in create
self._run_visitor(self.dialect.schemagenerator, entity,
connection=connection, **kwargs)
File
"/usr/lib/python2.5/site-packages/SQLAlchemy-0.3.10-py2.5.egg/sqlalchemy/engine/base.py",
line 729, in _run_visitor
element.accept_visitor(visitorcallable(conn, **kwargs))
File
"/usr/lib/python2.5/site-packages/SQLAlchemy-0.3.10-py2.5.egg/sqlalchemy/schema.py",
line 1266, in accept_visitor
visitor.visit_metadata(self)
File
"/usr/lib/python2.5/site-packages/SQLAlchemy-0.3.10-py2.5.egg/sqlalchemy/ansisql.py",
line 798, in visit_metadata
table.accept_visitor(self)
File
"/usr/lib/python2.5/site-packages/SQLAlchemy-0.3.10-py2.5.egg/sqlalchemy/sql.py",
line 2713, in accept_visitor
visitor.visit_table(self)
File
"/usr/lib/python2.5/site-packages/SQLAlchemy-0.3.10-py2.5.egg/sqlalchemy/ansisql.py",
line 819, in visit_table
self.append("\t" + self.get_column_specification(column,
first_pk=column.primary_key and not first_pk))
File
"/usr/lib/python2.5/site-packages/SQLAlchemy-0.3.10-py2.5.egg/sqlalchemy/databases/postgres.py",
line 610, in get_column_specification
colspec += " " + column.type.dialect_impl(self.dialect).get_col_spec()
AttributeError: 'ForeignKey' object has no attribute 'dialect_impl'
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---