Search code examples
pythonlooker

Can't connect python to looker


I've downloaded the looker_sdk for python. Wrote a very simple program:

from looker_sdk import client, models


def test_looker():
    sdk = client.setup("./looker.ini")


if __name__ == "__main__":
    test_looker()

However, when I'm running it I'm getting the error:

ImportError: cannot import name 'client' from 'looker_sdk'.

I do see the models and was able to perform:

sdk = looker_sdk.init31()

what am I missing?

Thanks, Nir.


Solution

  • It seems there may be a missing client.py file in looker_sdk version 0.1.3b8, or in your installation - I tested this on 0.1.3b4 and found no such issue.

    I recommend that you uninstall the package and re-install the latest version from PyPI.