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

Exception: Missing/incomplete configuration #37

Closed
saptisunil opened this issue Feb 19, 2021 · 6 comments
Closed

Exception: Missing/incomplete configuration #37

saptisunil opened this issue Feb 19, 2021 · 6 comments

Comments

@saptisunil
Copy link

Exception Traceback (most recent call last)
in
1 import cdsapi
2
----> 3 c = cdsapi.Client()
4
5 c.retrieve(

~\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

@saptisunil
Copy link
Author

Can anyone help me with this issue???

@lgloege
Copy link

lgloege commented Mar 27, 2021

@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

@EddyCMWF
Copy link
Collaborator

Hi,
Thanks providing the solution @lgloege
Eddy

@MeHashemi
Copy link

@lgloege it doesn't work for me. the .cdsapirc is complete.

@zachHTF
Copy link

zachHTF commented Jun 15, 2023

@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.

@drleo037
Copy link

drleo037 commented Dec 4, 2024

@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

The URL looks to be changed to: https://cds.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

6 participants