Skip to content

Instantly share code, notes, and snippets.

@LalitMaganti
Created November 13, 2012 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LalitMaganti/4068499 to your computer and use it in GitHub Desktop.
Save LalitMaganti/4068499 to your computer and use it in GitHub Desktop.
/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.9-py2.7.egg/sqlalchemy/ext/declarative.py:1343: SAWarning: The classname 'File' is already in the registry of this declarative base, mapped to <class 'model.schema.File'>
_as_declarative(cls, classname, cls.__dict__)
Traceback (most recent call last):
File "app.py", line 79, in <module>
run_server()
File "app.py", line 74, in run_server
server = tornado.httpserver.HTTPServer(Application(), extend_existing=True, xheaders=True)
File "app.py", line 48, in __init__
init_database(create_engine(config.get('database', 'uri')))
File "/home/lalit/GetCM/getcm/model/__init__.py", line 13, in init_database
__import__("getcm.model.schema", globals(), locals(), ["*"])
File "/usr/local/lib/python2.7/dist-packages/GetCM-2.4.7-py2.7.egg/getcm/model/schema/__init__.py", line 11, in <module>
class File(Base):
File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.9-py2.7.egg/sqlalchemy/ext/declarative.py", line 1343, in __init__
_as_declarative(cls, classname, cls.__dict__)
File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.9-py2.7.egg/sqlalchemy/ext/declarative.py", line 1244, in _as_declarative
**table_kw)
File "/usr/local/lib/python2.7/dist-packages/SQLAlchemy-0.7.9-py2.7.egg/sqlalchemy/schema.py", line 305, in __new__
"existing Table object." % key)
sqlalchemy.exc.InvalidRequestError: Table 'files' is already defined for this MetaData instance. Specify 'extend_existing=True' to redefine options and columns on an existing Table object.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment