Just trying to use Looker Python SDK for the first time
import looker_sdk
sdk = looker_sdk.init31("looker.ini")
I’m getting an error that `looker_sdk` has no attribute `init31`
Hi @Dawid,
May I ask which version of the sdk you are using. Also can you try explicitly importing models and methods, please?
from looker_sdk import models, methods
sdk = looker_sdk.init31()
me = sdk.me()
print(me)
This also works for me:
import looker_sdk
sdk = looker_sdk.init31()
me = sdk.me()
print(me)
### Then to call models we would use
looker_sdk.models.WriteScheduledPlan(DATA)
pip3 install --upgrade looker_sdk
pip3 freeze
......
looker-sdk==0.1.3b20
### this is the SDK version I am using.
Thanks,
Eric
I also have 0.1.3b20
looker-sdk==0.1.3b20
Running this code
from looker_sdk import models, methods
sdk = looker_sdk.init31()
me = sdk.me()
print(me)
gives me ‘looker_sdk’ is not defined error. I have Python37 only