Just trying to use Looker Python SDK for the first time
import looker_sdksdk = looker_sdk.init31("looker.ini")
I’m getting an error that `looker_sdk` has no attribute `init31`
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, methodssdk = looker_sdk.init31()me = sdk.me()print(me)
This also works for me:
import looker_sdksdk = looker_sdk.init31()me = sdk.me()print(me)### Then to call models we would use looker_sdk.models.WriteScheduledPlan(DATA)
pip3 install --upgrade looker_sdkpip3 freeze......looker-sdk==0.1.3b20### this is the SDK version I am using.
I also have 0.1.3b20
Running this code
gives me ‘looker_sdk’ is not defined error. I have Python37 only
Already have an account? Login
No account yet? Create an account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.