cams_download SSLError("Can't connect to HTTPS URL because the SSL module is not available."
name: General Issue (FA)
about: Use this template for reporting an anomaly.
Please make sure that this is a bug. As per our GitHub Policy, we only address code/doc bugs, performance issues and build/installation issues on GitHub.
System information
- OS Platform and Distribution (e.g., Linux Ubuntu 16.04): HAL
- Maja installed from (source or binary): binaries distributed in /softs/projets/muscate/maja/
- Maja version (use command below): 4.5.3
- Maja commit sha (if Maja is installed from source):
- Python version (From binpkg or custom):
- Complementary info (i.e. GCC/Compiler version)
Describe the current behavior
[colinj@visu04 bin]$ ./camsdownload -d 20170101 -f 20170301 -a /work/CESBIO/projects/Maja/CAMS/ -w /work/scratch/colinj/sandbox/tmpdir/ -p s2
Number of days = 60
==================================
Downloading files for date 2017-01-01 00:00:00
==================================
00
Current_date = 20170101
Download cams
Nom fichier de sortie AOT : /work/scratch/colinj/sandbox/tmpdir/CAMS_AOT_20170101UTC000000.nc
WARNING:cdsapi:Recovering from connection error [HTTPSConnectionPool(host='ads.atmosphere.copernicus.eu', port=443): Max retries exceeded with url: /api/v2/resources/cams-global-atmospheric-composition-forecasts (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available."))], attemps 0 of 500
WARNING:cdsapi:Retrying in 120 seconds
^CTraceback (most recent call last):
File "/softs/projets/muscate/maja/4.5.3/lib/python/StartMaja/cams_download/download_CAMS_daily.py", line 235, in <module>
aot, rh, mr = download_files(date, ftype, time[t], step_choice, args.write_dir)
File "/softs/projets/muscate/maja/4.5.3/lib/python/StartMaja/cams_download/download_CAMS_daily.py", line 77, in download_files
path_aot)
File "/softs/projets/muscate/maja/4.5.3/lib/python/StartMaja/cams_download/cdsapi/api.py", line 348, in retrieve
result = self._api("%s/resources/%s" % (self.url, name), request, "POST")
File "/softs/projets/muscate/maja/4.5.3/lib/python/StartMaja/cams_download/cdsapi/api.py", line 418, in _api
url, json=request, verify=self.verify, timeout=self.timeout
File "/softs/projets/muscate/maja/4.5.3/lib/python/StartMaja/cams_download/cdsapi/api.py", line 637, in wrapped
time.sleep(self.sleep_max)
KeyboardInterrupt
Describe the expected behavior
Urgency/Criticity
- Urgency (Select Low/Medium/High):
- Criticity (Select Low/Medium/High):
Code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate the problem. Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.
A path to a context folder is also accepted. Please note the Context policy
Correction
(Optional) Provide a version number (Major.Minor.Patch, e.g. 3.2.1) when the correction shall be introduced.