Dylan Hunt

03/08/2022, 4:29 PM
Hi Team, I'm trying to use
which takes module name and function name as string to do the dynamic imports later using importlib. It was working fine within sub directories and modules in Dagster 0.13.0 but now throwing below error in 0.14.3 It is pythonic execution
dagster.core.errors.DagsterImportError: Encountered ImportError: `No module named 'builder'` while importing module builder. If relying on the working directory to resolve modules, please explicitly specify the appropriate path using the `-d` or `--working-directory` for CLI based targets or the `working_directory` configuration option for workspace targets.


03/08/2022, 6:33 PM
Hi Dylan. Are you using relative imports? We changed some of our import behavior to not depend on an implicit working directory. You can specify the working directory inside your `workspace.yaml`:

Dylan Hunt

03/10/2022, 4:07 PM
@prha yes it is a relative import. Can I do this in a pythonic way instead of using yaml file somehow?