Opened 3 years ago
Last modified 22 months ago
#301 accepted Defect
Bug in flex_extract due to python3 upgrade at ECMWF ecgate env
Reported by: | anphi | Owned by: | anphi |
---|---|---|---|
Priority: | major | Milestone: | flex_extract_v7.1.3 |
Component: | flex_extract | Version: | flex_extract_v7.1 |
Keywords: | Cc: |
Description (last modified by anphi)
After the ECMWF announced a couple of software upgrades and change to new default versions (https://confluence.ecmwf.int/display/UDOC/2021/03/10/Change+of+default+versions+of+ECMWF+and+third-party+software+packages+-+May+2021), the software runs into an error when retrieving ERA5 data:
$HOME/flex_extract_v7.1.2_ctbto/Source/Python/Mods/checks.py:94: SyntaxWarning: 'str' object is not callable; perhaps you missed a comma? raise ValueError('GRID parameter contains two ' $HOME/flex_extract_v7.1.2_ctbto/Source/Python/Mods/checks.py:819: SyntaxWarning: "is not" with a literal. Did you mean "!="? parlist = [p for p in parlist if p is not ''] Retrieving ECMWF data and printing MARS request! start date 20140617 end date 20140621 Traceback (most recent call last): File "$HOME/flex_extract_v7.1.2_ctbto/Source/Python/submit.py", line 268, in <module> main() File "$HOME/flex_extract_v7.1.2_ctbto/Source/Python/submit.py", line 107, in main get_mars_data(c) File "$HOME/flex_extract_v7.1.2_ctbto/Source/Python/Mods/get_mars_data.py", line 150, in get_mars_data server = mk_server(c) File "$HOME/flex_extract_v7.1.2_ctbto/Source/Python/Mods/get_mars_data.py", line 211, in mk_server server = cdsapi.Client() File "/usr/local/apps/cdsapi/0.5.1/lib/python3.8/site-packages/cdsapi/api.py", line 301, in __init__ raise Exception("Missing/incomplete configuration file: %s" % (dotrc)) Exception: Missing/incomplete configuration file: $HOME/.cdsapirc
Change History (6)
comment:1 Changed 3 years ago by anphi
- Description modified (diff)
comment:2 Changed 3 years ago by anphi
comment:3 Changed 3 years ago by anphi
- Summary changed from Bug due to python3 upgrade at ECMWF ecgate env to Bug in flex_extract due to python3 upgrade at ECMWF ecgate env
comment:4 Changed 3 years ago by anphi
- Status changed from new to accepted
comment:5 Changed 2 years ago by anphi
- Milestone set to flex_extract_v7.1.3
comment:6 Changed 22 months ago by pesei
- Priority changed from blocker to major
Note: See
TracTickets for help on using
tickets.
This can be quickly solved with a workaround by changing the submitscript.template in the Templates directory. Exchange the lines with "module load python3" by "module load python3/3.6.8-01".
However, the bug needs to be solved for the new default Python version 3.8.8 soon.