No module named 'requests' in camsdownload
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): binary from /softs/projets/muscate/maja/4.2.7
- Maja version (use command below): 4.2.7
- 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**
The following command:
`./camsdownload -d 20210620 -f 20210630 -a /work/scratch/colinj/sandbox/tmpdir/ -w /work/CESBIO/projects/Maja/CAMS_Step0_2021/ -k -p s2`
raises the following error:
Number of days = 11
Downloading files for date 2021-06-20 00:00:00
00 Traceback (most recent call last): File "/softs/projets/muscate/maja/4.2.7/lib/python/StartMaja/cams_download/download_CAMS_daily.py", line 235, in download_files(date, ftype, time[t], step_choice, args.write_dir) File "/softs/projets/muscate/maja/4.2.7/lib/python/StartMaja/cams_download/download_CAMS_daily.py", line 29, in download_files from cdsapi import Client File "/softs/projets/muscate/maja/4.2.7/lib/python/StartMaja/cams_download/cdsapi/init.py", line 21, in from cdsapi import api File "/softs/projets/muscate/maja/4.2.7/lib/python/StartMaja/cams_download/cdsapi/api.py", line 16, in import requests ModuleNotFoundError: No module named 'requests'
The 'requests' module doesn't seem to ship with the packaged python. Same issue when using a compiled version of the 4.2.7 on a debian 10 (with and without the Superbuild_archive_4.2).
**Describe the expected behavior**
**Urgency/Criticity**
- Urgency (Select Low/Medium/High): Medium
- Criticity (Select Low/Medium/High): Medium
**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](https://gitlab.cnes.fr/maja/maja/blob/develop/ISSUE.md#Contexts)
**Correction**
(Optional) Provide a version number (Major.Minor.Patch, e.g. 3.2.1) when the correction shall be introduced.