Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing/incomplete configuraation #97

Open
MorrCarter opened this issue Mar 24, 2024 · 1 comment
Open

missing/incomplete configuraation #97

MorrCarter opened this issue Mar 24, 2024 · 1 comment

Comments

@MorrCarter
Copy link

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

@laurensstoop
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants