AttributeError: '_thread._local' object has no attribute '_pydal_connection_140103876850296_30686'

26 views
Skip to first unread message

Terrence Brannon

unread,
Apr 12, 2018, 4:29:26 AM4/12/18
to web2py-users
Hello, when using pydal to insert a row in a database, I get the above Exception.


I installed pyDAL via pip and the version is 17.11


Terrence Brannon

unread,
Apr 12, 2018, 6:21:06 PM4/12/18
to web...@googlegroups.com
Solved - all you need to do is a `db._adapter.reconnect()` to freshen the database connection - http://www.metalevel.link/2018/04/12/solved-attributeerror-_thread-_local-object-has-no-attribute-_pydal_connection_140103876850296_30686/
Reply all
Reply to author
Forward
0 new messages