Hello everyone I would like to download era5 data with a python script for this I have created an ecmwf account but if I run the test.py script it gives me the following error I am under ubuntu thank you in advance for your help

Hi,

from the error I can see that you are trying to download using the ECMWF WEB API to download ERA-Interim but you didn't previously agreed to the licence. You need to go to the URL shown in the error and accept the license.

If you need to download ERA5, you need to use the Climate Data Store (CDS) API, please have a look at the following page for details:

How to download ERA5 - Copernicus Knowledge Base

Please have a look here for the most common issues of the CDS API:

Common Error Messages for CDS Requests