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`
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
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
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.