Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
davidboweninrupt opened this issue Nov 16, 2023 · 5 comments

Comments

@davidboweninrupt
Copy link

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
Copy link

onecer commented Feb 19, 2024

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
Copy link
Author

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

@zw999
Copy link

zw999 commented Mar 28, 2024

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

@mattholy
Copy link

same error, we had to rollback our entire airflow cluster

@dhanyn10singapay
Copy link

same error here. Need to switch back to python 3.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants