First, pip install cdsapi and could run the example .py properly.
Seconda, pip install cdstoolbox-remote, but get AttributeError: module '__main__' has no attribute '__file__'.
Then, I open the __init__.py in the cdstoolbox package.
The contents are:
import __main__
import cdsapi
import sys
c = cdsapi.Client()
with open(__main__.__file__) as f:
code = f.read()
print(c.download(c.workflow(code)))
sys.exit(0)
The AtrbuteError mentioned above is in the "with open(__main__.__file__) as f:"
Thank you
1 Comment
Nicolas Degorce
Hi,
I have the same issue. Did somebody found a solution?
Thank you