AttributeError: module '__main__' has no attribute '__file__'

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 in the cdstoolbox package.

The contents are:

import __main__
import cdsapi
import sys

c = cdsapi.Client()

with open(__main__.__file__) as f:
code =


The AtrbuteError mentioned above is in the "with open(__main__.__file__) as f:"

Thank you

I have the same issue. Did somebody found a solution?
Thank you