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.