I have problem when I try to create a database in SQLAlchemy:
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker
Database
import models
class Database:
def __init__(self, db_url):
engine = create_engine(db_url)
models.Base.metadata.create_all(bind=engine)
self.maker = sessionmaker(bind=engine)
the error is following:
plugins = u._instantiate_plugins(kwargs)
AttributeError: 'NoneType' object has no attribute '_instantiate_plugins'