<div dir="ltr">Hi,<br><br>I followed these steps to set up a Python 3.6 build environment:<br><br><a href="https://lists.buildbot.net/pipermail/devel/2017-February/012310.html">https://lists.buildbot.net/pipermail/devel/2017-February/012310.html</a><br><br>If run this test:<br><br>trial buildbot.test.unit.test_db_pool<br><br>I get this error:<br><br>Exception closing connection <sqlite3.Connection object at 0x1052bfb90><br>Traceback (most recent call last):<br>  File "/Users/crodrigues/.pyenv/versions/venv-3.5.2/lib/python3.5/site-packages/sqlalchemy/pool.py", line 300, in _close_connection    self._dialect.do_close(connection)<br>  File "/Users/crodrigues/.pyenv/versions/venv-3.5.2/lib/python3.5/site-packages/sqlalchemy/engine/default.py", line 446, in do_close<br>    dbapi_connection.close()<br>sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread.The object was created in thread id 123145392500736 and this is thread id 140736404648896<br><div><br></div><div>I looked into the code and saw that this line in enginestrategy.py:</div><div><a href="https://github.com/buildbot/buildbot/blob/master/master/buildbot/db/enginestrategy.py#L171">https://github.com/buildbot/buildbot/blob/master/master/buildbot/db/enginestrategy.py#L171</a><br></div><div><br></div><div>restricts max_conns to 1 if the database is SQLite.  This *should* restrict things</div><div>to only one thread in the dbpool.</div><div>I can't figure out what's going on here.</div><div><br></div><div>I would greatly appreciate if someone could help with this!</div><div><br></div><div>--<br></div><div>Craig</div><div><br></div><div><br></div></div>