Hi people,
I am running this code (just a test)
import cdsapi
def main():
c = cdsapi.Client(timeout=600,quiet=False,debug=True)
c.retrieve("reanalysis-era5-pressure-levels",
{
"variable": "temperature",
"pressure_level": "1000",
"product_type": "reanalysis",
"year": "2008",
"month": "01",
"day": "01",
"time": "12:00",
"format": "grib"
}, "download.grib")
print("downloaded")
main()
and I am always receiving this error:
2021-11-28 16:35:03,709 WARNING Recovering from connection error [HTTPSConnectionPool(host='download-0001.copernicus-climate.eu', port=443): Max retries exceeded with url: /resources/reanalysis-era5-single-levels (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1091)')))], attemps 0 of 500
I've already done many things trying to solve it, including:
- Upgrading certifi, pyopenSSL
- Downloading and installing ecmwf certificates to windows
- manually adding ECMWF certificates to certific cacert.pem
- changing envinronment
but was never able to solve this... any ideas on how to solve it?