SDKError: Missing required configuration value: base_url

Hello,

I am trying to connect to looker APIs through Jupyter Notebook and python with the following code: 

import looker_sdk

sdk = looker_sdk.init40()

But I receive a SDK Error saying that “Missing required configuration value: base_url”

Anyone has an idea how to solve this?

Solved Solved
0 2 1,836
1 ACCEPTED SOLUTION

Hi @mehrnaz_akbari- , you would need to authenticate using an `ini` file or use environment variables. From reading the error, it seems that neither has been set up yet.

You can take a look at one of my example jupyter notebooks here to see how to use environment variables https://github.com/lanlooker/Looker-Tutorials/blob/main/06_Kill_Running_Queries.ipynb

View solution in original post

2 REPLIES 2

Hi @mehrnaz_akbari- , you would need to authenticate using an `ini` file or use environment variables. From reading the error, it seems that neither has been set up yet.

You can take a look at one of my example jupyter notebooks here to see how to use environment variables https://github.com/lanlooker/Looker-Tutorials/blob/main/06_Kill_Running_Queries.ipynb

Thanks @lantrann. I used your github link and it helped to solve the error :relaxed: