Richard Fisher09/16/2020, 8:14 AM
file (I’m using
file (which is in the same directory as
). This works correctly when running the pipeline using the Python API (through
in _`__name__ == "__main__"`_ in
) and when running it through
However, when I try run
load_from: - python_file: example_pipeline.py
(from the same directory) I receive the error
dagster pipeline execute -f example_pipeline.py
. I’m sure this is a fairly basic import error, but could someone please provide a solution/best practice for this?
ModuleNotFoundError: No module named 'src'
alex09/16/2020, 2:48 PM
dagster pipeline execute -f example_pipeline.py -d ./
is setting the “working directory”
Richard Fisher09/16/2020, 2:58 PM
should be to use the current working directory as the working directory (without specifying the
flag), then I think that seems more intuitive (but I’m not sure what other implications that may have.
daniel09/17/2020, 12:44 AM