Sqlalchemy.exc.UnboundExecutionError: Could not locate a bind configured on mapper Mapper|SellsTable|sellers or this Session
问题 I create a class for working with SQLAlchemy : class DbAbsLayer(object): def __init__(self): self.setConnectionURI(); def setConnectionURI(self): self.dbDriver = "mysql"; self.dbHostname = "localhost"; self.dbUsername = "root"; self.dbPassword = "123"; self.dbName = "mydbname"; def createSession(self): Session = sessionmaker(); self.session = Session.configure(); self.session = Session(); def createEngine(self): self.setConnectionURI(); self.engine = create_engine(self.dbDriver + "://" + self