cloudera / impyla

Python DB API 2.0 client for Impala and Hive (HiveServer2 protocol)
Apache License 2.0
730 stars 248 forks source link

Error in Python 3.12.1 trying to run connect #529

Closed jmagana2000 closed 4 months ago

jmagana2000 commented 10 months ago

Got this exception when trying to create a connect object when running in Docker container using Ubuntu 22.04 and Python 3.12.1

Traceback (most recent call last): File "", line 1, in File "/usr/lib/python3.12/site-packages/impala/dbapi.py", line 197, in connect service = hs2.connect(host=host, port=port, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/impala/hiveserver2.py", line 865, in connect transport.open() File "/usr/lib/python3.12/site-packages/thrift/transport/TTransport.py", line 155, in open return self.trans.open() ^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/site-packages/impala/_thrift_api.py", line 174, in open self.http = http_client.HTTPSConnection(self.host, self.port, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: HTTPSConnection.init() got an unexpected keyword argument 'key_file'

csringhofer commented 10 months ago

Merged https://github.com/cloudera/impyla/pull/531 so this should be solved.