huaweicloud / huaweicloud-sdk-python-obs

Apache License 2.0
73 stars 41 forks source link

Python 3.12: TypeError: HTTPSConnection.__init__() got an unexpected keyword argument 'check_hostname' #31

Open davidboweninrupt opened 9 months ago

davidboweninrupt commented 9 months ago

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

onecer commented 6 months ago

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)
davidboweninrupt commented 6 months ago

Thanks for the suggestion @onecer but SSL checking is always required to ensure we are connecting to the correct server.

zw999 commented 5 months ago

same problem, we need python3.12 because CVE-2023-27043 and CVE-2023-24329, but obs sdk run error on python3.12

mattholy commented 4 months ago

same error, we had to rollback our entire airflow cluster

dhanyn10singapay commented 3 months ago

same error here. Need to switch back to python 3.10