You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
In Colab: Connecting fails: "got an unexpected keyword argument 'bind'" #227
__init__() got an unexpected keyword argument 'bind'
Connection info needed in SQLAlchemy format, example:
postgresql://username:password@hostname/dbname
or an existing connection: dict_keys([])
This error started happening in the last 24 hours.
I'm not sure what's causing this, but it looks like it's related to SQLAlchemy version 2.0.0. As a temporary workaround, I added !pip install SQLAlchemy==1.4.46 before %load_ext sql, which fixed the problem.
Reacted by Jamie Stephens, Yohanna Lisnichuk, Henry Hinnefeld, rodrigomolina-kc, Yiyang Chen, oenie, Gilmar Santos and Spencer Harris
@tjerkw and @rwarren, did you restart the runtime after the pinned pip installs? When I do these installs and then restart the runtime, things work. (Menu: Runtime -> Restart runtime.)
@jsmorph I thought I had restarted, but apparently not! After a fresh reboot today, this is is working perfectly fine after installingSQLAlchemy==1.4.46. 👍
Activity
kpgaffney commentedon Feb 3, 2023
I'm not sure what's causing this, but it looks like it's related to SQLAlchemy version 2.0.0. As a temporary workaround, I added
!pip install SQLAlchemy==1.4.46before%load_ext sql, which fixed the problem.jsmorph commentedon Feb 3, 2023
Thanks very much for the quick fix.
FWIW, I'm now pinning versions like this in Colab:
rwarren commentedon Feb 14, 2023
Same problem here, but when I install SQLAlchemy 1.4.46 it does not help. In my case I'm running a local jupyterlab (version 3.6.1).
tjerkw commentedon Feb 16, 2023
Same issue, pinning sqlAclhemny or ipython-sql does not work.
jsmorph commentedon Feb 16, 2023
@tjerkw and @rwarren, did you restart the runtime after the pinned
pip installs? When I do these installs and then restart the runtime, things work. (Menu: Runtime -> Restart runtime.)rwarren commentedon Feb 16, 2023
@jsmorph I thought I had restarted, but apparently not! After a fresh reboot today, this is is working perfectly fine after installing
SQLAlchemy==1.4.46. 👍updated to include listing tables & columns (catherinedevlin#227)