EUREC4A-UK / lagtraj

Python trajectory code for Lagrangian simulations
MIT License
10 stars 9 forks source link

Error while trying to download domain data with new CDSAPI #208

Open girishnigamanth opened 3 weeks ago

girishnigamanth commented 3 weeks ago

The ECMWF CDSAPI got updated recently and following this trying to download new domain data throws following error.

File "/mnt/stor-pool-01/users/6002974/.local/lib/python3.11/site-packages/lagtraj/domain/sources/era5/download.py", line 86, in download_data if has_valid_args and _request_exists(request_id=request_id, c=c): File "/mnt/stor-pool-01/users/6002974/.local/lib/python3.11/site-packages/lagtraj/domain/sources/era5/download.py", line 200, in _request_exists except c.RequestNotFoundException: ^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'LegacyApiClient' object has no attribute 'RequestNotFoundException'

leifdenby commented 3 weeks ago

Thanks for this @girishnigamanth, what version of cdsapi are you using?

girishnigamanth commented 3 weeks ago

I recently upgraded it to 0.7.3 version