huaweicloud-sdk-python-obs
huaweicloud-sdk-python-obs copied to clipboard
Python 3.12: TypeError: HTTPSConnection.__init__() got an unexpected keyword argument 'check_hostname'
Hi,
I'm unable to use the OBS client in Python 3.12 because this line of code is using the check_hostname
argument which was removed in Python 3.12.
This is hard-coded to None
in client.py. Could it please be removed?
Thanks
If ssl checking is not necessary, consider setting is_secure=False when initializing the client. eg .
self.obsClient = ObsClient(access_key_id=self.obs_ak, secret_access_key=self.obs_sk, server=self.obs_server,
is_secure=False)
Thanks for the suggestion @onecer but SSL checking is always required to ensure we are connecting to the correct server.
same problem, we need python3.12 because CVE-2023-27043 and CVE-2023-24329, but obs sdk run error on python3.12
same error, we had to rollback our entire airflow cluster
same error here. Need to switch back to python 3.10