В SQLAlchemy я определил класс таблицы следующим образом:
Код: Выделить всё
class SomeTable(Base):
__table__ = Table('SomeTable', meta, autoload=True, autoload_with=engine)
Код: Выделить всё
ArgumentError: Mapper Mapper|SomeTable|SomeTable could not assemble any primary key columns for mapped table 'SomeTable'.
Подробнее здесь: https://stackoverflow.com/questions/342 ... sqlalchemy