New to Dataiku DSS? Try out our NEW Quick Start Programs today and get onboarded on the product in just one hour! Let's go

from dataikuapi.dss.scenario import StepBasedScenarioSettings throws error

Solved!
arielma2304
Level 3
from dataikuapi.dss.scenario import StepBasedScenarioSettings throws error

Hi

Up until now I used this code with no issues, and suddenly today, I started to get:

from dataikuapi.dss.scenario import StepBasedScenarioSettings  # type: ignore
ModuleNotFoundError: No module named 'dataikuapi.dss.scenario'

was there any change? why I suddenly gets it?

0 Kudos
1 Solution
fchataigner2
Dataiker
Dataiker

Hi,

you should be creating instances of that class by calling get_settings() on an instance of a scenario object. This being said that class hasn"t been moved, so it's likely that the entire dataikuapi package is gone. Either the install has moved or changed or the files were plain removed.

View solution in original post

1 Reply
fchataigner2
Dataiker
Dataiker

Hi,

you should be creating instances of that class by calling get_settings() on an instance of a scenario object. This being said that class hasn"t been moved, so it's likely that the entire dataikuapi package is gone. Either the install has moved or changed or the files were plain removed.

View solution in original post

A banner prompting to get Dataiku DSS