Philip Orlando
05/01/2023, 10:52 PMdagster project scaffold
, but this depends on dagster already being installed, which I want to manage with poetry. If I try creating a new project using poetry first (poetry new project-name
), then the pyproject.toml
will have missing config required by dagster. Thanks in advance for helping this noob out!Philip Orlando
05/01/2023, 10:59 PMpoetry run dagster dev
will complain about my pyproject.toml
not being configured properly.[tool.dagster]
to my pyproject.toml
appears to have resolved the issue. Not sure if there is any additional config that I'm missing out on by not using dagster project scaffold
though.Tim Castillo
05/01/2023, 11:08 PMpoetry new test
cd test
poetry add dagster dagit
dagster project scaffold --name dagster-poetry-test
cd dagster-poetry-test
dagster dev
Granted, I can see how if you bump the dagster code back up to the poetry root directory, that error would happenPhilip Orlando
05/01/2023, 11:10 PMTim Castillo
05/01/2023, 11:11 PMpyproject.toml
to reflect that [tool.dagster]
block you mentioned, then you should have both the scaffold and poetry on a flat(ter) directory structure, matching more of what you intendedPhilip Orlando
05/01/2023, 11:13 PMAlex V
05/26/2023, 3:52 AMpyproject.toml
file.
The code you shared for the nested directory structure worked just fine. But every time I try to “flatten” the structure and pull everything into one pyproject.toml
file I get this error:
Could not load location check_providers_pipeline to check for sensors due to the following error: dagster._core.errors.DagsterInvariantViolationError: No repositories, jobs, pipelines, graphs, or asset definitions found in "check_providers_pipeline".
All I did was add this section to the pyproject.toml
file
[tool.dagster]
module_name = "check_providers_pipeline"
Then a check_providers_pipeline/assets.py
file with a single generic asset function.
I’ve tried several variations and still run into the same error. Googling around, I can’t find anyone else running into this same error.
Any ideas what I could be doing wrong?