Question

Looker API Connection Test


Hi,

I am setting up the Looker API and followed the instructions to setup the SDK as shown here: 
https://github.com/looker-open-source/sdk-codegen/blob/main/python/README.rst
 

However, when I am using the test connection example, I am getting the following error: 

No module named 'sdk_exceptions' 

 

Can I please get some help on this? Also, can I get some clarification on what the base url should be? I am currently using:

 

https://companyname.looker.com:19999

 

Thanks


3 replies

@hamzak93 The trick is that the `sdk_exceptions` module is defined in the `examples` folder. So you should copy that file (`sdk_exceptions.py`) to your local project, alongside the `test_connection.py`.

@hamzak93 The trick is that the `sdk_exceptions` module is defined in the `examples` folder. So you should copy that file (`sdk_exceptions.py`) to your local project, alongside the `test_connection.py`.

 I owe you a coffee :D 

Userlevel 3

Can you share your full (actual) code please? With client id and secret redacted

Reply