trinodb / trino-python-client

Python client for Trino
Apache License 2.0
309 stars 151 forks source link

Error creating sqlalchemy engine (sqlalchemy 1.4) #286

Closed mederka closed 1 year ago

mederka commented 1 year ago

Expected behavior

Creating sqlalchemy engine should not fail.

Actual behavior

It raises this error:

ImportError: cannot import name '_rfc_1738_quote' from 'sqlalchemy.engine.url'

Steps To Reproduce

catalog = postgresql sqlalchemy version = 1.4.44

Running

url = "trino://username@port:8080/postgresql"
sqlalchemy.create_engine(url)

Causes this error:

ImportError: cannot import name '_rfc_1738_quote' from 'sqlalchemy.engine.url'

Log output

No response

Operating System

Ubuntu 20.04.5 LTS

Trino Python client version

0.318.0

Trino Server version

402

Python version

3.9.15

Are you willing to submit PR?

mederka commented 1 year ago

It looks like this is resolved in 0.319.0