-
Notifications
You must be signed in to change notification settings - Fork 36
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
Fix SSL errors #41
base: master
Are you sure you want to change the base?
Fix SSL errors #41
Conversation
This fix is becoming urgent as we have permanent SSL certification errors with our newest python installations (3.12).
|
Hi, your solution will conflict with the proxy. I suggest the following:
Feel free to improve this, pull a new request, and force the developer to at last update his code |
I am getting the same error and have not been able to resolve even by connecting through a hotspot. @jmmelko thank you for providing a solution. I am just curious with where it should be implemented? It looks close to the structure in the function queryHITRAN. Thank you for your help, The solution from @longmathemagician did not solve my particular issue unfortunately. URLError: <urlopen error [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond> During handling of the above exception, another exception occurred: Traceback (most recent call last): Cell In[20], line 1 File ~\OneDrive\Documents\hapi\WMS_functions.py:999 in generate_lookup File ~\OneDrive\Documents\hapi\hapi.py:4900 in fetch File ~\OneDrive\Documents\hapi\hapi.py:2875 in queryHITRAN Exception: Cannot connect to http://hitran.org. Try again or edit GLOBAL_HOST variable. |
Fixes #8 & #40 by passing Mozilla's root certs to urllib. As far as I can tell this is the idiomatic solution for recent Python versions. Requires the installation of python-certifi (
pip install certifi
), which should probably be included in the fix for #36.