siddhantgoel / tornado-sqlalchemy

SQLAlchemy support for Tornado
https://tornado-sqlalchemy.readthedocs.io/en/latest/
MIT License
125 stars 21 forks source link

example multiple_databases.py fails when start up #93

Closed nobodxbodon closed 3 years ago

nobodxbodon commented 4 years ago
$ python3 examples/multiple_databases.py 
Traceback (most recent call last):
  File "examples/multiple_databases.py", line 98, in <module>
    db.create_all()
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado_sqlalchemy/__init__.py", line 283, in create_all
    self._execute_for_all_tables(bind, 'create_all')
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado_sqlalchemy/__init__.py", line 278, in _execute_for_all_tables
    op(bind=self.get_engine(bind), **extra)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado_sqlalchemy/__init__.py", line 232, in get_engine
    engine = self.create_engine(bind)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/tornado_sqlalchemy/__init__.py", line 225, in create_engine
    return create_engine(url, **self._engine_options)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sqlalchemy/engine/__init__.py", line 500, in create_engine
    return strategy.create(*args, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/sqlalchemy/engine/strategies.py", line 173, in create
    engineclass.__name__,
TypeError: Invalid argument(s) 'pool_timeout','max_overflow' sent to create_engine(), using configuration SQLiteDialect_pysqlite/SingletonThreadPool/Engine.  Please check that the keyword arguments are appropriate for this combination of components.

Python version is 3.7.3

siddhantgoel commented 3 years ago

Thanks for the report. Fixed.