cdsapi
cdsapi copied to clipboard
Exception: Missing/incomplete configuration
Exception Traceback (most recent call last)
~\anaconda3\lib\site-packages\cdsapi\api.py in 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) 299 300 if url is None or key is None or key is None: --> 301 raise Exception("Missing/incomplete configuration file: %s" % (dotrc)) 302 303 self.url = url
Exception: Missing/incomplete configuration file: C:\Users\HP/.cdsapirc
Can anyone help me with this issue???
@saptisunil It looks like you need to add url: https://cds.climate.copernicus.eu/api/v2
to your .cdsapirc
file.
Here is how to set it up if this file doesn't exist. https://cds.climate.copernicus.eu/api-how-to
Hi, Thanks providing the solution @lgloege Eddy
@lgloege it doesn't work for me. the .cdsapirc is complete.
@lgloege it doesn't work for me. the .cdsapirc is complete.
Just put the two lines of text from the .cdsapirc file arguments in the cdsapi.Client(url = "...", key = "...") function instead.