Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Hi,
I am using Dataiku 9.0.5, Python 3.6
I'm trying to use the Python API to gather all the usages of a code env.
In the documentation there is a method named list_usage which should do the trick, but when I try to use it in a notebook via Dataiku, I get the following error message
AttributeError: 'DSSCodeEnv' object has no attribute 'list_usages'
Am I doing something wrong ?
I already check that the type of the object I'm calling the method with is correct and I checked the attributes of this object. It appears that the function I'm willing to use isn't the only one missing.
Can you provide me with a solution? Even if it's another way to do the trick 🙂
Best regards,
Jyegda
Operating system used: Windows 10
Operating system used: Windows 10
Hi @Jyegda
Works on my DSS9.0.5:
You should get that error message if you are on DSS8 and lower. Are you sure you are on DSS9?
Thanks. Can you post the code you are trying to run?
Hi @Jyegda
What do you get when you run this command from the DSS command-line interface:
grep -r "list_usages" <DSS_INSTALL_DIR>/python/dataikuapi/*
I suspect that somehow you are still using DSS8 dataiku code.
Hi @sergeyd ,
I've ran the command and here is the result
I have other version of dataiku but the one running is 9.0.4.
Ugo