missing/incomplete configuraation
MorrCarter opened this issue · comments
Anytime ii run this code the code below
import cdsapi
c = cdsapi.Client(config)
i get this error
Exception Traceback (most recent call last)
Cell In[5], line 3
1 import cdsapi
----> 3 c = cdsapi.Client(config)
File ~\anaconda3\lib\site-packages\cdsapi\api.py:304, in Client.init(self, url, key, quiet, debug, verify, timeout, progress, full_stack, delete, retry_max, sleep_max, wait_until_complete, info_callback, warning_callback, error_callback, debug_callback, metadata, forget, session)
301 verify = bool(int(config.get("verify", 1)))
303 if url is None or key is None or key is None:
--> 304 raise Exception("Missing/incomplete configuration file: %s" % (dotrc))
306 # If verify is still None, then we set to default value of True
307 if verify is None:
Exception: Missing/incomplete configuration file: C:\Users\afris/.cdsapirc
The error is due to a missing configuration file. Please make sure to set this as instructed on: https://cds-beta.climate.copernicus.eu/how-to-api