Traceback (most recent call last):
File "testing.py", line 20, in <module>
q = testm.Level1.query.all()
File
"/test/_env/lib/python2.7/site-packages/flask_sqlalchemy/__init__.py",
line 452, in __get__
mapper = orm.class_mapper(type)
File "/test/_env/lib/python2.7/site-packages/sqlalchemy/orm/base.py",
line 421, in class_mapper
mapper = _inspect_mapped_class(class_, configure=configure)
File "/test/_env/lib/python2.7/site-packages/sqlalchemy/orm/base.py",
line 400, in _inspect_mapped_class
mapper._configure_all()
File
"/test/_env/lib/python2.7/site-packages/sqlalchemy/orm/mapper.py", line
1167, in _configure_all
configure_mappers()
File
"/test/_env/lib/python2.7/site-packages/sqlalchemy/orm/mapper.py", line
2770, in configure_mappers
mapper._post_configure_properties()
File
"/test/_env/lib/python2.7/site-packages/sqlalchemy/orm/mapper.py", line
1710, in _post_configure_properties
prop.init()
File
"/test/_env/lib/python2.7/site-packages/sqlalchemy/orm/interfaces.py",
line 183, in init
self.do_init()
File
"/test/_env/lib/python2.7/site-packages/sqlalchemy/orm/relationships.py",
line
1629, in do_init
self._setup_join_conditions()
File
"/test/_env/lib/python2.7/site-packages/sqlalchemy/orm/relationships.py",
line
1704, in _setup_join_conditions
can_be_synced_fn=self._columns_are_mapped
File
"/test/_env/lib/python2.7/site-packages/sqlalchemy/orm/relationships.py",
line
1977, in __init__
self._check_foreign_cols(self.primaryjoin, True)
File
"/test/_env/lib/python2.7/site-packages/sqlalchemy/orm/relationships.py",
line
2481, in _check_foreign_cols
self.prop
File
"/test/_env/lib/python2.7/site-packages/sqlalchemy/sql/elements.py",
line 506, in __str__
return unicode(self.compile()).encode('ascii', 'backslashreplace')
File "<string>", line 1, in <lambda>
File
"/test/_env/lib/python2.7/site-packages/sqlalchemy/sql/elements.py",
line 494, in compile
return self._compiler(dialect, bind=bind, **kw)
File
"/test/_env/lib/python2.7/site-packages/sqlalchemy/sql/elements.py",
line 500, in _compiler
return dialect.statement_compiler(dialect, self, **kw)
File
"/test/_env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py",
line 395, in __init__
Compiled.__init__(self, dialect, statement, **kwargs)
File
"/test/_env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py",
line 190, in __init__
self.string = self.process(self.statement, **compile_kwargs)
File
"/test/_env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py",
line 213, in process
return obj._compiler_dispatch(self, **kwargs)
File
"/test/_env/lib/python2.7/site-packages/sqlalchemy/sql/visitors.py",
line 93, in _compiler_dispatch
return meth(self, **kw)
File
"/test/_env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py",
line 927, in visit_binary
return self._generate_generic_binary(binary, opstring, **kw)
File
"/test/_env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py",
line 944, in _generate_generic_binary
binary.right._compiler_dispatch(self, **kw)
File
"/test/_env/lib/python2.7/site-packages/sqlalchemy/sql/annotation.py",
line 73, in _compiler_dispatch
self, visitor, **kw)
File
"/test/_env/lib/python2.7/site-packages/sqlalchemy/sql/visitors.py",
line 81, in _compiler_dispatch
return meth(self, **kw)
File
"/test/_env/lib/python2.7/site-packages/sqlalchemy/sql/compiler.py",
line 627, in visit_column
raise exc.CompileError("Cannot compile Column object until "
sqlalchemy.exc.CompileError: Cannot compile Column object until its
'name' is assigned.
Thank you for any suggestions!
Cheers