Skip to content Skip to sidebar Skip to footer

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.dbDri

Solution 1:

You should bind engine to your model.

class DbAbsLayer(object):

    def createSession(self):
        Session = sessionmaker()
        self.session = Session.configure(bind=self.engine)

Post a Comment for "Sqlalchemy.exc.unboundexecutionerror: Could Not Locate A Bind Configured On Mapper Mapper|sellstable|sellers Or This Session"