Error using download_glorys_data_copernicus_cli.py – [Errno 9] Bad file descriptor from portalocker

Hello,

I’m trying to use the script download_glorys_data_copernicus_cli.py, provided in the croco_pytools (v1.0.3) to download monthly GLORYS12 data through the copernicusmarine toolbox.

However, when I run the script, I encounter the following error during the login process:

portalocker.exceptions.LockException: [Errno 9] Bad file descriptor

I have already tried uninstalling and reinstalling the croco_pyenv environment to see if that would fix the issue, but the error persists.

Has anyone experienced this error before and managed to fix it? Any advice would be greatly appreciated.

Thanks!

The copernicus API has recently changed. We will provide an updated script along with the next release of the croco_pytools which should be in September.

Thank you for the information