Kyle Hamlin
03/03/2022, 3:39 PM[2022-03-03 08:37:40,862] {api.py:539} INFO - Started Dagster code server for file data_eng/jobs/make_dagster_pipeline.py in process 87160
/Users/khamlin/.pyenv/versions/3.8.8/lib/python3.8/site-packages/dagster/core/workspace/context.py:556: UserWarning: Error loading repository location make_dagster_pipeline.py:dagster.core.errors.DagsterInvariantViolationError: No jobs, pipelines, graphs, asset collections, or repositories found in "make_dagster_pipeline".
alex
03/03/2022, 3:43 PMmake_dagster_repo_from_airflow_dags_path
in make_dagster_pipeline.py
at module scope? are you specifying the attribute name the repository object should be found at within file in the cli args?
the issue may be with our more lenient “auto discover” code, so the advice above may help youKyle Hamlin
03/03/2022, 3:53 PMmake_dagster_pipeline.py
with the following code:
from dagster_airflow.dagster_pipeline_factory import make_dagster_repo_from_airflow_dags_path
def make_repo_from_dir():
return make_dagster_repo_from_airflow_dags_path(
"/<path-to-airflow>/airflow/dags/", "airflow_dags"
)
dagit -f data_eng/jobs/make_dagster_pipeline.py
dagit -f path/to/make_dagster_repo.py -n make_repo_from_dir
alex
03/03/2022, 4:02 PMdagit -f path/to/make_dagster_repo.py -a make_repo_from_dir
Kyle Hamlin
03/03/2022, 4:05 PMalex
03/03/2022, 4:09 PMKyle Hamlin
03/03/2022, 4:10 PMalex
03/03/2022, 4:12 PMall the modue importing is failingif its due to relative imports you may need to change the way you are loading in to dagit. Check
dagit --help
, consider module loading or setting working directoryKyle Hamlin
03/03/2022, 4:17 PM