CDS Beta API says Deprecated

I’m using CDS API

c = cdsapi.Client(url=‘https://cds-beta.climate.copernicus.eu/api’, key=‘#########’)

Yet the response includes the message…

“WARNING [2024-09-20T07:46:07.318649] You are using a deprecated API endpoint. If you are using cdsapi, please upgrade to the latest version.”

Why? Clearly I’m not

Are you on version 0.7.2 perhaps? There is a new version, 0.7.3 cdsapi · PyPI

Thanks Matt,

Yes, 0.7.2.

I’ll look at upgrading to 0.7.3 - yet another round of test, UAT, release for me.

I can’t be the only one concerned that, with just a week to go, things do not yet seem stable at CDS

Mark

I’m using 0.7.0 and not seeing this error, I’m guessing it might be related to your API key instead (as the cdsapi package automatically redirects to different urls dependent on the format of the key). Did you change to use the key from your ecmwf-user instead of the old cds user?

Thanks Oliver,

Here’s a thing.

I updated to 0.7.3 and the warning disappeared.

I reverted to 0.7.2 and the warning did not come back!!!

On one machine I have 0.7.2 installed a while ago, and 0.7.2 installed today.

The older install shows the warning, the newer does not.

Also “pip show cdsapi” shows that the package dependencies may have changed order

Older 0.7.2 - Requires: cads-api-client, requests, tqdm
Newer 0.7.2 - Requires: cads-api-client, tqdm, requests

My local Python guru (far more Python than I) also says the 0.7.2 package might have re-published on 30th August.

Anyways, re-installing 0.7.2 seems to have fixed it (but I’ll still look to go to 0.7.3)

Thanks

It might have to do with which version of “cads-api-client” is installed. Looking at the changelog, the latest update from cdsapi 0.7.2 to 0.7.3 seems to be about requiring “cads-api-client>=1.3.2” instead of “cads-api-client>=1.3.0” previously.

Hey Matt,

You may well be right. Today’s fun with cdsapi package versions, I have now 0.7.2 installed, but

pip show cads-api-client
Name: cads-api-client
Version: 1.3.3

My machine with 0.7.2 installed a while back does indeed show 1.3.0 (and shows that warning)

So 1.3.3 seems to be the one atm

I guess that 1.3.3 didn’t revert to 1.3.0 when I reverted to 0.7.2

Oh well, seems gone

Thanks both for help