I keep getting the error
Cannot import name 'get_cloud_client' from 'gretel_client'
when I import using
from gretel_client import get_cloud_client
client = get_cloud_client(prefix="api", api_key="prompt")
client.install_packages()
I have followed all documentation and tutorials which say to just install using
!pip install -U gretel-client
and I have checked that the package exists using
!pip freeze
However it still cannot load it. Does anyone know why?
This is the only package I am having trouble with loading, everything else is fine.
CodePudding user response:
It seems like this is the older way of using gretel_client.
You have two options, either to install and use an older version of the library:
pip install gretel-client==0.7.13
Or learn how to use the latest version of the library, the docs might be helpful: https://python.docs.gretel.ai/en/latest/index.html