Hi, I'm working on what I think should be a simple...
# announcements
a
Hi, I'm working on what I think should be a simple variation of the parameterized solids tutorial but I've hit a wall. I keep getting an error in the dagit UI that says
Missing required config entry "solids" at root level
. My execution block looks like this:
Copy code
if __name__ == "__main__":
    run_config = {
        "solids": {"load_data": {"config": {"file_path": "data/day_1_input.txt"}}}
    }
    result = execute_pipeline(day_1_pipeline, run_config=run_config)
Any idea what could be going on?
Man, I just know the answer is going to be like a misplaced comma or something facepalm
s
Where in the dagit UI are you seeing this error? Can you post a screenshot?
d
@Alex one thing to clarify : putting run config in a “if name==__main” block doesn’t pass along that config to dagit - that only affects the behavior if you run the script directly from python. you’ll need to put the config into dagit again in the playground in order for it to run. And you don’t need a __main block at all if you only want to run the pipeline from dagit. This is something that the tutorial could make more clear.
a
Thanks Daniel, I see what you mean now. I got this error at first:
Copy code
$ dagster pipeline execute -f dagster_advent_of_code/day_1_pipeline.py
...
Error 1: Missing required config entry "solids" at the root.
But after reading more carefully, I got this to work:
Copy code
$ python dagster_advent_of_code/day_1_pipeline.py
I should be able to figure it out from here by using the dagit sandbox config or a YAML file. Thanks!