forked from catherinedevlin/ipython-sql
-
Notifications
You must be signed in to change notification settings - Fork 79
Closed
Description
What happens?
prettytable package new version (3.12.0) is conflicting with jupysql current version.
To Reproduce
requirements :
jupysql==0.10.14
jupysql-plugin==0.4.5
prettytable==3.12.0
snowflake-sqlalchemy==1.6.1
SQLAlchemy==1.4.54
from sqlalchemy import create_engine
from snowflake.sqlalchemy import URL
engine = create_engine(URL(
account = '<account>,
user = <user>,
authenticator='externalbrowser'
))
%load_ext sql
%sql engine
%sql SELECT * FROM DATABASE.SCHEMA.TABLE LIMIT 10
Error :
KeyError Traceback (most recent call last)
Cell In[7], line 1
----> 1 get_ipython().run_line_magic('sql', 'SELECT * FROM DATABASE.SCHEMA.TABLE LIMIT 10')
--> [466] _style = prettytable.dict[self._config.style.upper()]
[467] pretty.set_style(_style)
[469] return pretty
KeyError: 'DEFAULT'
To fix : Downgrade to previous version of prettytable (3.10.2) and it's working again
OS:
macOS
JupySQL Version:
0.10.14
Full Name:
Theo Legruel
Affiliation:
April
daviddavo, vanheck, kazuya-hatta and samsaara
Metadata
Metadata
Assignees
Labels
No labels