# Pastebin Cz4qvvGg Traceback (most recent call last): File "/usr/local/bin/craton-inventory-dbsync", line 10, in sys.exit(main()) File "/usr/local/lib/python2.7/dist-packages/craton/cmd/dbsync.py", line 69, in main CONF.command.func() File "/usr/local/lib/python2.7/dist-packages/craton/cmd/dbsync.py", line 12, in upgrade migration.upgrade(CONF.command.revision) File "/usr/local/lib/python2.7/dist-packages/craton/db/sqlalchemy/migration.py", line 31, in upgrade alembic.command.upgrade(config, revision or 'head') File "/usr/local/lib/python2.7/dist-packages/alembic/command.py", line 174, in upgrade script.run_env() File "/usr/local/lib/python2.7/dist-packages/alembic/script/base.py", line 407, in run_env util.load_python_file(self.dir, 'env.py') File "/usr/local/lib/python2.7/dist-packages/alembic/util/pyfiles.py", line 93, in load_python_file module = load_module_py(module_id, path) File "/usr/local/lib/python2.7/dist-packages/alembic/util/compat.py", line 79, in load_module_py mod = imp.load_source(module_id, path, fp) File "/usr/local/lib/python2.7/dist-packages/craton/db/sqlalchemy/alembic/env.py", line 66, in run_migrations_online() File "/usr/local/lib/python2.7/dist-packages/craton/db/sqlalchemy/alembic/env.py", line 63, in run_migrations_online context.run_migrations() File "", line 8, in run_migrations File "/usr/local/lib/python2.7/dist-packages/alembic/runtime/environment.py", line 797, in run_migrations self.get_context().run_migrations(**kw) File "/usr/local/lib/python2.7/dist-packages/alembic/runtime/migration.py", line 312, in run_migrations step.migration_fn(**kw) File "/usr/local/lib/python2.7/dist-packages/craton/db/sqlalchemy/alembic/versions/ffdc1a500db1_craton_inventory_init.py", line 108, in upgrade device_labels_columns) File "", line 8, in create_table File "", line 3, in create_table File "/usr/local/lib/python2.7/dist-packages/alembic/operations/ops.py", line 1098, in create_table return operations.invoke(op) File "/usr/local/lib/python2.7/dist-packages/alembic/operations/base.py", line 318, in invoke return fn(self, operation) File "/usr/local/lib/python2.7/dist-packages/alembic/operations/toimpl.py", line 100, in create_table table = operation.to_table(operations.migration_context) File "/usr/local/lib/python2.7/dist-packages/alembic/operations/ops.py", line 1002, in to_table self.table_name, *self.columns, schema=self.schema, **self.kw File "/usr/local/lib/python2.7/dist-packages/alembic/operations/schemaobj.py", line 117, in table t = sa_schema.Table(name, m, *columns, **kw) File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/schema.py", line 440, in __new__ metadata._remove_table(name, schema) File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/langhelpers.py", line 60, in __exit__ compat.reraise(exc_type, exc_value, exc_tb) File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/schema.py", line 435, in __new__ table._init(name, metadata, *args, **kw) File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/schema.py", line 514, in _init self._init_items(*args) File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/sql/schema.py", line 83, in _init_items item._set_parent_with_dispatch(self) AttributeError: 'tuple' object has no attribute '_set_parent_with_dispatch'