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'
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'