Unable to download corresponding data using the new API

Unfortunately, I still haven’t identified the source of the issue. However, on my other computer, the same process is able to download normally. It might be a problem with the coding environment.

I posted step by step instructions on how to download using CDS Beta. You can check it. Hope this hepls you to fix the issue you are facing.

Hello,

At first, I tried to download on my desktop computer and encountered the above issues. Later, I found that I could download normally on my laptop with the same process, so I suspected that there might be some problems with my code environment. Later, due to some reasons, I uninstalled and reinstalled Anaconda (I use it to run Python code) and then, after running the pip install ‘cdsapi>=0.7.0’ command in the Anaconda PowerShell Prompt with administrative privileges to install this library, I was also able to download normally.

This is my solution, I hope it is helpful, good luck to you.

WXJ

1 Like

I encountered similar issues while trying to download data using cdsapi. Initially, I was using Python 3.11, but after multiple errors, I switched the interpreter to Miniconda with Python 3.12, and everything worked perfectly. I restarted the kernel in Spyder, and the script ran without any issues. I also tested it in PyCharm Community, and it worked fine. The issue seemed related to the Python environment I was using. Additionally, the .cdsapirc file needs to have the correct URL configured:

makefile

Copiar código

url: https://cds.climate.copernicus.eu/api
key: Personal Access Token

Switching the interpreter resolved the issue for me. good luck

BPV

1 Like