Solved

SDKError: Missing required configuration value: base_url

  • 26 October 2021
  • 2 replies
  • 45 views

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?

icon

Best answer by Lan 26 October 2021, 14:18

View original

2 replies

Userlevel 2

Hi @mehrnaz.akbari-1632741833 , 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 @Lan. I used your github link and it helped to solve the error :relaxed:

Reply