Closed maaaaz closed 9 months ago
By the way, before csvkit fixes this issue, the current ugly workaround is to do a pip install sqlalchemy==1.4.49
after pip install csvkit
, to force an old version of sqlalchemy to be used.
Thank you for reporting!
Thanks, when did you plan to update the package on pypi ?
Great, I will try !
Hello there,
Here is a critical bug due the SQLAlchemy depreciated features:
cd /tmp/ && wget https://github.com/wireservice/csvkit/raw/master/examples/foo1.csv
csvsql with SQLAlchemy < 2.0: some warnings, but execution is OK
/usr/local/lib/python3.11/dist-packages/csvkit/utilities/csvsql.py:236: RemovedIn20Warning: Passing a string to Connection.execute() is deprecated and will be removed in version 2.0. Use the text() construct, or the Connection.exec_driver_sql() method to invoke a driver-level SQL string. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9) id,name,age 1.0,Jake,22.0 2.0,Howard,21.0
$ csvsql -u 1 foo1.csv --tables db --query 'SELECT FROM db' /tmp/lol/foo2/lib/python3.11/site-packages/pkg_resources/init.py:121: DeprecationWarning: pkg_resources is deprecated as an API ObjectNotExecutableError: Not an executable object: 'SELECT FROM db'