Workspace client creation error

databrick_usert
New Contributor

Hi,

We are trying to use Python SDK and create a workspace client using the following code:

%pip install databricks-sdk --upgrade

dbutils.library.restartPython()

from databricks.sdk import WorkspaceClient

w = WorkspaceClient()

Here is the notebook: https://zg-core-tech-lab.cloud.databricks.com/?o=1374115405812811#notebook/1956674069935518/command/...

And the compute cluster we are using is:

https://zg-core-tech-lab.cloud.databricks.com/compute/clusters/0320-052046-zfcxwjvb?o=13741154058128...

However, the above code throws error as:

default auth: cannot configure default credentials

The above code used to work for workspace 

https://zg-data-eng-dev.cloud.databricks.com/?o=6867857852215282#files/1746507398130712

and cluster https://zg-data-eng-dev.cloud.databricks.com/compute/clusters/1214-223614-clopq8r5?o=686785785221528...

Can anyone please share how to fix?

Thank you